Changeset 56169 for wxWidgets/trunk/interface/wx/propgrid/property.h
- Timestamp:
- 10/08/08 11:15:10 (3 months ago)
- Files:
-
- 1 modified
-
wxWidgets/trunk/interface/wx/propgrid/property.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxWidgets/trunk/interface/wx/propgrid/property.h
r56150 r56169 241 241 virtual bool OnButtonClick( wxPropertyGrid* propGrid, wxString& value ) 242 242 { 243 // Update property value from editor, if necessary244 PrepareValueForDialogEditing(propGrid);245 246 243 wxSize dialogSize(...size of your dialog...); 247 244 … … 1201 1198 1202 1199 /** 1203 Updates property value in case there were last minute1204 changes. If value was unspecified, it will be set to default.1205 Use only for properties that have TextCtrl-based editor.1206 1207 @remarks If you have code similar to1208 @code1209 // Update the value in case of last minute changes1210 if ( primary && propgrid->IsEditorsValueModified() )1211 GetEditorClass()->CopyValueFromControl( this, primary );1212 @endcode1213 in wxPGProperty::OnEvent wxEVT_COMMAND_BUTTON_CLICKED handler,1214 then replace it with call to this method.1215 1216 @return Returns @true if value changed.1217 */1218 bool PrepareValueForDialogEditing( wxPropertyGrid* propgrid );1219 1220 /**1221 1200 If property's editor is active, then update it's value. 1222 1201 */
