Re: getClientRect problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

It might be the difference in your font size
Display Properties/Settings/Advanced/General
small versus large fonts makes control appear to be in different 
positions on the screen or your window when using Win32lib.

Euman
euman at bellsouth.net

Q: Are we monetarily insane?
A: YES
----- Original Message ----- 
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, March 22, 2002 2:30 PM
Subject: getClientRect problem


> 
> The code below shows that clientSize[2] is 50 and when I use that on my
> computer  the window is placed correctly under the toolBar, but on my laptop
> running windows Me also says clientSize[2] is 50 but the window is in the
> incorrect place. What am I doing wrong?
> 
> Here's the window creation
> 
>    id  =
> create(Window,EUmenu[i][1],Main,cx*24+33,clientSize[2],sw-cx*24-25,clientSiz
> e[4]-62,{WS_DLGFRAME,WS_CAPTION ,WS_POPUP})
> 
> 
> Here's the code to getClientRect
> 
> 
> constant Main = create(Window,"EUmenu - ACU-TRACK Business Management",
>       0,sx,sy,sw,sh,0)
> constant statusBar = create(StatusBar,"",Main,0,0,0,0,0)
> 
> 
> constant toolBar = create(FlatToolBar,"",Main,2,2,sw-15,50,0)
>   -- add toolBar items here
> clientSize = getClientRect(Main)
> --printf(1,"%d %d %d %d\n",clientSize)
> 
> 
> george
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu