Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
itatz Atz

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

Hi James,
thank you for your answer.
actually I wanted a window of the same kind of the main one, typing "figure()" it gives me the classic figure window where to display graphics etc.
is there any way to create a new figure that I can edit (change size, adding pushbuttons, etc...) as the main one (with palette and stuff)? actually it's kinda hard for me typing everything down.

thank you!


> The callback for your button should open a new figure.
>
> Example:
>
> pushbutton = uicontrol('Style','pushbutton',...rest 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
> end
>
> hope that helps




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.