Difference between revisions of "Fontcharset Property"
From Lianjapedia
(Created page with '{{Common Property}} Category:Properties Category:Common Properties') |
|||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
+ | The character set of the object's font. Read/write. | ||
+ | |||
+ | <pre> | ||
+ | nFontCharset = ob.fontcharset | ||
+ | ob.fontcharset = nFontSize | ||
+ | </pre> | ||
+ | |||
+ | ===nFontCharset=== | ||
+ | Numeric signifying the font character set. Always returns 0. | ||
+ | |||
+ | ==Example== | ||
+ | <code lang="recital"> | ||
+ | // | ||
+ | // 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 | ||
+ | </code> | ||
[[Category:Properties]] | [[Category:Properties]] | ||
[[Category:Common Properties]] | [[Category:Common Properties]] |
Latest revision as of 06:28, 27 September 2011
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