Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ej08_Apagado
- Ejemplo que muestra algunas funciones del sistema
- desde C++ */
- #include <radc++.h>
- Form form1("Reset/ShutDown/LogOff - RAD C++ Ejemplo");
- Button btnL("Log Off", AUTO_ID,35 ,100,100,30,form1);
- Button btnS("Shut Down",AUTO_ID,145,100,100,30,form1);
- Button btnR("Restart", AUTO_ID,255,100,100,30,form1);
- FormProcedure form1Proc(FormProcArgs) {
- ON_CLOSE() Application.close();
- ON_COMMAND_BY(btnL) System.logOff();
- ON_COMMAND_BY(btnS) System.shutDown();
- ON_COMMAND_BY(btnR) System.restart();
- return 0;
- }
- rad_main()
- form1.procedure = form1Proc;
- rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement