From: Sang Mai-Phuoc on
Hey guys!
I'm going to build a little project about poker dice game using GUI. But there are a some problem with my project. I can't display the image when I press the button.
There are an axes and a button in my GUI.
* The code in button Callback is:
handles.dice1=1;
*The code in axes function is:
if ( handles.dice1==1)
imshow('C:\dice1');
end

P/s:
Is there any delay function in GUI? because I want the image change continuously after that it'll stop at the image that I want.
Can everybody tell me how to link to windows of GUI together? for example: when I press the button the current window will close and it jump to new window.
Thanks for helps! and sorry because of my writing skill.
From: ImageAnalyst on
Here's an example that you might want to use:
http://www.mathworks.com/matlabcentral/fileexchange/24224

Otherwise, don't put any code in the axes callback.
Put all the code for specifying the image and displaying it in the
pushbutton callback.

From: Sang Mai-Phuoc on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <2c5e108a-2b10-468a-ba1d-53fad17f784a(a)i9g2000yqi.googlegroups.com>...
> Here's an example that you might want to use:
> http://www.mathworks.com/matlabcentral/fileexchange/24224
>
> Otherwise, don't put any code in the axes callback.
> Put all the code for specifying the image and displaying it in the
> pushbutton callback.
-------------------------------------------------
Oh! Thank you very much. It helps me a a lot.
I already find the delay function in here http://www.mathworks.com/matlabcentral/fileexchange/4194-delay
Thanks