Difference between revisions of "Fontitalic Property"
From Lianjapedia
Line 3: | Line 3: | ||
<pre> | <pre> | ||
− | + | bFontItalic = ob.fontitalic | |
− | ob.fontitalic = | + | ob.fontitalic = bFontItalic |
</pre> | </pre> | ||
− | + | ===bFontItalic=== | |
− | === | + | |
Boolean to signify whether the font is italic or not: | Boolean to signify whether the font is italic or not: | ||
Revision as of 07:37, 26 September 2011
Whether the object's font is italic. Read/write.
bFontItalic = ob.fontitalic ob.fontitalic = bFontItalic
bFontItalic
Boolean to signify whether the font is italic or not:
True | False |
---|---|
True | False |
.T. | .F. |
1 | 0 |
Example
// // Lianja custom section for page "page1" section "section1" // namespace custom1 public textbox1, textbox2 define class page1_section1 as section enddefine define class font_button as CommandButton proc click textbox1.fontitalic = not textbox1.fontitalic textbox2.fontitalic = not textbox2.fontitalic endproc enddefine proc page1_section1 page1_section1 = createobject("page1_section1") page1_section1.addobject("fontbutton","font_button") fontbutton.caption = "Toggle Italic" page1_section1.addobject("textbox1", "Textbox") textbox1.value = "Textbox 1" textbox1.fontitalic = True page1_section1.addobject("textbox2", "Textbox") textbox2.value = "Textbox 2" return page1_section1