Tooltiptext Property

From Lianjapedia
Jump to: navigation, search

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

cTooltipText = ob.tooltiptext
ob.tooltiptext = cTooltipText

cComment

String storing the 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"
return page1_section1