home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 63 / CDACTUAL63.iso / Aplicaciones / DarkBasic / DemoDarkBasic.exe / help / examples / text / exam05.dba < prev    next >
Encoding:
Text File  |  2000-04-09  |  963 b   |  41 lines

  1. Rem * Title  : Setting Text Style
  2. Rem * Author : DBS-MB
  3. Rem * Date   : 1st August 99
  4. rem ========================================
  5. rem DARK BASIC EXAMPLE PROGRAM 5
  6. rem ========================================
  7. rem This program will use the set text style 
  8. rem ----------------------------------------
  9.  
  10. rem Set the ink to white and paper color to black 
  11. ink rgb(244,214,210),1
  12.  
  13. rem Set a new font
  14. rem the new font will work with all text command but not the print command
  15. set text font "times new roman"
  16. set text size 32
  17.  
  18. rem Clear the screen
  19. cls
  20.         
  21. rem Were on screen text will be printed    
  22. textdown=90
  23.  
  24. set text to normal
  25. text 0,90,"THIS TEXT STYLE IS NORMAL"
  26.  
  27. set text to bold
  28. text 0,122,"THIS TEXT STYLE IS BOLD"
  29.  
  30. set text to italic
  31. text 0,154,"THIS TEXT STYLE IS ITALIC"
  32.  
  33. set text to bolditalic
  34. text 0,186,"THIS TEXT STYLE IS BOLD ITALIC"
  35.         
  36. rem Will wait for you to press any key
  37. suspend for key
  38.  
  39. rem End the program
  40. end
  41.