The Callback Functions

Status
Not open for further replies.

zener_16

Newbie level 2
Joined
May 15, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
hi i am really new to matlab gui. i have been trying to learn some basics
from the internet but i am still unable to understand matlab gui very well. I
do not know how to pass "Values" from one function to another.

i have a burning question:

i have made a popupmenu which has a list of videos and a push button.

I would only like to Select the videos without them playing, but only able to
play them after i have press my push button, heres my code under the
popupmenu's callback :

switch get(handles.popupmenu1,'Value')
case 1
winopen('Ma3.wmv');
case 2
winopen('Ma5.wmv');
case 3
winopen('Ma6.wmv');
case 4
winopen('Ma4.wmv');
end

Problem: i do not know how to prevent the video from playing when i select
them from the popupmenu and how can i make use of the push button as the
"Activation" ?

Please help me, i am really out of wits... Thank you...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…