View Single Post
  #2  
Old 11-22-2012, 12:09 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
For example...

PHP Code:
new GuiRadioCtrl("Test_Radio1") {
  
profile GuiBlueRadioProfile;
  
10;
  
10;
  
width 100;
  
height 20;
  
groupnum 1;
  
text "Radio button 1";
  
  
thiso.catchevent(this"onAction""onRadioButtonChanged");  // Take note of this line

Then you can use the following to determine if it has been clicked or not:

PHP Code:
function onRadioButtonChanged(temp.object)
  
player.chat "Radio button '" temp.object.name "' clicked!"
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote