Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Default property of a command button...
Message
De
29/06/1997 03:31:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00037354
Message ID:
00038027
Vues:
41
> would just rather my initial attempt would work! I just don't understand > why > something so simple as thisform.mycmdbutton.default=.T. won't work > properly! > I must investigate and see what's the problem. Thank you, though!! > > Steve :) Maybe there's one more thing you should do: thisform.mycmdbutton.value=4 (assuming you want the fourth button to be the new default). Maybe refresh the buttons after this. Wait a minute - .default option holds for commandgroups, and I think the problem you have came because you used individual buttons; .default should designate the defoult button within a commandgroup. If I get the time I may do some checking on this, the whole behavior seems to have wrong smell to me. Besides, I'm still looking for a way to have _no_ default button at all (so the form doesn't close or do whatever unexpected whenever anyone presses Enter).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform