Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Put a button object in an existing form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01100032
Message ID:
01100426
Vues:
11
David,

In order for an object to be part of the event loop, meaning a user can interact with it (see it, click it, type into it), it must be a contained object of a form. Which means that you have to thisform.AddObject() the object to the form. Non-form objects that are instantiated with CreateObject() are never part of the event loop, and as Sergey said you can't make an already existing object part of another object.

>Is it possible to put an existing button object on the surface of an existing form? e.g. as in the code below, is there a way to make the button 'ob' show up in the form 'of'?
>
>ob = createobject('commandbutton')
>of = createobject('form')
>of.show(1)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform