Prev: Installing toolbox
Next: help
From: Vysakh on 22 Feb 2010 12:08 Hello, It may be quite simple. Lets create a figure plot figure(1); Now i have a blank figure plot opened up. It has " minimize" and "close" symbols on the top right corner. How can i disable the close symbol ? I dont want the user to click the figure and close it manually. Thanks, Vysakh
From: Nathan on 22 Feb 2010 12:17 On Feb 22, 9:08 am, "Vysakh " <vysak...(a)gmail.com> wrote: > Hello, > > It may be quite simple. Lets create a figure plot > > figure(1); > > Now i have a blank figure plot opened up. It has " minimize" and "close" symbols on the top right corner. > > How can i disable the close symbol ? > > I dont want the user to click the figure and close it manually. > > Thanks, > Vysakh Either that or you can set the "close request function" to do nothing when that button is clicked: h = figure(1); set(h,'CloseRequestFcn',[]); %However, in order to close it you need to specify HOW you want it closed in some other callback or something -Nathan
From: Vysakh on 22 Feb 2010 12:30 Nathan <ngreco32(a)gmail.com> wrote in message <50ac8133-7837-45ce-a514-7e40f88276a0(a)b9g2000pri.googlegroups.com>... > On Feb 22, 9:08 am, "Vysakh " <vysak...(a)gmail.com> wrote: > > Hello, > > > > It may be quite simple. Lets create a figure plot > > > > figure(1); > > > > Now i have a blank figure plot opened up. It has " minimize" and "close" symbols on the top right corner. > > > > How can i disable the close symbol ? > > > > I dont want the user to click the figure and close it manually. > > > > Thanks, > > Vysakh > > Either that or you can set the "close request function" to do nothing > when that button is clicked: > > h = figure(1); > set(h,'CloseRequestFcn',[]); > %However, in order to close it you need to specify HOW you want it > closed in some other callback or something > > -Nathan Nathan, I got your point. I am controlling my figure using the close request function. What i am really looking for is some way to disable the close symbol. Vysakh
|
Pages: 1 Prev: Installing toolbox Next: help |