Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container ADDOBJECT move object automatically
Message
From
01/11/2005 11:20:56
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064015
Message ID:
01064035
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I have the following code in the init of a container control.
>
>
>......
>lcReqFldStar="lblstartest"
>loReqFldStar="THISFORM.cntBase1."+lcReqFldStar
>THISFORM.cntBase1.ADDOBJECT(lcReqFldStar,"lblReqFldStar")
>WITH &loReqFldStar
>  .TOP=10
>  .LEFT=15
>  .VISIBLE=.T.
>ENDWITH
>.......
>
>
>The problem is when the form shows up, the label added to the container is moved by Fox automatically from 0,0 to another position 86,108.
>If I run the same code from a click event of a button or in the init of the form, runs fine. This is happening only with containers. If I add the same control to a form in the init of a combobox or textbox works fine.

check lblReqFldStar.Anchor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform