Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hotkey label & combo/textbox/editbox
Message
 
À
06/01/2004 00:18:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00864068
Message ID:
00864146
Vues:
15
So true - I typically route events to a procedure - so the procedure name would be:
procedure lblMyLabel_Click(oform)
messagebox("My Label Clicked",,oform.name)
endproc
Thanks for catching it - thanks for rubbing my nose in it - thanks for re-instilling my self-destructive tendacies - it will only take 2 months of extensive therapy to work through ir - like I said "THANKS!":-)


>That would rather be this.parent.cboMyCombo.SetFocus - there's no guarantee there's anything named oForm.
>
>>>>Got it you need to reorder the tabindexes so that the control to set focus to comes right after the label with the hot key in the caption
>>
>> ... oops!
>>>
 * or [also]
>>>procedure lblMyLabel.Click
>>>oForm.cboMyCombo.Setfocus
>>>endproc
>>>>
>>>>>How can I use a hotkey with a label to setfocus to a combo or some other control that has a setfocus event but no caption property ?
>>>>>
>>>>>I tried to setfocus in the click event of the label thinking this would fire when the hotkey was invoked on the label but that didnt work...
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform