Fontcharset Property

From Lianjapedia
Jump to: navigation, search

The character set of the object's font. Read/write.

nFontCharset = ob.fontcharset
ob.fontcharset = nFontSize

nFontCharset

Numeric signifying the font character set. Always returns 0.

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public textbox1
define class page1_section1 as section
enddefine
 
define class font_button as CommandButton
	proc click
		textbox1.fontcharset = 0
		messagebox(etos(int(textbox1.fontcharset)),0,"Font Character Set")
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("fontbutton","font_button")
	fontbutton.caption = "Query Character Set"	
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox"
return page1_section1