Difference between revisions of "Fontweight Property"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with '__NOTOC__ {|class="wikitable" !Value||Description |- |25||Light |- |50||Normal |- |63||DemiBold |- |75||Bold |- |87||Black |- |} ==Example==') |
Yvonne.milne (Talk | contribs) (→Example) |
||
Line 17: | Line 17: | ||
==Example== | ==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.fontweight = 25 | ||
+ | messagebox(etos(int(textbox1.fontweight)),0,"Fontweight") | ||
+ | endproc | ||
+ | enddefine | ||
+ | |||
+ | proc page1_section1 | ||
+ | page1_section1 = createobject("page1_section1") | ||
+ | |||
+ | page1_section1.addobject("fontbutton","font_button") | ||
+ | fontbutton.caption = "Lose Weight!" | ||
+ | |||
+ | page1_section1.addobject("textbox1", "Textbox") | ||
+ | textbox1.value = "Textbox" | ||
+ | textbox1.fontweight = 75 | ||
+ | return page1_section1 | ||
+ | </code> |
Revision as of 11:49, 7 April 2011
Value | Description |
---|---|
25 | Light |
50 | Normal |
63 | DemiBold |
75 | Bold |
87 | Black |
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.fontweight = 25 messagebox(etos(int(textbox1.fontweight)),0,"Fontweight") endproc enddefine proc page1_section1 page1_section1 = createobject("page1_section1") page1_section1.addobject("fontbutton","font_button") fontbutton.caption = "Lose Weight!" page1_section1.addobject("textbox1", "Textbox") textbox1.value = "Textbox" textbox1.fontweight = 75 return page1_section1