BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Handling client area/top bar size differences: Win2K vs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Joris
Guest





PostPosted: Tue Jul 22, 2003 11:56 am    Post subject: Re: Handling client area/top bar size differences: Win2K vs Reply with quote



"Richard Grossman" <usenetuserDELETETHISPART (AT) techIII (DOT) com> wrote

Quote:
Q1: Can anyone tell me the pixel size of the the caption bar in XP vs
2K, or the difference?

A1: Bad idea. That pixel size may be different depending on user
configuration, and it may be different still in each subsequent windows
version up to and including Windows 3012. Better idea: Check
GetSystemMetrics in your windows documentation, if you really need it (see
below).

Quote:
Q2: Are the alternatives, when designing on 2K, still to A) expand the
client area in the formcreate event based on the difference between the
runtime size of the caption bar and the designtime size of the caption
bar, or B) to leave extra room on Win2K forms ?

A2: I've been setting ClientWidth and ClientHeight in FormShow, not in
FormCreate, for years. I seem to remember that this was better for some
reason.


Joris



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.