|
Home > Archive > Programming with dBASE > October 2005 > Windows XP question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Windows XP question
|
|
| Denis Finch 2005-10-20, 8:26 pm |
| With windows XP if the user selects windows XP theme, the title bar height
is larger than in standard windows. How can I determine if the user is
running with windows XP theme, so I can adjust my forms height?
| |
| Rick Miller 2005-10-20, 8:26 pm |
| Hello Denis,
"Denis Finch" <dfinch2338@aol.com> wrote in
news:jvB44k10FHA.1044@news-server:
> With windows XP if the user selects windows XP theme, the title
> bar height is larger than in standard windows. How can I
> determine if the user is running with windows XP theme, so I can
> adjust my forms height?
----
The dBASE form (left, top, width, height) properties
correspond to the client area which is un-affected
by whether an XP theme is used.
Is there something in particular You want to do that may
be affected by XP themes or a user changing font sizes ?
Maybe wanting to fit a form into a particular window ?
Rick Miller
| |
| Denis Finch 2005-10-20, 8:26 pm |
| Because the title bar height is larger than the standard window title bar it
pushes some of the form elements off the screen. It moves everything down.
It's not a problem if the user is using a screen size of 1024 by 768 pixels
but I have some users that think 800 by 600 pixel is the size everyone
should use.
"Rick Miller" <nospam@nospam.com> wrote in message
news:Xns96F2B46C9D0D
8rmadv@64.132.211.168...
> Hello Denis,
>
> "Denis Finch" <dfinch2338@aol.com> wrote in
> news:jvB44k10FHA.1044@news-server:
>
> ----
>
> The dBASE form (left, top, width, height) properties
> correspond to the client area which is un-affected
> by whether an XP theme is used.
>
> Is there something in particular You want to do that may
> be affected by XP themes or a user changing font sizes ?
>
> Maybe wanting to fit a form into a particular window ?
>
> Rick Miller
| |
| Rick Miller 2005-10-20, 8:26 pm |
| This will get the caption height which applies
whether using XP or others.
function getCaptionHeight
if not type(" RMM_GetSystemMetrics
") == "FP"
extern CINT RMM_GetSystemMetrics
(CINT) ;
user32 from "GetSystemMetrics"
endif
return RMM_GetSystemMetrics
(4)
don't quite understand what You might plan
to do after finding out the height ?
puzzled,
Rick Miller
"Denis Finch" <dfinch2338@aol.com> wrote in
news:ZXuvWh$0FHA.1232@news-server:
> Because the title bar height is larger than the standard window
> title bar it pushes some of the form elements off the screen. It
> moves everything down. It's not a problem if the user is using a
> screen size of 1024 by 768 pixels but I have some users that think
> 800 by 600 pixel is the size everyone should use.
| |
| Denis Finch 2005-10-20, 8:26 pm |
| Thanks, I hope it will help.
"Rick Miller" <nospam@nospam.com> wrote in message
news:Xns96F372542EB6
Ermadv@64.132.211.168...[color=darkred]
> This will get the caption height which applies
> whether using XP or others.
>
> function getCaptionHeight
> if not type(" RMM_GetSystemMetrics
") == "FP"
> extern CINT RMM_GetSystemMetrics
(CINT) ;
> user32 from "GetSystemMetrics"
> endif
> return RMM_GetSystemMetrics
(4)
>
>
> don't quite understand what You might plan
> to do after finding out the height ?
>
> puzzled,
> Rick Miller
>
>
> "Denis Finch" <dfinch2338@aol.com> wrote in
> news:ZXuvWh$0FHA.1232@news-server:
>
| |
| Rick Miller 2005-10-20, 8:26 pm |
|
OK, hope so too ;-)
it can get a little confusing cuz,
(using pixels)
the actual window size of an MDI form in normalState is:
width = form.width + (2 * cxFrame)
height = form.height + cyCaption + (2 * cyFrame)
cxFrame = RMM_GetSystemMetrics
(32)
cyCaption = RMM_GetSystemMetrics
(4)
cyFrame = RMM_GetSystemMetrics
(33)
Rick Miller
"Denis Finch" <dfinch2338@aol.com> wrote in news:ufR2YOB1FHA.1232@news-
server:
[color=darkred]
> Thanks, I hope it will help.
|
|
|
|
|