Advertisement
idsystems

CPP_RAD_Ejercicio42

Jun 21st, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. /* ej42_RadioButtons
  2. Ejemplo del control RadioButton */
  3. #include <radc++.h>
  4.  
  5. Form        form1("Verificaciones - RAD C++ Ejemplo");
  6.  
  7. RadioButton radio1("Boton Radio 1 - seleccioname", AUTO_ID,100,100,200,20,form1);
  8. RadioButton radio2("Boton Radio 2 - seleccioname", AUTO_ID,100,130,200,20,form1);
  9.  
  10. FormProcedure proc(FormProcArgs) {
  11.     ON_CLOSE() Application.close();
  12.    
  13.     ON_RADIO_EVENT(radio1)
  14.         form1.caption = radio1.selected ? radio1.caption : radio2.caption;
  15.    
  16.     ON_RADIO_EVENT(radio2)
  17.         form1.caption = radio2.selected ? radio2.caption : radio1.caption;
  18.  
  19.     return 0;
  20. }
  21.  
  22. rad_main()
  23.  
  24.     form1.procedure = proc;
  25.            
  26. rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement