Advertisement
idsystems

CPP_RAD_Ejercicio41

Jun 21st, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. /* ej41_CheckBox
  2. Ejemplo del control CheckBox */
  3. #include <radc++.h>
  4.  
  5. Form     form1("Casilla verificacion - RAD C++ Ejemplo");
  6. CheckBox check("Check box - click", AUTO_ID,100,100,200,20,form1);
  7.  
  8.  
  9. FormProcedure proc(FormProcArgs) {
  10.     ON_CLOSE() Application.close();
  11.    
  12.     ON_CHECK(check) {
  13.         form1.caption = "Marcado";
  14.     }
  15.    
  16.     ON_UNCHECK(check) {
  17.         form1.caption = "Desmarcado";
  18.     }
  19.    
  20.     //NOTE : if you need to know about any message use ON_CHECKBOX_EVENT(check)
  21.    
  22.     return 0;
  23. }
  24.  
  25.  
  26. rad_main()
  27.  
  28.     form1.procedure = proc;
  29.        
  30. rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement