Information générale
Catégorie:
Codage, syntaxe et commandes
>Hi John -
Nope, I understood you. But perhaps I didn't explain clearly why that won't work for me. I would have to put this.default = .T. in a one button on page 1 and another button on page 2, since the effect I want is for that particular button on the active page to be set as the default (i.e. I have two different buttons on two different pages). But if I do as you suggest, then the first time I click on page 1 and the button refresh is called, that button gets set to true. Then if I click over to page 2, the button refresh sets that button to true. So now I have two buttons on two different pages set as the default button, when only one button per form can be set as the default because nothing ever sets a button to false. That's why I was trying to include code in the Activate/Deactive of each page to toggle each button's default .T. or .F. so that only one button on the form would ever have its default set to .T. at any one time. Does that make sense? (In any event, I still can't get the button on the second page to ever act like it's the default).
Sylvia
Hi Sylvia.
>
>I think you misunderstood. I meant have THIS.Default=.T. in the Refresh() of the affected commandbutton.
>
>>I think confirm was off, but added it anyway...same result. The problem I have with setting default = .t. in the control itself is that I believe only one control on a form can have default set to .t. So by including that code in the refresh itself, you're going to have all the controls set as default, and then the form doesn't know which one is the default. Since I'm using page frames, I only want the Active Page control (e.g. save) on that page to be set to .t.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement