Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find client area height?
Message
 
To
13/04/1998 10:12:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091439
Message ID:
00091523
Views:
20
>>Is there a function that returns the height of the client area in pixels? I tried SYSMETRIC(22) but the number returned was much less that the actual height. Also, SYSMETRIC seems to ignore the status bar... I need to know how much room I have with the status bar on.
>>
>>TIA
>Try :
>
>this.height=_screen.height - sysmetric(29) - sysmetric(4)*2 - 1
>this.width=_screen.width - sysmetric(4)*2
>
>Cetin

I always prefer visual way to do that, just to make sure it looks good... :)
I have a couple of spinners in my classlib and for such purpose temporarily place them to the form and run it.

***spnHeight.Init()
this.value = thisform.height
***spnHeight.InteractiveChange()
thisform.height = this.value

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform