Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Misbehaving Labels - VFP 5.0
Message
From
30/12/1998 17:41:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Misbehaving Labels - VFP 5.0
Miscellaneous
Thread ID:
00171764
Message ID:
00171764
Views:
59
We just recently moved from txtLabels to lblBase in VMP. Once the labels and fields have been placed on the forms we save the form and go back in and now all the labels are randomly repositioned along the same line. To fix the labels we have to do the following.

Click on the label.
Hit any movement key and the label magically repositions itself correctly.
( You have to set the visible property to .T. when adding labes and other objects programatically )
Even though visible is the default it is Bold showing that it changed so reset
that to default.
Go into the width property and escape one time so that now the property appears bold.

I can guess why these things might cause VFP some confusion but I was wondering if others had experienced the same thing.

Of course the fix is to set the width property programically like so.

loLabelRef.Width = loLabelRef.Width && Cheesy I know.

Then lastly.

loLabelRef.RestoreToDefault("Visible")

Also I've had some forms that have odd behavior when the Visibile property is .T. but bolded for one reason or another.
Next
Reply
Map
View

Click here to load this message in the networking platform