From: Peng Swee Yap on 2 Feb 2010 15:51 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 2 Feb 2010 15:48 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 2 Feb 2010 16:13 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 2 Feb 2010 16:47 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.
|
Pages: 1 Prev: dlmwrite without erasing the file i'm writing to Next: Melard's Algorithm |