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:
parent
a3611b8190
commit
c1741cf677
@ -1226,7 +1226,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const
|
||||
wxASSERT( propgrid );
|
||||
|
||||
// Must only occur when user triggers event
|
||||
if ( !(propgrid->GetInternalFlags() & wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) )
|
||||
if ( !propgrid->HasInternalFlag(wxPG_FL_IN_HANDLECUSTOMEDITOREVENT) )
|
||||
return res;
|
||||
|
||||
wxColourPropertyValue val = GetVal();
|
||||
|
@ -1640,7 +1640,7 @@ wxPGWindowList wxPGCheckBoxEditor::CreateControls( wxPropertyGrid* propGrid,
|
||||
|
||||
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)
|
||||
wxPoint point = cb->ScreenToClient(::wxGetMousePosition());
|
||||
|
Loading…
Reference in New Issue
Block a user