Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Run GUI singleton without using GUIDE???

Subject: Run GUI singleton without using GUIDE???

From: tomschi@gmx.de (Thomas)

Date: 15 Jun, 2004 06:31:39

Message: 1 of 5

Hi @ all,

is there a possibility to run a GUI just singleton without creating it
with GUIDE, e.g. by setting some figure property? I don't like using
GUIDE...

I'm using R13 on WinXP.

Many thanks in advance, Thomas.

Subject: Run GUI singleton without using GUIDE???

From: Ken Davis

Date: 15 Jun, 2004 10:11:16

Message: 2 of 5

"Thomas" <tomschi@gmx.de> wrote in message
news:2bc762da.0406150531.71195db5@posting.google.com...
> Hi @ all,
>
> is there a possibility to run a GUI just singleton without creating it
> with GUIDE, e.g. by setting some figure property? I don't like using
> GUIDE...
>
> I'm using R13 on WinXP.
>
> Many thanks in advance, Thomas.

help uicontrol

Subject: Run GUI singleton without using GUIDE???

From: Splijin

Date: 15 Jun, 2004 10:35:21

Message: 3 of 5

You can run the GUI from the main Command Windown in Matlab. Simply
type in the GUI's name and the figure will appear.

Subject: Run GUI singleton without using GUIDE???

From: tomschi@gmx.de (Thomas)

Date: 16 Jun, 2004 00:26:29

Message: 4 of 5

"Ken Davis" <kendavisREMOVETHIS@alum.mit.edu> wrote in message news:<017AF1912931ED0833FCD258C5BA3D73@in.webx.raydaftYaTP>...
> "Thomas" <tomschi@gmx.de> wrote in message
> news:2bc762da.0406150531.71195db5@posting.google.com...
> > Hi @ all,
> >
> > is there a possibility to run a GUI just singleton without creating it
> > with GUIDE, e.g. by setting some figure property? I don't like using
> > GUIDE...
> >
> > I'm using R13 on WinXP.
> >
> > Many thanks in advance, Thomas.
>
> help uicontrol

>> help uicontrol

 UICONTROL Create user interface control.
    UICONTROL('PropertyName1',value1,'PropertyName2',value2,...)
    creates a user interface control in the current figure
    window and returns a handle to it.
 
    UICONTROL(FIG,...) creates a user interface control in the
    specified figure.
 
    UICONTROL properties can be set at object creation time using
    PropertyName/PropertyValue pair arguments to UICONTROL, or
    changed later using the SET command.
 
    Execute GET(H) to see a list of UICONTROL object properties and
    their current values. Execute SET(H) to see a list of UICONTROL
    object properties and legal property values. See a reference
    guide for more information.
 
    See also SET, GET, UIMENU.

This doesn't say anything about how to run just one instance of a
GUI... or am I completely wrong??

In GUIDE I can set under Tools>GUI options "GUI allows only one
instance to run (singleton)". Is there a possibility to set this
option, without using GUIDE (perhaps by setting a figure property
...)? Thomas.

Subject: Run GUI singleton without using GUIDE???

From: Steven Lord

Date: 16 Jun, 2004 08:17:53

Message: 5 of 5


"Thomas" <tomschi@gmx.de> wrote in message
news:2bc762da.0406152326.24ee7f9e@posting.google.com...
> "Ken Davis" <kendavisREMOVETHIS@alum.mit.edu> wrote in message
news:<017AF1912931ED0833FCD258C5BA3D73@in.webx.raydaftYaTP>...
> > "Thomas" <tomschi@gmx.de> wrote in message
> > news:2bc762da.0406150531.71195db5@posting.google.com...
> > > Hi @ all,
> > >
> > > is there a possibility to run a GUI just singleton without creating it
> > > with GUIDE, e.g. by setting some figure property? I don't like using
> > > GUIDE...
> > >
> > > I'm using R13 on WinXP.
> > >
> > > Many thanks in advance, Thomas.

*snip*

> This doesn't say anything about how to run just one instance of a
> GUI... or am I completely wrong??
>
> In GUIDE I can set under Tools>GUI options "GUI allows only one
> instance to run (singleton)". Is there a possibility to set this
> option, without using GUIDE (perhaps by setting a figure property
> ...)? Thomas.

There is no figure property that controls this; if you want to implement a
GUI that does this, you will need to determine in your GUI initialization
function whether or not another instance of this GUI exists and take the
appropriate action (closing it, giving it focus, nothing, etc.) if it does,
or save your layout as a FIG file and use OPENFIG with an appropriate
argument. In the former case, the FINDOBJ or FINDALL functions will help
you do this.

--
Steve Lord
slord@mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us