How to change radio button group selection including the blue highlight circle
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Matthias Fath
el 21 de Mzo. de 2024
Respondida: Matthias Fath
el 21 de Mzo. de 2024
Hi all,
i am using App Designer to build an app including a radio button group. I want to be able to change the selection by mouse click (works fine) but also by using the arrow keys. When using the mouse to change from left to right radio button it looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648581/image.png)
I also have created a KeyPressFcn that works mainly fine. But when i change the button groups selection by code with the KeyPressFcn, only the black dot moves, but not the blue highlight circle:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648586/image.png)
Hereby it doesn't matter if i use
app.rightbutton.Value = true;
or
app.buttongroup.SelectedObject = app.rightbutton
Any idea how to get the blue circle to move as well when using code to change the selction or how to disable it completely?
Regards,
Matthias
2 comentarios
Taylor
el 21 de Mzo. de 2024
I'm having trouble reproducing this behavior. I'm only able to get UIFigureKeyPress to trigger when I select outside of the radio button group which removes the blue circle altogether. Would you mind attaching your app or a watered down version of it?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!