#pragma message enable nosimpint
#endif
+#include "wx/x11/privx.h"
+
// To correctly read the resources from the database, we create a
// sample widget. This has the application shell as the parent and
// so will be destroyed when the applicaion is closed.
// Get a system metric, e.g. scrollbar size
int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
{
+ int return_value = 0;
+
switch ( index)
{
case wxSYS_HSCROLL_Y:
case wxSYS_WINDOWMIN_X:
// TODO
case wxSYS_WINDOWMIN_Y:
- // TODO
+ break;
case wxSYS_SCREEN_X:
- // TODO
+ return_value = DisplayWidth( wxGlobalDisplay(), 0 );
+ break;
case wxSYS_SCREEN_Y:
- // TODO
+ return_value = DisplayHeight( wxGlobalDisplay(), 0 );
+ break;
case wxSYS_FRAMESIZE_X:
// TODO
case wxSYS_FRAMESIZE_Y:
;
}
- return 0;
+ return return_value;
}
bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)