Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LockScreen=.T. affects some properties
Message
From
05/10/1997 13:38:30
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00053320
Message ID:
00053323
Views:
24
>>When I have LockScreen=.T., I have found that some properties have strange behaviors.
>>
>>In one of my application, when LockScreen=.T., I change a caption on a label. When LockScreen will become .F., I will see my new caption which is ok. But, before changing this caption, I show the Width of that label which gives me a certain value. Then, I change the caption and show the Width of that label again, which still give me the old value. So, at this point, we have a situation that the Width of the label is not giving the actual Width.
>>
>>If I do this process with LockScreen=.F., the Width of the label will be shown ok after the change.
>>
>>I tried all kind of workaround in order to make the Width property to be reflected when using LockScreen=.T. So far, I haven't found a workaround.
>>
>>This label is in a container. Maybe there is a bug with that.
>>
>>IAC, having LockScreen=.T. or .F. should always give the value of the Width property correct.
>>
>>Any idea on how to solve this situation?
>
>Michel, recently someone suggested that you add the code
>Thisform.Mylabel.width = thisform.Mylabel.width
>when re-sizing a label to re-set the width to the new width.

This is not changing anything. It tested that when it was suggested. :) It redid the test again a minute ago.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform