GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

screen system metrics

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
bil
Familiar Face


Joined: 27 Mar 2007
Posts: 26

PostPosted: Fri May 18, 2007 4:18 am    Post subject: screen system metrics Reply with quote

I want to emulate win32 GetSystemMetrics for the followings,
screen width, screen height,
x logical unit, y logical unit,
cxborder, cyborder, [window border width and height
cxfixedframe, cyfixedframe, [bold border width and height
cxframe, cyframe, [border width and height
cycaption, cymenu, [height of window caption and menu
desktop x, desktop y, [origin of desktop
desktop w, desktop h [ exclude taskbar

[screen width, screen height] is OK now
[x logical unit, y logical unit] ignore for now

others are pixel width or height , eg on my 800x600 screen,
screen width, screen height, => 800 600
x logical unit, y logical unit, => 8 16
cxborder, cyborder, => 1 1
cxfixedframe, cyfixedframe, => 3 3
cxframe, cyframe, => 4 4
cycaption, cymenu, => 19 19
desktop x, desktop y, => 0 0
desktop w, desktop h => 800 570

detail please refer to http://msdn2.microsoft.com/en-us/library/ms724385.aspx

any idea how to do it in gtk?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP