Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a menu procedure setfocus?
Message
 
 
À
03/12/1998 16:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00163839
Message ID:
00163850
Vues:
15
>>Focus is on form1. Have a form2.setfocus in my menu procedure. It does not seem to be working. Can the menu setfocus?
>>
>>Thanks - Brenda

>Yes it can, but you have to provide direct reference to this form. There are two ways to get this reference, either you get it on-fly by searching through _SCREEN.Forms() collection or keep it in some pre-defined collection when you start a form (DO FORM ... NAME ... LINKED)

>Edward Pikman

I have a toplevelform that was created with a "oSDI=CREATEOBJECT("TOPFORM")". Have a modeless form that is was created with a "opptag=CREATEOBJECT("PPTAG")". opptag has a browse window (changing to a grid is not an option at this time). When focus is on the browse window, modal forms ("do form" from the menu) will not show. When i click on the opptag (browse does not have focus), the modal forms will show. When i click on the osdi and then go to the menu, the modal forms show.So thought in the menu I would either osdi.clicked() or opptag.click() before "do form" - but these did not work.

need to take focus off the browse window (or opptag) in the menu.you any ideas why my osdi.click is not working?

thanks - brenda
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform