can I add or remove closebutton or so (MaximizeButton,MinimizeButton..) dynamic when the program using wxAUI is running?
if yes ,how ?
THX
Kirix Support Forums
can I add or remove closebutton or so dynamic ?
2 posts
• Page 1 of 1
- swmp
- Registered User
- Posts: 7
- Joined: Thu Apr 06, 2006 12:23 am
Yes.
Right now there isn't an elegant way of doing it, but it's not really that difficult at all.
The code snipped above will do the trick. You can add as many buttons as you like. In the future, we hope to add support for custom buttons. Right now you can see some preliminary support for user-defined buttons (buttonCustom1, buttonCustom2, and buttonCustom3).
All the best,
Ben
Right now there isn't an elegant way of doing it, but it's not really that difficult at all.
- Code: Select all
wxPaneInfo pinfo;
wxPaneButton button;
button.button_id = wxPaneInfo::buttonClose;
pinfo.buttons.Add(button);
The code snipped above will do the trick. You can add as many buttons as you like. In the future, we hope to add support for custom buttons. Right now you can see some preliminary support for user-defined buttons (buttonCustom1, buttonCustom2, and buttonCustom3).
All the best,
Ben
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback