[Gambas-user] OK click on Wizard
Rolf-Werner Eilert
rwe-sse at osnanet.de
Fri Sep 6 11:58:39 CEST 2019
As a workaround I could give the wizard one more step, leaving it empty,
and just start action and close the dialog after the user clicked the
last-before Next button (as long as there is "Next", everything runs fine).
But it wouldn't be the actual sense of having a last step with "OK" or
"Start" or whatever, would it.
Rolf
Am 06.09.19 um 10:22 schrieb Ian Roper:
> Hi Rolf,
>
> This works to close the wizard on button click after the last 'page' as
> been reviewed.
>
> Public Sub Wizard_Change()
>
> If Wizard.Index = Wizard.Count - 1 Then Me.Close
>
> End
>
> if you want to change the text of the last button use Wizard.ActionText
> = "your close message"
>
> Please note; that if you code the change routine as 'Private' it will
> not trigger on a change event.
>
> It will only trigger if set to 'Public' as per the example.
>
>
> Cheers,
>
> Ian.
>
>
> On 6/9/19 3:24 pm, Fabien Bodard wrote:
>> And if you try that ? :
>>
>> http://gambaswiki.org/wiki/comp/gb.form/wizard/.change
>>
>>
>>
>> Le ven. 6 sept. 2019 à 09:20, Rolf-Werner Eilert <rwe-sse at osnanet.de
>> <mailto:rwe-sse at osnanet.de>> a écrit :
>>
>> In a Wizard with 5 steps, I want to close the dialog when the user
>> clicks the button on the last step, i. e. step 5 when "OK" is shown.
>>
>> I tried Wizard_Click() and it reacts to every step
>>
>> Select Wizard.Index
>> Case 1
>> ...
>> Case 2
>> ...
>> Case 5
>> Me.Close
>> End Select
>>
>> But there is no reaction on step 5.
>>
>> Is there another event for the OK button?
>>
>> By the way, the documentation text for _Click is missing...
>>
>> Regards
>> Rolf
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>> ]----
>>
>>
>>
>> --
>> Fabien Bodard
>>
>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]----
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
More information about the User
mailing list