Added screen design to system settings for

different dialog layouts on desktop vs
    PDA screens


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-05-04 18:33:35 +00:00
parent 8a2a6bbf9c
commit c15521c67e
26 changed files with 194 additions and 43 deletions

View File

@@ -130,6 +130,16 @@ enum wxSystemFeature
wxSYS_CAN_ICONIZE_FRAME
};
// values for different screen designs
enum wxSystemScreen
{
wxSYS_SCREEN_NONE = 0, // not yet defined
wxSYS_SCREEN_DESKTOP, // >= 800x600
wxSYS_SCREEN_SMALL, // >= 640x480
wxSYS_SCREEN_PDA, // >= 320x240
wxSYS_SCREEN_TINY // <
};
// ----------------------------------------------------------------------------
// wxSystemSettingsNative: defines the API for wxSystemSettings class
// ----------------------------------------------------------------------------
@@ -171,6 +181,16 @@ public:
static wxColour GetColour(wxSystemColour index);
#endif // __WXUNIVERSAL__
// Get system screen design (desktop, pda, ..) used for
// laying out various dialogs.
static wxSystemScreen GetScreen();
// Override default.
static void SetScreen( wxSystemScreen screen );
// Value
static wxSystemScreen ms_screen;
// the backwards compatible versions of wxSystemSettingsNative functions,
// don't use these methods in the new code!