remove wxSYS_DEFAULT_PALETTE: it's supported only by wxMSW and it never worked there: GetStockObject(DEFAULT_PALETTE) returns a palette and not a font; so the resulting wxFont is wrong.
Expand and correct documentation for various system constants. Provide wxSYS_COLOUR_FRAMEBK as a synonym for wxSYS_COLOUR_BTNFACE as it is the colour which must be used to make wxFrame background coherent with the background of the controls they (eventually) contain. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,8 +28,11 @@ enum wxSystemFont
|
||||
wxSYS_ANSI_VAR_FONT,
|
||||
wxSYS_SYSTEM_FONT,
|
||||
wxSYS_DEVICE_DEFAULT_FONT,
|
||||
wxSYS_DEFAULT_PALETTE,
|
||||
|
||||
// don't use: MSDN says that this is a stock object provided only
|
||||
// for compatibility with 16-bit Windows versions earlier than 3.0!
|
||||
wxSYS_SYSTEM_FIXED_FONT,
|
||||
|
||||
wxSYS_DEFAULT_GUI_FONT,
|
||||
|
||||
// this was just a temporary aberration, do not use it any more
|
||||
@@ -43,8 +46,7 @@ enum wxSystemFont
|
||||
enum wxSystemColour
|
||||
{
|
||||
wxSYS_COLOUR_SCROLLBAR,
|
||||
wxSYS_COLOUR_BACKGROUND,
|
||||
wxSYS_COLOUR_DESKTOP = wxSYS_COLOUR_BACKGROUND,
|
||||
wxSYS_COLOUR_DESKTOP,
|
||||
wxSYS_COLOUR_ACTIVECAPTION,
|
||||
wxSYS_COLOUR_INACTIVECAPTION,
|
||||
wxSYS_COLOUR_MENU,
|
||||
@@ -59,16 +61,11 @@ enum wxSystemColour
|
||||
wxSYS_COLOUR_HIGHLIGHT,
|
||||
wxSYS_COLOUR_HIGHLIGHTTEXT,
|
||||
wxSYS_COLOUR_BTNFACE,
|
||||
wxSYS_COLOUR_3DFACE = wxSYS_COLOUR_BTNFACE,
|
||||
wxSYS_COLOUR_BTNSHADOW,
|
||||
wxSYS_COLOUR_3DSHADOW = wxSYS_COLOUR_BTNSHADOW,
|
||||
wxSYS_COLOUR_GRAYTEXT,
|
||||
wxSYS_COLOUR_BTNTEXT,
|
||||
wxSYS_COLOUR_INACTIVECAPTIONTEXT,
|
||||
wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_BTNHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_3DHIGHLIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_3DHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_3DDKSHADOW,
|
||||
wxSYS_COLOUR_3DLIGHT,
|
||||
wxSYS_COLOUR_INFOTEXT,
|
||||
@@ -81,6 +78,15 @@ enum wxSystemColour
|
||||
wxSYS_COLOUR_MENUBAR,
|
||||
wxSYS_COLOUR_LISTBOXTEXT,
|
||||
|
||||
// synonyms
|
||||
wxSYS_COLOUR_BACKGROUND = wxSYS_COLOUR_DESKTOP,
|
||||
wxSYS_COLOUR_3DFACE = wxSYS_COLOUR_BTNFACE,
|
||||
wxSYS_COLOUR_3DSHADOW = wxSYS_COLOUR_BTNSHADOW,
|
||||
wxSYS_COLOUR_BTNHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_3DHIGHLIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_3DHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
|
||||
wxSYS_COLOUR_FRAMEBK = wxSYS_COLOUR_BTNFACE,
|
||||
|
||||
wxSYS_COLOUR_MAX
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user