Back Forward
Lingo - Properties

Font


Description:

Menu item font
Type:

propList[ propName symbol: propValue ]
propName values - propValue types - description:

#Name - string - font name
#Size - integer - font size
#Bold - integer 0|1 - bold on/off
#Italic - integer 0|1 - italic on/off
#Underline - integer 0|1 - underline on/off
#StrikeOut - integer 0|1 - strike on/off
Operations:

Read / Write
Example:
myFont = member("StarMenu1").Font
myFont[#Size]= 28
myFont[#Italic]= 1
member("StarMenu1").Font = myFont

put member("StarMenu1").Font
-- [#Name: "MS Sans Serif", #Size: 28, #Bold: 0, #Italic: 1, 
    #Underline: 0, #StrikeOut: 0]
  
Note:

When you modify this property in Lingo you should first read it into a variable, modify required list elements and then store it back.
See also: