wxPropertyGrid event

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 23, 2007 3:41 pm
Location: London

wxPropertyGrid event

Post by Qasim » Wed May 21, 2008 6:01 pm

Hi. I am adding a property to propertygrid, but dont understand how to attach my event with it.
I am doing some thing like this

Code: Select all

wxPropertyGrid *pg = ...;
wxPGId item = pg->Append(wxIntProperty("Height",400);
pg->SetPropertyEditor(item, wxPGEditor_TextCtrlAndButton);
now all I want is clicking on the button next to height text should display my custom dialog. Can some one please tell me how to attach my event with the property editor.
Any help will be appreciated.
Who doubts nothing, Knows nothing

Post Reply