Filter löschen
Filter löschen

Get Focus Back To Main gui

1 Ansicht (letzte 30 Tage)
Rayane
Rayane am 1 Feb. 2014
Kommentiert: Rayane am 2 Feb. 2014
Hello
I'm opening a gui1 from a Main gui but when I close the gui1 ,anything in the Main gui doesn't work or actually I can't press it!
How can fix it?
Thanks
----------Edited Post----------------
%--------------Draw Influence Line Button-----------------------
btLineprops = com.mathworks.mwswing.MJButton('Draw Influence Line');
set(btLineprops, 'ActionPerformedCallback',@DrawInLine);
placeJavaComponent(btLineprops,[1.13,0.07,0.24,0.8], h.panel2);
%--------------Draw Influence Line Function-----------------------
function DrawInLine(hObject, eventdata, handles)
cylinder_tube_patch()
  1 Kommentar
Jan
Jan am 1 Feb. 2014
This is not enough information to allow an answer. Please add more details by editing the question.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 1 Feb. 2014
To get focus back to the main gui, you would probably use
figure(1);
However, the bit about "actually I can't press it" sounds like it is more of a problem. Are you using GUIDE ? How are you invoking the second GUI? Are you setting the main GUI to 'visible', 'off' when you open gui1 ?
  5 Kommentare
Walter Roberson
Walter Roberson am 2 Feb. 2014
And to check, the GUI that cylinder_tube_patch() creates was created by GUIDE as well?
Rayane
Rayane am 2 Feb. 2014
yes

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by