Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Form Load, Setting Focus to Particular Command Button
Message
De
21/04/2006 20:53:12
 
 
À
21/04/2006 19:59:05
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01115622
Message ID:
01115637
Vues:
7
You cannot issue setfocus from a valid. Use the lostfocus instead. You can set the focus in the last line of the init of the form class and when the form loads the focus will be on that button. You can also make the button the first item in the tab order since it is on page1 of the pageframe.

>When the user activates a Class, I need to set focus to a default button on the Form. I have tried
>
>
>thisform.pageframe1.page1.command1.setfocus()
>
>
>When the class is activated through regular code, it works fine. But if I try the same through < when & valid >, I get error.
>
>a. Is there anyway I can overcome the situation.
>
>b. How can I identify if the class is called through < when & valid >. If this is possible I can put an condition.
>
>Thanks
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform