From: Peng Swee Yap on
I have GUI, when user press a push button, it will pop up a message with a 'OK' button saying "Thank you for you info". When user click the 'OK' button, the GUI will go to next GUI. Can anyone guide me how to do it?

Thank you.
From: Walter Roberson on
Peng Swee Yap wrote:
> I have GUI, when user press a push button, it will pop up a message with
> a 'OK' button saying "Thank you for you info". When user click the 'OK'
> button, the GUI will go to next GUI. Can anyone guide me how to do it?

see for example warndlg()
From: ImageAnalyst on
Peng Swee Yap:
There is msgbox() but the problem/feature with that is that it doesn't
wait for user input before it goes blasting by to subsequent code. To
make it wait, you can wrap it in uiwait();

message = sprintf("Hello World!\nClick the OK button to continue');
uiwait(msgbox(message));

Or you can use questdlg() which will wait for user input. You can
specify the button(s) text with questdlg(), whereas the msgbox() I
think maybe only has an OK button available.

Other options are in the "See also" at the bottom of the help page.
From: Peng Swee Yap on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <6e0d81dd-7a0e-4fc8-9ed4-feb783d2745e(a)a32g2000yqm.googlegroups.com>...
> Peng Swee Yap:
> There is msgbox() but the problem/feature with that is that it doesn't
> wait for user input before it goes blasting by to subsequent code. To
> make it wait, you can wrap it in uiwait();
>
> message = sprintf("Hello World!\nClick the OK button to continue');
> uiwait(msgbox(message));
>
> Or you can use questdlg() which will wait for user input. You can
> specify the button(s) text with questdlg(), whereas the msgbox() I
> think maybe only has an OK button available.
>
> Other options are in the "See also" at the bottom of the help page.


It work with uiwait()
Thank you so much.