Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label Width Is Incorrect
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734850
Message ID:
00734857
Views:
19
This message has been marked as the solution to the initial question of the thread.
If you are doing this before the form is visible, set the VISIBLE property to true before getting/setting its other properties.

>I have placed a label on a form, and at runtime I need to find out its Top, Left, Width, and Height that were set at design time.
>
>Oddly enough, the Width returns the wrong value (wherease the top, left, and height return the design time value).
>
>As an example:
>
>WAIT WINDOW STR(THISFORM.lblLast.Top) && returns 84 which is correct
>WAIT WINDOW STR(THISFORM.lblLast.Left)  && returns 156 which is correct
>WAIT WINDOW STR(THISFORM.lblLast.Height)  && returns 17 which is correct
>
>WAIT WINDOW STR(THISFORM.lblLast.Width)  && returns 83 which is NOT correct - it should be 136
>
>Any suggestions on what is going on here?
>
>Mel Cummings
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform