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:
01558130
Views:
63
>>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)
>
I didn't even know that this property exists. Thank you very much!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform