This class can be used to have multiple buttons in a property editor. More...
#include <editors.h>
Public Member Functions | |
| void | Add (const wxString &label, int id=-2) |
| void | FinalizePosition (const wxPoint &pos) |
| wxWindow * | GetButton (unsigned int i) |
| const wxWindow * | GetButton (unsigned int i) const |
| int | GetButtonId (unsigned int i) const |
| Utility function to be used in event handlers. | |
| int | GetCount () const |
| Returns number of buttons. | |
| wxSize | GetPrimarySize () const |
| wxPGMultiButton (wxPropertyGrid *pg, const wxSize &sz) | |
This class can be used to have multiple buttons in a property editor.
You will need to create a new property editor class, override CreateControls, and have it return wxPGMultiButton instance in wxPGWindowList::SetSecondary(). For instance, here we add three buttons to a textctrl editor:
Further to use this editor, code like this can be used:
1.8.7