Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add only one control in a class to a form at runtime
Message
De
19/01/2007 10:28:20
 
 
À
19/01/2007 10:21:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01186956
Message ID:
01186978
Vues:
20
That container is controlled by security permissions which are handled throughout the app and I'd hate to touch it if I can help it. I would rather be able to move the control from inside the container to the top of the form itself in the controls init if possible. I hate to create a custom form for one single purpose too.

Something like:

THISFORM.AddObject("NewName","classvcx.mycontainerclass.mycontrol")



>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?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform