buttongroup more layer bring in front

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
Walter Roberson le 18 Jan 2018
Are the uibuttongroups parented to a uipanel? Or do they just overlap in Position ?
Margareta Drozdikova
Margareta Drozdikova le 18 Jan 2018
They are just overlaped in the position, i think, I have just created a few buttongroups and given it in the same position.
Walter Roberson
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
Margareta Drozdikova le 19 Jan 2018
ok, and can you tell how to solve this?, how can I use uibuttongroups parented to a uipanel? If I understand, if I use this I could overlap buttongroups? thanks
Adam
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
Margareta Drozdikova le 19 Jan 2018
In my gui I have more buttongroups for more function, I use it for user input, user inputs for example seconds or another parameter, I am using set visibility on off, as you had written, it works just in case that the buttongroups are not in layers, In my gui I have more than 10 buttongroups and they are in the same position
Adam
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.

Connectez-vous pour commenter.

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!

Translated by