Difference between revisions of "Fontname Property"

From Lianjapedia
Jump to: navigation, search
(Created page with ' ==Example== <code lang="recital"> // // Lianja custom section for page "page1" section "section1" // namespace custom1 public textbox1 define class page1_section1 as section end…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
__NOTOC__
 +
The name of the object's font.  Read/write.
 +
 +
<pre>
 +
cFontName = ob.fontname
 +
ob.fontname = cFontName
 +
</pre>
 +
 +
===cFontName===
 +
String signifying the font name.
  
 
==Example==
 
==Example==
Line 29: Line 39:
 
return page1_section1
 
return page1_section1
 
</code>
 
</code>
 +
 +
[[Category:Properties]]
 +
[[Category:Common Properties]]

Latest revision as of 07:35, 26 September 2011

The name of the object's font. Read/write.

cFontName = ob.fontname
ob.fontname = cFontName

cFontName

String signifying the font name.

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.fontname = "Dingbats"
		messagebox(textbox1.fontname,0,"Font")
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("fontbutton","font_button")
	fontbutton.caption = "Change Font"	
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox"
	textbox1.fontname = "Helvetica"
return page1_section1