Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing Feature In VFP 7.0?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00697186
Message ID:
00697246
Vues:
23
David,

aselobj() can give you a reference and you can traverse the .Parent tree until you get to the outermost object in the designer. Then your builder can go to work on it.

>I use ASELOBJ() for builders that help configure objects that are already on the form, but I want to edit form properties and add objects programmatically.
>
>The code listed below is being run in the click event of a button on my form builder window. After the new form is opened in design mode, the click code makes changes to the properties of the form and adds labels and textboxes based on the settings I selected in the form builder window.
>
>This way I don't have to hack the SCX file. I could just use the form's object reference to change the settings and add objects. From what I understand, with ASELOBJ() I would have to manually open the form in design mode and then select an object in order to trace back a reference to the form.
>
>I would much rather have the ability to edit the form as an object from any type of builder program I create.
>
>But, thanks for the suggestion.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform