Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Would you please...
Message
De
06/03/1997 17:06:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023153
Message ID:
00023206
Vues:
25
>>>If I want to move control to a specific command button among
>>>the command group in which the button is,
>>>What command should I use?
>>>
>>>For example,
>>>
>>>In case that a screen is like this below,
>>>
>>>-----------------------------------------
>>> label1 textbox1
>>> label2 textbox2
>>> label3 textbox3
>>>
>>>-----------------------------------------
>>> command1 command2 command3 command4 <-command group1
>>>-----------------------------------------
>>>
>>>after writing textbox1,textbox2,textbox3,
>>>I need to move the current control to command3 button
>>>If I fill up the blank of textbox3 and press Enter.
>>>And then skip command4 button.
>>>And then again, Current Control should be on the textbox1.
>>>command1 and the other 2 buttons are to be accessed
>>>only by using arrow buttons or mouse pointer.
>>>
>>>
>>>Sorry for my Bad English Expression.
>>>Cause I'm not so good at English...
>>>
>>>Any help would be great.
>>>thanks,
>>>Over and Out.
>>
>>Basically, you use NODEFAULT and Thisform.controlname.SetFocus() to redirect focus to appropriate control.
>
>I've tried but still i can't get it.
>In the example above,
>- thisform.command3.setfocus() - Is this sentence is appropriate?
>I've added this code in two ways,
>First,to the click event and the other time to the
>setfocus method of the textbox4.
>But both of them were all in vain.
>Maybe I skipped an important point.
>And I don't know about the 'NoDefault' that you mentions also.
>I'm sorry but would you give me more information about this?
>I need some detailed thing cause i'm a novice.
>In the previous dos version, I remember there was an specific variable
>which is useful for such function like that.
>But as for visual foxpro... Well..

You should issue NODEFAULT in any place within Click() events where you want to SetFocus(), else VFP will use default tab order.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform