Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

CASTORGUI::GUIRadio::setChecked() not work

$
0
0

Hello,

 

The GUI API:

 

 CASTORGUI::GUIRadio::setChecked(true),

 

 CASTORGUI::GUIRadio::setChecked(false) is not work.

 

In addition, would you please  set a group for some related radio buttons?

 

So, there is one and only one radio button be checked at any time in this group.

 

e.g.

 

var myPanel = new CASTORGUI.GUIPanel();

 

var myRadio_1 = new CASTORGUI.GUIRadio();

 

myRadio_1.group = 0; // or string name

 

var myRadio_2 = new CASTORGUI.GUIRadio();

 

myRadio_2.group = 0;

 

var myRadio_3 = new CASTORGUI.GUIRadio();

 

myRadio_3.group = 0;

 

myPanel.add(myRadio_1);

 

myPanel.add(myRadio_2);

 

myPanel.add(myRadio_3);

 

myPanel.setVisible(true);

 

Thanks for your reply and help.


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>