Difference between revisions of "Arw SetTextFontName"

From MultiCharts
Jump to navigation Jump to search
 
Line 3: Line 3:
 
Arw_SetTextFontName returns a value of -2 if the specified object ID number is invalid.  
 
Arw_SetTextFontName returns a value of -2 if the specified object ID number is invalid.  
  
Any font in the Fonts folder can be used; the folder is accessible from the Control Panel in Windows XP operating system. In Windows 7, an overview of all installed fonts can be found in the C:\Windows\Fonts folder. Alternatively, you can look in a text editor for the specific name of your preferred font.
+
Any font in the Fonts folder can be used; the folder is accessible from the Control Panel in Windows operating system. You can look in a text editor for the specific name of your preferred font.
 
   
 
   
 
== Usage ==
 
== Usage ==

Latest revision as of 10:40, 22 January 2018

Assigns the specified font to the text of an arrow object with the specified ID number.

Arw_SetTextFontName returns a value of -2 if the specified object ID number is invalid.

Any font in the Fonts folder can be used; the folder is accessible from the Control Panel in Windows operating system. You can look in a text editor for the specific name of your preferred font.

Usage

Arw_SetTextFontName(ObjectID, "FontName")

Where:

ObjectID - a numerical expression specifying the object ID number.
FontName - a string expression specifying the font name.
  • The FontName input is not case sensitive, but spaces do need to match.

Notes

Examples

Assign font Verdana to the text of an arrow object with the ID number of 3:

Value1 = Arw_SetTextFontName(3, "Verdana");

Assign font Times New Roman to the text of an arrow object with the ID number of 6:

Value1 = Arw_SetTextFontName(6, "Times New Roman");