Difference between revisions of "Tooltiptext Property"
From Lianjapedia
(Created page with '{{Common Property}} Category:Properties Category:Common Properties') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
+ | Text displayed when you hover over an object. Read/write. | ||
+ | |||
+ | <pre> | ||
+ | cTooltipText = ob.tooltiptext | ||
+ | ob.tooltiptext = cTooltipText | ||
+ | </pre> | ||
+ | |||
+ | ===cComment=== | ||
+ | String storing the 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" | ||
+ | return page1_section1 | ||
+ | </code> | ||
[[Category:Properties]] | [[Category:Properties]] | ||
[[Category:Common Properties]] | [[Category:Common Properties]] |
Latest revision as of 09:01, 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" return page1_section1