Txt- All constants

From Vectorlab

Revision as of 10:17, 14 May 2009 by Orso (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Useful constants for dealing with text. By Orso B. Schmid


 
cBR = Chr(13);
cTB = Chr(9);
    
{ Text }
 
{ kTextError is returned in place of vertical; horizontal; flip; or spacing constants }
{ or text length in case there is a parameter error in the SDK call }
k_TxtError = -1;
 
{ text flip }
k_TxtNoFlip = 0;
k_TxtHorizFlip = 1; { - equivalent to k_TxtVerticalFlip and 180 degree rotation. }
k_TxtVertFlip = 2;
 
{ text style }
{ NOTE - Outline and Shadow text styles are only displayed on the Mac. }
k_TxtStyPlain = 0;
k_TxtStyBold = 1;
k_TxtStyItalic = 2;
k_TxtStyUnderl = 4;
k_TxtStyOutl = 8;
k_TxtStyShad = 16;
 
{ text vertical alignment }
k_TxtTopBox = 1;
k_TxtTopBasel = 2;
k_TxtCenBox = 3;
k_TxtBotBasel = 4;
k_TxtBotBox = 5;
 
{ text horizontal alignment }
k_TxtGeneralJust = 0; { only used by the Worksheet }
k_TxtLeftJust = 1;
k_TxtCenJust = 2;
k_TxtRighJust = 3;
 
{ text vertical spacing }
k_TxtCustomLeading = 0;
k_TxtSingle = 2;
k_TxtThreeHalves = 3;
k_TxtDouble = 4;
Personal tools