-2

quick question on uipanels/button groups, how can i make one item (a radio button) with in the uipanel visible/not visible... the code "set(handles.uibatspanel,'visible','off')" makes the panel itself visible or not, but i want the radio button "raido2bats" within this panel to be visiable/not visiable

Many Thanks

Ben

1 Answers1

3

Use the same code with the handle to the radio button uicontrol, rather than the handle to the uipanel itself.

am304
  • 13,758
  • 2
  • 22
  • 40
  • Please could you go in to a little more detail ie the code, this GUI is a new thing to me, it breaks when the radio button is within the panel, thank you – user2962403 Nov 06 '13 at 21:58
  • 1
    @user2962403 - you said that the code `set(handles.uibatspanel, 'visible', 'off')` makes the panel itself visible, but you only want the radio button to turn invisible. Instead of setting the `handles.uiabtspanel` handle, set `handles.raido2bats` instead. – Dang Khoa Nov 06 '13 at 22:50
  • @user2962403 Exactly what Dang Khoa said. – am304 Nov 07 '13 at 08:45