Up | Button | BitBtn | SpeedButton | CheckBox | ComboBox | Control | Edit | Memo | Font | GroupBox | Label | ListBox | PageControl | Panel | RadioButton | Bevel | ScrollBox | TabSheet | WinControl | Callback | Frame | WinControl | Form | Release Notes

 

  

 
Font

The Font class

A font instance is returned from by a panels font property.

Attributes of the Font class

Attribute Access Type Description
name R/W string the font family name, like 'Arial', 'Courier', 'Tahooma' etc
size R/W int the font size in pixels
color R/W string the font color, 'red','blue', '0xffffff'
bold R/W bool the font style bold
italic R/W bool the font style italic 
underline  R/W bool the font style underline
strikeout R/W bool the font style strikeout
style R/W style style binary, bit0=bold, bit1=italic, bit2=underline,bit3=strikeout
orientation R/W float text angle

Script Example:

#the belove example modifies the font properties of a panel object
panel=GetResultPanel()
panel.caption='OK'
panel.color='green'

# modifying the panel font
panel.font.size=14
panel.font.color='blue' 
panel.font.bold=1

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.