define wxCONTROL_SIZEGRIP as another possible interpretation of wxCONTROL_SPECIAL bit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,9 +51,11 @@ enum
|
|||||||
wxCONTROL_DISABLED = 0x00000001, // control is disabled
|
wxCONTROL_DISABLED = 0x00000001, // control is disabled
|
||||||
wxCONTROL_FOCUSED = 0x00000002, // currently has keyboard focus
|
wxCONTROL_FOCUSED = 0x00000002, // currently has keyboard focus
|
||||||
wxCONTROL_PRESSED = 0x00000004, // (button) is pressed
|
wxCONTROL_PRESSED = 0x00000004, // (button) is pressed
|
||||||
wxCONTROL_ISDEFAULT = 0x00000008, // only applies to the buttons
|
wxCONTROL_SPECIAL = 0x00000008, // control-specific bit:
|
||||||
wxCONTROL_ISSUBMENU = wxCONTROL_ISDEFAULT, // only for menu items
|
wxCONTROL_ISDEFAULT = wxCONTROL_SPECIAL, // only for the buttons
|
||||||
wxCONTROL_EXPANDED = wxCONTROL_ISDEFAULT, // only for the tree items
|
wxCONTROL_ISSUBMENU = wxCONTROL_SPECIAL, // only for the menu items
|
||||||
|
wxCONTROL_EXPANDED = wxCONTROL_SPECIAL, // only for the tree items
|
||||||
|
wxCONTROL_SIZEGRIP = wxCONTROL_SPECIAL, // only for the status bar panes
|
||||||
wxCONTROL_CURRENT = 0x00000010, // mouse is currently over the control
|
wxCONTROL_CURRENT = 0x00000010, // mouse is currently over the control
|
||||||
wxCONTROL_SELECTED = 0x00000020, // selected item in e.g. listbox
|
wxCONTROL_SELECTED = 0x00000020, // selected item in e.g. listbox
|
||||||
wxCONTROL_CHECKED = 0x00000040, // (check/radio button) is checked
|
wxCONTROL_CHECKED = 0x00000040, // (check/radio button) is checked
|
||||||
|
@@ -129,11 +129,7 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer)
|
|||||||
GetParent()->HasFlag(wxRESIZE_BORDER) &&
|
GetParent()->HasFlag(wxRESIZE_BORDER) &&
|
||||||
parentTLW && !parentTLW->IsMaximized() )
|
parentTLW && !parentTLW->IsMaximized() )
|
||||||
{
|
{
|
||||||
// NB: we use wxCONTROL_ISDEFAULT for this because it doesn't
|
flags |= wxCONTROL_SIZEGRIP;
|
||||||
// have any meaning for the status bar otherwise anyhow
|
|
||||||
// (it's still ugly, of course, but there are too few flags
|
|
||||||
// to squander them for things like this)
|
|
||||||
flags |= wxCONTROL_ISDEFAULT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int style;
|
int style;
|
||||||
|
Reference in New Issue
Block a user