Advertisement
idsystems

CPP_RAD_Ejercicio21

May 19th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. /* ej21_tipdeldia1
  2. Como crear un tip del dia */
  3. #include <radc++.h>
  4.  
  5. /* This program only writes the tips file, to use later */
  6.  
  7. Form form1("Escribiendo un archivo tip del dia - RAD C++ Ejemplo");
  8.  
  9. TipOfDay tod("","",form1,false); //create invisible tip of day control
  10.  
  11. rad_main()
  12.         //add 3 tips to control, allowe following HTML fields
  13.         tod.addTip("I am tip 1 title", "I am tip 1 <B>description</B>");
  14.         tod.addTip("I am tip 2 title", "I am tip 2 <I>description</I>");
  15.         tod.addTip("I am tip 3 title", "I am tip 3 <U>description</U>");
  16.        
  17.         //now save them as new tip file to load later in application
  18.         tod.saveFile("tipoftheday.rct");
  19.        
  20.         form1.infoBox("New tips file 'test.rct' has been created, click OK to exit");
  21.         Application.close();
  22.        
  23. rad_end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement