where my buttons disappeared in GUI *fig????

7 visualizzazioni (ultimi 30 giorni)
Michael Adelman
Michael Adelman il 12 Lug 2012
Hi,
I created a GUI with gui guide. I added some radiobuttons on the uipanel. this panel and the buttons appear in the M-file but do not appear in the gui (they do appear in the Object Browser) but I can't see them.
How to restore that I'll be able to see them once again in the *.fig?
thanks,
[EDITED, Jan] Copied from answer section] (please add information about your question by editing the question, noit as answer:
I did tried to cut and paste all objects from the GUI That I'm working on to a new GUI and I saw my missing object there but when I return my mu GUI these objects are missing.

Risposte (1)

Jan
Jan il 12 Lug 2012
Look in the properties of the radio-buttons:
  • Is their Visibility enabled?
  • Are the positions defined in the correct units? E.g. [10, 10, 40, 20] looks nice in 'pixels', but is invisible in 'normalized' units.
  • Does the background of the UIPANEL cover the buttons? (I'm not sure if this is possible at all, but in the real life "invisible" things are usually only out of view or cover by other things.)
  2 Commenti
Jan
Jan il 12 Lug 2012
Comment by Micheal (please post comments as comments, not as answers):
Jan,
1. The visibility enabled. 2. The units are in 'pixels' 3. I'm not sure what you mean - please explain.
Jan
Jan il 12 Lug 2012
The uicontrol's are displayed in a specific order. When the radio buttons are drawn at first, and the uipanel is drawn afterwards with not "none" as background color (not sure if this is possible, I do not have Matlab at the moment), the buttons are hidden. So try to set the uipanel backgorund color to 'none' or use a method to move the button to top (programmatically this would be uistack()).

Accedi per commentare.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by