buttongroup more layer bring in front
Afficher commentaires plus anciens
Hi, in my gui i have more buttongroups. I use set(handles.uibuttongroup2,'Visible','on') in my code (for example). But it works just in case that the buttongroups are next each other it doesnt work in case that layers are on each other, I think I have to bring needed layer on the top of layers. Can you help how can I solve this problem, thanks
7 commentaires
Walter Roberson
le 18 Jan 2018
Are the uibuttongroups parented to a uipanel? Or do they just overlap in Position ?
Margareta Drozdikova
le 18 Jan 2018
Walter Roberson
le 18 Jan 2018
If they overlap in position, you cannot have more than one of them fully visible and there is no way to choose which one will be on top.
Margareta Drozdikova
le 19 Jan 2018
Adam
le 19 Jan 2018
What exactly are you trying to achieve? A bunch of buttongroups of which you can only ever see one at a time? Otherwise why are they positioned in layers?
If you have them all in the same position and you want to see just one then you will, of course, have to ensure that all others have 'Visible' set to 'Off' as well as the one you want to see having it set to 'On'
Margareta Drozdikova
le 19 Jan 2018
Adam
le 19 Jan 2018
Is it a GUIDE GUI and did you drag the button groups into position on top of each other? If you did then most likely each will become parent for the subsequent one which is not what you want at all. If you position them all programmatically or by typping numbers in rather than dragging then they should all have the correct parent and I don't see why making them all invisible apart from one wouldn't work.
Réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!