Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can MAX windows in height only?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01558118
Message ID:
01558129
Views:
81
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform