General information
Category:
Forms & Form designer
>>Hi Tony!
>>
>>What do you mean? Each visible object has the Width property (even if
>>Autosize=.t.) that contains its actual width...
>>
>>>How can you determine the width of an autosized label???
>
>For some reason the width of an autosized label is always
>equal to the original width of the label.....
>
>I'm implimenting a better messagebox() and need to determine the
>width of autosized labels....in order to size the form itself...
>
>Help?!?
>
>Thanks, Tony
Just a simple example...
Form.Init() looks like the following
PARAMETERS cText
LOCAL nTextWidth
THIS.Text.Caption = cText
THIS.Text.Autosize = .T.
nTextWidth = THIS.Text.width
At this point nTextWidth is always equal to the original width of the
Label (at design-time).
The Label is autosized correctly on the screen but the
autosize does not seem to update the width property....
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