From: Sahra winter on 6 May 2010 19:50 I think I just solved the problem by using handles = guidata(Main-gui);
From: Sahra winter on 6 May 2010 21:37 "Sahra winter" <sahra18040(a)gmail.com> wrote in message <hrvkjg$4q5$1(a)fred.mathworks.com>... > I think I just solved the problem by using > handles = guidata(Main-gui); this erases all the handle structure of my main Gui & gives empty fields!!!
From: Walter Roberson on 6 May 2010 23:04 Sahra winter wrote: > "Sahra winter" <sahra18040(a)gmail.com> wrote in message > <hrvkjg$4q5$1(a)fred.mathworks.com>... >> I think I just solved the problem by using handles = >> guidata(Main-gui); > > this erases all the handle structure of my main Gui & gives empty fields!!! Sorry, I took one look at the code that GUIDE generated and said "We're going to have to pull that all out and re-write it!" A few years later, there are still some nooks and crannies that we haven't finished re-writing... when my boss asks for a change to those sections, I frown and ask "Are you sure?? That's going to take awhile to rewrite. I'd rather redesign that whole section..."
From: Sahra winter on 10 May 2010 21:16 > Sorry, I took one look at the code that GUIDE generated and said "We're > going to have to pull that all out and re-write it!" A few years later, > there are still some nooks and crannies that we haven't finished > re-writing... when my boss asks for a change to those sections, I frown > and ask "Are you sure?? That's going to take awhile to rewrite. I'd > rather redesign that whole section..." Dear Walter how do you suggest to go around this problem? in short: I have 2 guis: Main and Sub I need to be able to trigger a user defined function located in Main-gui from the sub gui. This user defined function uses handles of Main gui and also some variables adjusted by the sub-gui as inputs. this function is used several time in a loop & in each loop those adjustable variables are to be set by the sub-gui. Problem: how can I make handles of main-gui visible, while in user defined func?
From: Matt Fig on 10 May 2010 21:29 > Problem: how can I make handles of main-gui visible, while in user defined func? H = findall(0,'name','MY_MAIN_GUI') % Use the name of your GUI. Now you can use GUIDATA on H, or wade through the children of H.
First
|
Prev
|
Pages: 1 2 Prev: Very small numbers approximated with 0? Next: Clear current character from figure handle |