Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add only one control in a class to a form at runtime
Message
From
19/01/2007 10:21:50
 
 
To
19/01/2007 10:09:45
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01186956
Message ID:
01186974
Views:
22
Not sure if it can be done, but how about making the other controls in the container invisible.

>I have a form which is basically a picklist. The form is launched in a prg using CREATEOBJECT() referencing the class. On the bottom portion of the form I add a container with numerous controls on it during runtime. The picklist form size is adjusted to account for the added container and its objects. However, in ONE case (and only case), I want to take one of the controls from inside the container and move it outside the container and to the top of the form itself (outside of its container) because the container and its object may or may not be accessible due to security permissions but ONE of the controls I want everyone to have access to. However, it is not a control that should be available on the picklist under all conditions but only specific conditions. Is there a way programmatically to move an object outside of a container and onto a form itself programmatically or to add only one control from a container in a class to a form?
>
>Can this easily be done?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform