BBjControl::showToolTipText

Description

In BBj 15.0 and higher, this method shows the tooltip text for the BBjControl (also known as short cue in BBx).

Syntax

Return Value

Method

void

showToolTipText()

void

showToolTipText(int x, int y)

Parameters

Variable

Description

x

Horizontal position (in current units, relative to the control) to show the tooltip text.

y

Vertical position (in current units, relative to the control) to show the tooltip text.

Return Value

None.

Remarks

The no-arg version simulates the user moving the mouse to the top left corner of the control; the two-arg version simulates the user moving the mouse to the specified location relative to the top left corner of the control.

Example

rem ' BBjControl::showToolTipText

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "showToolTipText"
window! = sysgui!.addWindow(50,50,340,340,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
text$ = "The quick brown fox jumps over the lazy dog."
edit! = window!.addEditBox(101,20,20,300,25,text$,$$)
edit!.setToolTipText("BBjEditBox ToolTip")
cedit! = window!.addCEdit(102,20,55,300,200,text$,$0004$)
cedit!.setToolTipText("BBjCEdit ToolTip")
ok! = window!.addButton(1,20,275,100,25,"OK")
ok!.setToolTipText("OK Button ToolTip")
ok!.setCallback(ok!.ON_BUTTON_PUSH,"showToolTipTextEdit")
cancel! = window!.addButton(2,150,275,100,25,"Cancel")
cancel!.setToolTipText("Cancel Button ToolTip")
cancel!.setCallback(cancel!.ON_BUTTON_PUSH,"showToolTipTextCEdit")

process_events

eoj:
release

showToolTipTextEdit:
    edit!.showToolTipText()
return

showToolTipTextCEdit:
    cedit!.showToolTipText()
return

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjControl::setToolTipText

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.