Added wxPropertyGrid::WasValueChangedInEvent(), added code to avoid showing colour picker dialog twice when 'Custom' colour was picked from drop-down list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -882,6 +882,18 @@ public:
|
||||
Shows an brief error message that is related to a property.
|
||||
*/
|
||||
void ShowPropertyError( wxPGPropArg id, const wxString& msg );
|
||||
|
||||
/**
|
||||
You can use this member function, for instance, to detect in
|
||||
wxPGProperty::OnEvent() if wxPGProperty::SetValueInEvent() was
|
||||
already called in wxPGEditor::OnEvent(). It really only detects
|
||||
if was value was changed using wxPGProperty::SetValueInEvent(), which
|
||||
is usually used when a 'picker' dialog is displayed. If value was
|
||||
written by "normal means" in wxPGProperty::StringToValue() or
|
||||
IntToValue(), then this function will return false (on the other hand,
|
||||
wxPGProperty::OnEvent() is not even called in those cases).
|
||||
*/
|
||||
bool WasValueChangedInEvent() const;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user