The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: GUI, opening new window
Replies: 7   Last Post: Dec 24, 2013 6:02 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 18
Registered: 6/25/09
Re: GUI, opening new window
Posted: Jul 20, 2009 9:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"itatz " <> wrote in message <h433ot$7m6$>...
> Hi,
> I would like to open a new window (with other buttons, axis, etc...) within GUI when I push a button. how can I do?
> thanks for answering!

The callback for your button should open a new figure.


pushbutton = uicontrol('Style','pushbutton', of stuff...,'Callback',{@Pushbutton_Callback});

function Pushbutton_Callback(pushbutton,eventdata)

fh = figure( )
%you can include anything you want in here as long as you specify the parent as
%being fh

hope that helps

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.