paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Button-ID within a WidgetList???


From: Alexander Pipelka
Subject: Re: [paragui-users] Button-ID within a WidgetList???
Date: 26 Jun 2002 10:22:31 +0200

These events are only passed one level up (from child to parent).
In this case your buttons are children from the widgetlist which is a
child of myWidget (2 levels).

Please use SetEventCallback/SetEventObject (MSG_BUTTONCLICK) to connect
your buttons.

Alex

Am Mit, 2002-06-26 um 10.07 schrieb Himmler Andreas /OI&T:
> Hi!
> 
> I made a new ThemeWidget-class which has an WidgetList in it an a few
> buttons are in this WidgetList. How can I see, if one of these buttons is
> pressed and test which one?
> 
> Do I have to make a new WidgetList-class which it's own
> eventButtonClick-function??? If yes, which things should I care of?
> 
> Now, my code looks like:
> 
> ....
>       myWidget::myWidget(PG_Widget* parent, PG_Rect r) :
> PG_ThemeWidget(parent, r, true)
>       {
>               ....
>               PG_WidgetList* WL1;
>               PG_Button* Test1;
>               PG_Button* Test2;
>               
>               Test1=new PG_Button(NULL,10,PG_Rect(...),"test1");
>               Test2=new PG_Button(NULL,11,PG_Rect(...),"test2");
> 
> 
>               WL1->AddWidget(Test1);
>               WL1->AddWidget(Test2);
>       };
> 
>       myWidget::eventButtonClick(int id, PG_Widget* widget)
>       {
>               // here the prog never comes, if one of the buttons in the
> widgetlist is pressed....
>       };
> ....
> 
> Tanks for all hints and tipps!
> 
> Bye,
> 
> 
> Himmler Andreas
>       
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]