[Gambas-user] OK click on Wizard
Ian Roper
ian.roper at iinet.net.au
Fri Sep 6 10:22:38 CEST 2019
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 by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190906/288b3757/attachment.html>
More information about the User
mailing list