#include <wx/propgrid/propgrid.h>
Public Member Functions | |
wxPropertyGridEvent (wxEventType commandType=0, int id=0) | |
Constructor. | |
wxPropertyGridEvent (const wxPropertyGridEvent &event) | |
Copy constructor. | |
~wxPropertyGridEvent () | |
Destructor. | |
bool | CanVeto () const |
Returns true if you can veto the action that the event is signaling. | |
wxPGProperty * | GetMainParent () const |
Returns highest level non-category, non-root parent of property for which event occurred. | |
wxPGProperty * | GetProperty () const |
Returns property associated with this event. | |
wxPGVFBFlags | GetValidationFailureBehavior () const |
Returns current validation failure flags. | |
const wxVariant & | GetValue () const |
Returns value that is about to be set for wxEVT_PG_CHANGING. | |
void | SetCanVeto (bool canVeto) |
Set if event can be vetoed. | |
void | SetProperty (wxPGProperty *p) |
Changes the property associated with this event. | |
void | SetValidationFailureBehavior (wxPGVFBFlags flags) |
Set override validation failure behavior. | |
void | SetValidationFailureMessage (const wxString &message) |
Sets custom failure message for this time only. | |
void | Veto (bool veto=true) |
Call this from your event handler to veto action that the event is signaling. | |
bool | WasVetoed () const |
Returns true if event was vetoed. |
wxPropertyGridEvent::wxPropertyGridEvent | ( | wxEventType | commandType = 0 , |
|
int | id = 0 | |||
) |
Constructor.
wxPropertyGridEvent::wxPropertyGridEvent | ( | const wxPropertyGridEvent & | event | ) |
Copy constructor.
wxPropertyGridEvent::~wxPropertyGridEvent | ( | ) |
Destructor.
bool wxPropertyGridEvent::CanVeto | ( | ) | const |
Returns true if you can veto the action that the event is signaling.
wxPGProperty* wxPropertyGridEvent::GetMainParent | ( | ) | const |
Returns highest level non-category, non-root parent of property for which event occurred.
Useful when you have nested properties with children.
wxPGProperty* wxPropertyGridEvent::GetProperty | ( | ) | const |
Returns property associated with this event.
wxPGVFBFlags wxPropertyGridEvent::GetValidationFailureBehavior | ( | ) | const |
Returns current validation failure flags.
const wxVariant& wxPropertyGridEvent::GetValue | ( | ) | const |
Returns value that is about to be set for wxEVT_PG_CHANGING.
void wxPropertyGridEvent::SetCanVeto | ( | bool | canVeto | ) |
Set if event can be vetoed.
void wxPropertyGridEvent::SetProperty | ( | wxPGProperty * | p | ) |
Changes the property associated with this event.
void wxPropertyGridEvent::SetValidationFailureBehavior | ( | wxPGVFBFlags | flags | ) |
Set override validation failure behavior.
Only effective if Veto() was also called, and only allowed if event type is wxEVT_PG_CHANGING.
void wxPropertyGridEvent::SetValidationFailureMessage | ( | const wxString & | message | ) |
Sets custom failure message for this time only.
Only applies if wxPG_VFB_SHOW_MESSAGE is set in validation failure flags.
void wxPropertyGridEvent::Veto | ( | bool | veto = true |
) |
Call this from your event handler to veto action that the event is signaling.
You can only veto a shutdown if wxPropertyGridEvent::CanVeto() returns true.
bool wxPropertyGridEvent::WasVetoed | ( | ) | const |
Returns true if event was vetoed.
![]() |
[ top ] |