Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default command button
Message
 
 
À
07/01/2000 15:08:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314543
Message ID:
00314693
Vues:
25
Mike,

Your solution seems good in this particular case. However, it's not general enough, right? If we assume, that original creator uses class for textboxes, my code could be also placed in only one place :) So, it's really depends on that the problem is... I saw the creator thanked you, so your solution solved his problems. That's great. But I had a different situation, so I solved it (in this case by myself - very unusual, right? :)) the way I described. I still may be wrong in my solution, though. That's why I want you to check this code in my class, when it'd appear in Files section.


>
>>>That's not really a great way to solve the problem, because it still moves focus from the current control to the default button.
>>>>Just place if nKey=13 NODEFAULT in text1 and text2 keypresses methods.
>
>Both those solutions require code in more than one spot. I would say just check (in the click of the Defualt button) if the active page is 2, if not, return, then refresh()
>
>if this.parent.parent.activepage = 2
>
>ect. What do you guys think about that one?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform