Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container ADDOBJECT move object automatically
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Container ADDOBJECT move object automatically
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064015
Message ID:
01064015
Views:
64
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.
Next
Reply
Map
View

Click here to load this message in the networking platform