General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only