Hi to all,
I hava aWindows with 5 buttons generated with GUIBuilder (I use version from ST, so GUIBuilder mandatory).
I need to dinamically apdate caption e number of Buttons (hide or show some buttons).
For caption, I modified the _aDialogCreate to retrive Data from a array that I fill before call CreateWindow()
Display All
But I have no idea how to hide a button or not
I want to insert in _cbDialog - > case WM_INIT_DIALOG (as just done here), a switch-case that configure Buttons hide/show.
How Can I do that ?
I hava aWindows with 5 buttons generated with GUIBuilder (I use version from ST, so GUIBuilder mandatory).
I need to dinamically apdate caption e number of Buttons (hide or show some buttons).
For caption, I modified the _aDialogCreate to retrive Data from a array that I fill before call CreateWindow()
C Source Code
- static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
- { WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 0, 240, 320, 0, 0x0, 0 },
- //{ BUTTON_CreateIndirect, "1", ID_BUTTON_0, 45, 7, 150, 50, 0, 0x0, 0 },
- //{ BUTTON_CreateIndirect, "2", ID_BUTTON_1, 45, 71, 150, 50, 0, 0x0, 0 },
- //{ BUTTON_CreateIndirect, "3", ID_BUTTON_2, 45, 135, 150, 50, 0, 0x0, 0 },
- //{ BUTTON_CreateIndirect, "4", ID_BUTTON_3, 45, 199, 150, 50, 0, 0x0, 0 },
- //{ BUTTON_CreateIndirect, "5", ID_BUTTON_4, 45, 263, 150, 50, 0, 0x0, 0 },
- // USER START (Optionally insert additional widgets)
- { BUTTON_CreateIndirect, (char *)stringa1, ID_BUTTON_0, 45, 7, 150, 50, 0, 0x0, 0 },
- { BUTTON_CreateIndirect, (char *)stringa2, ID_BUTTON_1, 45, 71, 150, 50, 0, 0x0, 0 },
- { BUTTON_CreateIndirect, (char *)stringa3, ID_BUTTON_2, 45, 135, 150, 50, 0, 0x0, 0 },
- { BUTTON_CreateIndirect, (char *)stringa4, ID_BUTTON_3, 45, 199, 150, 50, 0, 0x0, 0 },
- { BUTTON_CreateIndirect, (char *)stringa5, ID_BUTTON_4, 45, 263, 150, 50, 0, 0x0, 0 },
- // USER END
- };
I want to insert in _cbDialog - > case WM_INIT_DIALOG (as just done here), a switch-case that configure Buttons hide/show.
How Can I do that ?