General information
Category:
Forms & Form designer
Title:
Misbehaving Labels - VFP 5.0
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
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