Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find client area height?
Message
 
À
13/04/1998 10:12:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00091439
Message ID:
00091523
Vues:
21
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform