Kirix Support Forums

can I add or remove closebutton or so dynamic ?

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

can I add or remove closebutton or so dynamic ?

Postby swmp on Thu Apr 06, 2006 12:27 am

can I add or remove closebutton or so (MaximizeButton,MinimizeButton..) dynamic when the program using wxAUI is running?

if yes ,how ?

THX
swmp
Registered User
 
Posts: 7
Joined: Thu Apr 06, 2006 12:23 am

Postby Ben on Fri Apr 07, 2006 10:51 am

Yes.

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
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback