Monday 15 March 2010

wxwidgets - wxPropertyGrid::EditorValidate() always returns true -



wxwidgets - wxPropertyGrid::EditorValidate() always returns true -

a user editing value in property grid, clicks button outside property grid executes code read property values. old value of property read, rather new value beingness edited. have tell users must finish editing, hitting homecoming or clicking on property before clicking buttons outside grid. forget, , study bug.

i create foolproof. perhaps forcing current edit finish when mouse leaves property grid.

i know how handle mouse leaving event. not know how forcefulness property grid take partial edits.

i have tried, hint user,

pg = new wxpropertygrid( ... .... if( ! pg->editorvalidate() ) { setstatustext("please finish editing"); return; }

but editorvalidate() returns true

found it!

wxpropertygrid::commitchangesfromeditor()

http://docs.wxwidgets.org/trunk/classwx_property_grid.html#a6e06d92a622237457fea00372df1eaae

wxwidgets

No comments:

Post a Comment