Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can MAX windows in height only?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01558118
Message ID:
01558129
Vues:
80
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I would like to have one window to maximize only in height but not in width (when user clicks on Maximize button). That is, so that the width stay without change. Is it possible? And I suspect that since with VFP nothing is impossible, how? TIA.

You can use MaxWidth, for example, try maximizing this:
loForm		= CreateObject('Form')
loForm.AddObject('lbl1', 'label')
loForm.Width = 100
loForm.MaxWidth = 150
loForm.MinWidth = 150
loForm.lbl1.Caption = Transform(loForm.width)
loForm.lbl1.Visible = .t.
loForm.Show(1)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform