Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LISA G Who?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00856120
Message ID:
00856543
Vues:
14
>If you were to create a form (scx) and use DO FORM instead of CreateObject() to instantiate your object, then the LISA G holds true. Remember when you use CreateObject() VFP sets the objects visibility to .F.. I only remember READ EVENTS being necessary for an executable to run.

>Richard

Ah ha!

All of my forms are the VCX type. I've just followed the lead of the CodeBook based foundation that I use and that's the way they do it.

Now, a further question. Say I've done L-I with CREATEOBJECT AND S-A with .show(). The way DOFORM from CODEBOOK assigns focus to the form is to execute goForm.oBizObj.setfocus(). All of their forms have a business object based on CONTAINER.

Now is there any way to set focus to a form without looking inside to see what objects are there? I tried form.click() but that doesn't set focus. I know I can explicitly execute form.gotfocus() but I assume this is not equivalent to actually giving the form focus.

I'm looking for a programmatic equivalent to clicking on the form.

Thanks for the help.

BTW, I've noticed that leaving the DOFORM program will set focus to the created and shown form even if I don't execute READ EVENTS. At that point GOTFOCUS fires.

Peter
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform