Difference between revisions of "Tooltiptext Property"

From Lianjapedia
Jump to: navigation, search
(Created page with '{{Common Property}} Category:Properties Category:Common Properties')
 
Line 1: Line 1:
{{Common Property}}
+
__NOTOC__
 +
Text displayed when you hover over an object.  Read/write.
 +
 
 +
<pre>
 +
cTooltipText = ob.tooltiptext
 +
ob.tooltiptext = cTooltipText
 +
</pre>
 +
 
 +
===cComment===
 +
String storing text to be displayed on hovering.
 +
 
 +
==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 tooltiptext_button as CommandButton
 +
proc click
 +
messagebox(textbox1.tooltiptext,0,"Tooltip")
 +
endproc
 +
enddefine
 +
 +
proc page1_section1
 +
page1_section1 = createobject("page1_section1")
 +
 +
page1_section1.addobject("tooltiptextbutton","tooltiptext_button")
 +
tooltiptextbutton.caption = "Query Tooltiptext"
 +
 +
page1_section1.addobject("textbox1", "Textbox")
 +
textbox1.value = "Textbox"
 +
textbox1.tooltiptext = "This is a tooltip, which is displayed when you hover over the object"
 +
return page1_section1
 +
</code>
  
 
[[Category:Properties]]
 
[[Category:Properties]]
 
[[Category:Common Properties]]
 
[[Category:Common Properties]]

Revision as of 08:41, 27 September 2011

Text displayed when you hover over an object. Read/write.

cTooltipText = ob.tooltiptext
ob.tooltiptext = cTooltipText

cComment

String storing text to be displayed on hovering.

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public textbox1
define class page1_section1 as section
enddefine
 
 
define class tooltiptext_button as CommandButton
	proc click
		messagebox(textbox1.tooltiptext,0,"Tooltip")
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("tooltiptextbutton","tooltiptext_button")
	tooltiptextbutton.caption = "Query Tooltiptext"	
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox"
	textbox1.tooltiptext = "This is a tooltip, which is displayed when you hover over the object"
return page1_section1