
BBjTabCtrl::getToolTipTextAt
Description
In BBj 14.0 and higher, this method returns the tooltip text of a tab in the BBjTabCtrl.
Syntax
Return Value |
Method |
int |
getToolTipTextAt(int index) |
Parameters
Variable |
Description |
index |
Specifies the 0-based index of the tab. |
Return Value
Returns the tooltip text of the specified tab.
Remarks
None.
Example
REM Set the tooltip text of a tab in a tab control
REM Obtain the instance of the BBjAPI object LET myAPI!=BBJAPI()
REM Open the SysGui device LET SYSGUI=UNT OPEN (SYSGUI)"X0"
REM Obtain the instance of the BBjSysGui object LET mySysGui!=myAPI!.getSysGui()
REM Set addWindow param values LET X=10 LET Y=10 LET WIDTH=400 LET HEIGHT=400 LET TITLE$="BBj Window"
REM Create a window, initialy invisible LET myWindow!=mySysGui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$,$00000012$)
REM Add a tab control to the window LET myTabCtrl!=myWindow!.addTabCtrl(101,50,50,200,200)
REM Create 1 tab on the tab control myTabCtrl!.setNumTabs(1)
REM Create a child window LET myChildWindow!=myWindow!.addChildWindow(200,75,75,100,100,"",$$,1,$$)
REM Create a static text control CHILD_TEXT$="Child Window" LET myStaticText!=myChildWindow!.addStaticText(300,X,Y,WIDTH,HEIGHT,CHILD_TEXT$)
REM Set a title for tab 1 myTabCtrl!.setTitleAt(0,"Tab 1")
REM Set a tool tip text for tab 1 myTabCtrl!.setToolTipTextAt(0,"Tab 1")
REM Set a control for tab 1 in the tab control myTabCtrl!.setControlAt(0,myChildWindow!)
REM Set the top level window visible myWindow!.setVisible(1)
REM Register the CALLBACK routines CALLBACK(ON_CLOSE,APP_CLOSE,0)
REM Process Events PROCESS_EVENTS REM Callback routine called when the user closes the application window APP_CLOSE: RELEASE RETURN |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.