Re: How to get a widget from a dialog widget



suganya dgbmicro com wrote:
Hi all,

In function 1, I have created a a dialog widget which has 5 check buttons
and I am check marking first 2 check buttons.

The dialog widget is being passed as an argument for this function 2. How
will I see which check buttons are checked and which are not.

what I normally do, is to create a struct which holds a pointer to all
relevant widgets, and pass that as 'data' argument to the callbacks.

but don't forget to free the struct after you destroy the dialog.

regards,

Olivier Sessink





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