Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_screen.height?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00389965
Message ID:
00390172
Vues:
13
>>>>>That code is built into VFP and you have to be a member of the Fox team to see it.
>>>>>
>>>>>You can get the titlebar height using one of the Sysmetric options and you can add that to you Form.Height.
>>>>
>>>>I just thought of an ugly workaround. I'll just maximize one form, get its height, then do the rearrangements. I can't think of anything else less complicated.
>>>>
>>>>Thanks for everyone's inputs.
>>>>Ramil 7/10
>>>
>>>Forgot to add, SYSMETRIC() helped a lot too. Thanks, Larry.
>>
>>Ramil,
>>
>>What is it exactly that you're trying to do? Simply setting the WindowState property to maximize will automatically properly size the form. If you're looking to mimic the Arrange option, I've a file ("Cascade/Tile Windows") that can automate the process here at the UT.
>
>George,
>I'm trying to create a code that will arrange open forms based on a pre-arranged pattern. Since the application's height/width varies depending on its current windowstate, I need a way to get a base height and width to be able to properly resize my forms.
>
>I looked into the _screen.height property but this does not really give you the actual area where the forms are display (i'm refering to the ? output area).
>
>But anyway, you've mentioned about a file in UT. If you please give me the thread or the search value, I would appreciate it. I don't want to re-invent the wheel if its already rolling and I could very much use some help.
>
>Ramil 7/10

See "Cascade/Tile Windows" (FILE#9492) under Win32 and Other APIs. I seem also to recall that there's another way to do this, but the method escapes me.

A form's height/width properties do not include the title bar, nor the frame width/height, nor scroll bars, if present. All of these must be taken into consideration. A form's height and width refer only to the client area. When you say a "pre-arranged pattern", cascading or tiling may not be what you're after.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform