Use wxPropertyGrid::HasInternalFlag() function to check internal flags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1226,7 +1226,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const
|
|||||||
wxASSERT( propgrid );
|
wxASSERT( propgrid );
|
||||||
|
|
||||||
// Must only occur when user triggers event
|
// Must only occur when user triggers event
|
||||||
if ( !(propgrid->GetInternalFlags() & wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) )
|
if ( !propgrid->HasInternalFlag(wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) )
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
wxColourPropertyValue val = GetVal();
|
wxColourPropertyValue val = GetVal();
|
||||||
|
@@ -1640,7 +1640,7 @@ wxPGWindowList wxPGCheckBoxEditor::CreateControls( wxPropertyGrid* propGrid,
|
|||||||
|
|
||||||
if ( !property->IsValueUnspecified() )
|
if ( !property->IsValueUnspecified() )
|
||||||
{
|
{
|
||||||
if ( propGrid->GetInternalFlags() & wxPG_FL_ACTIVATION_BY_CLICK )
|
if ( propGrid->HasInternalFlag(wxPG_FL_ACTIVATION_BY_CLICK) )
|
||||||
{
|
{
|
||||||
// Send the event to toggle the value (if mouse cursor is on the item)
|
// Send the event to toggle the value (if mouse cursor is on the item)
|
||||||
wxPoint point = cb->ScreenToClient(::wxGetMousePosition());
|
wxPoint point = cb->ScreenToClient(::wxGetMousePosition());
|
||||||
|
Reference in New Issue
Block a user