Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is There a Minimum Value for Form Width
Message
From
13/05/2002 12:25:16
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00655288
Message ID:
00655731
Views:
46
>Works under VFP7SP1 and VFP6SP5 with form designed visualy and created with CREATEOBJECT(). I only set MinWidth = -1.
>
>>hmmm...it doesn't work here on VFP6SP5. I tested it with a form designed visually. Do you have to change anything else from defaults?
>>

In my prg I have DEFINE CLASS msgForm AS FORM

What I found is that if I don't do anything about the minwidth property in the class definition it has a value of -1. However, I cannot set the form width to be less than 104. If I put a minwidth = -1 in the class definition, I can set it to be whatever I want.

The behavior is replicated in the form designer. Without touching the minwidth property, I cannot get a width less than 104. However, by explicitly setting the value to -1 I can now have any width. Even if I take the minwidth value and "reset to default" I retain the ability to have any width.

I think I understand enough of what's going on to achieve the results I need, but I do find this more than a bit confusing and counter-intuitive.
Previous
Reply
Map
View

Click here to load this message in the networking platform