Normal Topic Print String Formats & Options (Read 628 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Print String Formats & Options
Feb 13th, 2006 at 4:52pm
Print Post Print Post  
Is there a master list of the various print string formatting options ? i.e. fonts, underlining, etc.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Print String Formats & Options
Reply #1 - Feb 13th, 2006 at 6:37pm
Print Post Print Post  
Programming Guide, page 43.
Examples starting on page 135.

Placing a space in front of the font name causes the "Normal" font to be used.
Like this: PrintString("Sesame Rocks!", 100, 200, 0, " Arial", 33, 0)

Placing a "B" first prints bold. An "I" will print italics.
And "P" will cause both bold and italics.
Like this: PrintString("Sesame Rocks!", 100, 200, 0, "PArial", 33, 0)

I have not tried, but I wonder if placing a "U" first may print underline?
Or you can do PrintString("______ _____!", 100, 200, 0, "BArial", 33, 0) to print underscores in the same position as the text Sesame Rocks.

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Print String Formats & Options
Reply #2 - Feb 13th, 2006 at 6:43pm
Print Post Print Post  
Hello Louis and Bob,

Underlining is not a property of fonts like bold and italic are. When a word is underlined a line is simply drawn under it. You can draw a line under a piece of text by using PrintBox().

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Print String Formats & Options
Reply #3 - Feb 13th, 2006 at 8:15pm
Print Post Print Post  
I am looking and trying some of the Print Boxtype's on page 140 of the programming guide but can't seem to find one that will underline.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Print String Formats & Options
Reply #4 - Feb 13th, 2006 at 8:37pm
Print Post Print Post  
Hello Louis,

Box style 2, 4, 14 or 18 can be used to print a black line.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Print String Formats & Options
Reply #5 - Feb 13th, 2006 at 8:59pm
Print Post Print Post  
Ray:

Thanks for that info. It seems to work well.

Louis
  

Louis Galvao
Back to top
 
IP Logged