Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formset focus
Message
 
À
02/09/2005 12:50:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01046240
Message ID:
01046315
Vues:
16
>
> i supose that u don't understand me look
>
> i've a one formset on this formset i've 3 forms, when i press commanbutton i
> like thisformset.frmnuevo.show(1) but this form don't have focus i wich that
> form like the focus and the other form can't make anythig, but if a press the
> button than be in the principal form this button is enabled.
>

Yes, I do understand. You have a form and pres something like "NEW". then a second form opens, You enter the information for the new record and when You're done, You press "SAVE", the second form closes and the first one gets focus again, correct?

There is a few approaches You can take (I wouldn't work with formsets nowadays but that's just a matter of taste, I think - never liked them).

- You have VFP9, so You can do lovely depending things using BindEvent(). This is just a beauty
- You could have the "new"-form be a modal form (although... formsets... might not work there)
- You could disable the first form while You are in the second
- You could hide the first form while in the second.
...

the only thing I am trying to say is that You *can't* set the focus to another object while You are in a click()-event. So You need to employ a trick to get out of the Button's click() and *then* set the focus to the second form.

got me?

however, I could be completely standing on the line
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform