Difference between revisions of "Tooltiptext Property"

From Lianjapedia
Jump to: navigation, search
Line 8: Line 8:
  
 
===cComment===
 
===cComment===
String storing text to be displayed on hovering.
+
String storing the text to be displayed on hovering.
  
 
==Example==
 
==Example==

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 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, which is displayed when you hover over the object"
return page1_section1