GGeneral Information:Show general information about the ToolTip control.
Label2
This demonstration also includes the TabFrame control which allows you to implement tabbed dialog boxes in Visual Basic. A full demonstration of this control is available for download in the MSBASIC forum on Compuserve - see file TABFRAME.ZIP in library 17 (3rd Party Products).
Label22
If you have any comments or suggestions concerning this control then please contact Graham Cockell (Compuserve ID 100113, 2774) via e-mail or on the Compuserve MSBASIC forum.
Label20
This product is distributed as shareware and registration details are provided in this demonstration and in the help file - click the help button on the toolbar.
Label19
The ToolTip control allows you to quikly add MS style tool tips and a context sensitive status bar to your Visual Basic applications. In addition to supporting popup tool tip windows the control provides events for tracking mouse movements, menu selections and focus changes within your application. Examples of each of these functions can be viewed by selecting the appropriate tab by clicking it with the left mouse button.
GSTabFrame1
GSTabFrame
Focus Tracking
MS Sans Serif
`Focus Tracking Details:Show details of focus tracking facilities provided by the ToolTip control
Command2
Command2
::Click to initiate Command1
Check1
Check1
::Click to select Check1
Command1
Command1
::Click to initiate Command2
Text2
Text2
::Enter text for Text2
Text1
Text1
::Enter text for Text1
Frame5
GotFocus Event
lblGotFocusFrmName
lblGotFocusCtlName
Label18
FrmName:
Label18
CtlName:
Frame4
LostFocus Event
lblLostFocusCtlName
lblLostFocusFrmName
Label18
FrmName:
Label18
CtlName:
Label32
The boxes below show the event parameters each time a GotFocus or LostFocus event is generated. Use the Tab key to move focus around the form and watch as they are updated.
Label31
The GotFocus and LostFocus events can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the control which currently has the focus.
Label30
The ToolTip control tracks the control which has the input focus and generates GotFocus and LostFocus events. A single ToolTip control can provide focus tracking for all the forms in an application.
GSTabFrame1
GSTabFrame
ToolTips
MS Sans Serif
SToolTip Details:Show details of tool tip facilities provided by the ToolTip control
Image2
wwwwwwwwwwwx
wwwwwwwwwwwx
wwwwwx
wwwwwwx
wwwwwwx
wwwwwwx
wwwwwx
wwwwwwx
wwwwwwx
wwwwwwwx
wwwwwwwx
wwwwwwwwx
wwwwwwwwx
wwwwwwwwwwwx
wwwwwwwwwwwx
+ToolTip:Pause to show a multi-line tool tip
Label36
vMove the cursor over the ToolTip icon to the left to display a multi-line tool tip with a different background colour.
Label35
A single ToolTip control can provide tool tips for all the forms in an application. The tool tip text can be supplied in the GetToolTip event or taken from the Tag property of the control for which the tool tip is being shown. In many cases it will be convenient to use the GetToolTip event to extract a section of the Tag property to be used as the tool tip - see the event procedures in this demonstartion for an example of how the Tag prpoerty can be used to supply tool tips, status bar text and focus change text.
Label34
Tool tips have been made popular by the latest releases of Microsoft Word and Excel and are rapidly becoming a standard part of many major Windows applications. Together with an intelligently updated status bar they help to make an application much easier to use.
Label33
uMove the cursor over the ToolTip icon to the left and pause for a short while. That small popup window is a tool tip.
Image2
wwwwwwwwwwwx
wwwwwwwwwwwx
wwwwwx
wwwwwwx
wwwwwwx
wwwwwwx
wwwwwx
wwwwwwx
wwwwwwx
wwwwwwwx
wwwwwwwx
wwwwwwwwx
wwwwwwwwx
wwwwwwwwwwwx
wwwwwwwwwwwx
ToolTip:Pause to show a tool tip
GSTabFrame1
GSTabFrame
Mouse Tracking
MS Sans Serif
`Mouse Tracking Details:Show details of mouse tracking facilities provided by the ToolTip control
Frame2
MouseExit Event
Label18
CtlName:
Label18
FrmName:
lblMouseExitFrmName
lblMouseExitCtlName
Frame1
MouseEnter Event
Label18
CtlName:
Label18
FrmName:
lblMouseEnterCtlName
lblMouseEnterFrmName
Label24
The boxes below show the event parameters each time a MouseEnter or MouseExit event is generated. Move the mouse around the form and watch as they are updated. Notice that each of the tabs is recognised as a separate control - the ToolTip control works with the TabFrame control to provide this functionality.
Label23
The MouseEnter and MouseExit events can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the control which the mouse is currently over.
Label21
The ToolTip control tracks movement of the mouse and generates MouseEnter and MouseExit events as the cursor moves into and out of each control. A single ToolTip control can provide mouse tracking for all the forms in an application.
GSTabFrame1
GSTabFrame
Properties
MS Sans Serif
NToolTip Properties:Show details of properties supported by the ToolTip control
GSTabFrame2
GSTabFrame
Custom
txtpropDesc
txtPropDesc
cboPropName
Label1
Description:
Label1
Property:
GSTabFrame2
GSTabFrame
Standard
MS Sans Serif
Label4
Label5
The colour and font properties control the appearance of the tool tip popup window and the Enabled property can be used to prevent all events from being generated.
Label4
FontStrikethru
Label4
FontSize
Label4
Label4
Label4
Label4
Index
Label4
ForeColor
Label4
FontUnderline
Label4
FontName
Label4
FontItalic
Label4
FontBold
Label4
Enabled
Label4
BackColor
Label3
IThe following standard properties are supported by the ToolTip control :-
GSTabFrame1
GSTabFrame
Events
MS Sans Serif
FToolTip Events:Show details of events supported by the ToolTip control
GSTabFrame3
GSTabFrame
Custom
cboEventName
txtEventDesc
txtEventDesc
Label1
Event:
Label1
Description:
GSTabFrame3
GSTabFrame
Standard
MS Sans Serif
Label6
>There are no standard events supported by the ToolTip control.
GSTabFrame1
GSTabFrame
Menu Tracking
MS Sans Serif
^Menu Tracking Details:Show details of menu tracking facilities provided by the ToolTip control
Frame3
MenuSelect Event
lblMenuCaption
lblMenuName
Label25
MenuCaption:
Label25
MenuName:
Label29
The box below ishows the event parameters each time a MenuSelect event is generated. Select the menus on this form and watch as they are updated. Notice that the system menu is recognised as well as the application menus.
Label28
The MenuSelect event can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the currently selected menu item.
Label27
The ToolTip control tracks menu selections and generates a MenuSelect event for each item. Each ToolTip control can provide menu tracking for the form containing the control and, if it is an MDI form, for the menus on MDI child forms.
GSTabFrame1
GSTabFrame
Registration
MS Sans Serif
MRegistration Information:Show details of how to register the ToolTip control.
Label26
JRegistered versions will be sent out by e-mail unless otherwise specified.
Label17
ENGLAND
Label16
Derbyshire DE6 1PR
Label15
Ashbourne
Label14
Hognaston
Label13
Fellsgarth House
Label12
GC Consulting Services Ltd
Label11
22) By sending a cheque or money order for
25 to :
Label10
\1) Through the SWREG forum on Compuserve. The fee is $29.95 and the registration ID is 2275.
Label9
If you find the ToolTip control useful you can receive the full version, which may be distributed with your applications, by registering as follows :
Label8
This demonstration includes a fully functional version of the ToolTip control which may be used in the Visual Basic development environment only. It cannot be used in conjunction with an EXE file produced from Visual Basic.
mnuFile
&File
File operations
mnuFNew
Create new document
mnuFOpen
&Open...
Open existing file
mnuFSave
&Save
Save file
mnuFSaveAs
Save &As...
Save file with new filename
mnuFSep1
mnuFExit
E&xit
Exit demonstartion
mnuEdit
&Edit
Clipboard operations
mnuECut
Cut selected text to clipboard
mnuECopy
&Copy
Copy selected text to clipboard
& mnuEPaste
&Paste
Paste text from clipboard
mnuEDelete
&Delete
Delete selected text
mnuView
&View
Select new tab
mnuVTab
&General
.Show general information about ToolTip control
mnuVTab
&Properties
!Show details of ToolTip properies
mnuVTab
&Events
Show details of ToolTip events
mnuVTab
&Registration
#How to register the ToolTip control
mnuVTab
&ToolTips
!Description of tool tip operation
mnuVTab
&Mouse Tracking
Description of mouse tracking
mnuVTab
Me&nu Tracking
Description of menu tracking
mnuVTab
&Focus Tracking
Description of focus tracking
mnuHelp
&Help
Help system operations
mnuHContents
&Contents
)Display help contents for ToolTip control
mnuHSep1
3 mnuHAbout
&About...
Display About dialog
GSTabFrame_Activated$
Index_
GSTabFrame_Deactivated>
Cancel
Command1_Click
cmdClose_Click
Form_Load
cboPropNameb
ListIndexu
cboEventName
Label4_Click.
Label10_Click
cmdHelp_Click
Label2_Click
WinHelp{
hWnd%
lpHelpFile
wCommand
dwData
frmTabDemoH
sHelpFileV
GSTabFrame1_Activated
cboPropName_Change5
cboPropName_Click,
PropDesc
Listw
txtPropDesc
display3
About
dialog
which
identifies
TabFrame
version
number
property
determines
whether
appear
bottom
controlJ
cboEventName_Change
EventDesc;
txtEventDescl
cboEventName_Click
HelpFile
cboPositionV
cboStyle
cboPosition_Change
cboPosition_Click
GSTabFrame4
Position
cboStyle_Change
Style
cboStyle_Click|
TotalTabs.
TabGroup
Groups
Caption
Command2_Clickh
Command3_Clickr
nIndexA
cmdNewTab_ClickV
cmdNewGroup_Click
cmdReset_ClickB
Active
Label2
Form1
mnuVGeneral_Click6
mnuVTab_Click
GSTabFrame(
GSTabFrame1a
imgHelp_Click
GSToolTip1_GetToolTipx
FrmName
CtlName
ToolTipq
Label7_ClickP
GSToolTip1f
ToolTips
GSToolTips
MouseTrackinga
MenuTracking
FocusTracking
GSTabFrame1_Deactivated
GSToolTip1_MouseEnterP
TagText
status
lblStatus
lblMouseFrmName
lblMouseEnterCtlName3
lblMouseEnterFrmNamer
GSToolTip1_MouseExitJ
lblMouseExitFrmName
lblMouseExitCtlName[
thenlblStatus
GSToolTip1_MenuSelect
MenuName
MenuCaption
lblMenuName
lblMenuCaption
GSToolTip1_GotFocus
lblGotFocusFrmName"
lblGotFocusCtlName
GSToolTip1_LostFocus9
lblLostFocusFrmName
lblLostFocusCtlName
mnuVTab
Checked
mnuFExit_Click
BackColor
mnuHContents_Click
imgHelp
Click
Screen
Width
Height
frmTipDemo
ToolTipTextT
cboEventName_Click
GetToolTip
This event is fired when a tool tip window is about to be displayed and allows the user to specify the tool tip text.
MouseEnter
This event is fired when the mouse enters a control. The Tag property of the control which the mouse is entering is passed as a parameter and may be used to determine the text to be displayed on a status bar.
MouseExit
This event is fired when the mouse leaves a control.
MenuSelect
This event is fired when a menu item is selected. The Tag property of the selected menu control is passed as a parameter and may be used to determine the text to be displayed on a status bar.
GotFocus
This event is fired when a control receives the input focus. The Tag property of the control receiving the focus is passed as a parameter and may be used to determine the text to be displayed on a status bar.
LostFocus
This event is fired when a control loses the input focus.
cboPropName_Click
About
This property, which is only available at design time, can be used to display the About dialog which identifies the ToolTip version number.
Scope
This property determines which controls are monitored by the ToolTip control. If set to 0 (Application) the ToolTip control monitors controls on all forms except those which contain another ToolTip control. If set to 1 (Form) the ToolTip control only monitors controls on it's own form.
ToolTips
This property determines how tool tips are generated. If enabled the Tag property of the control for which the tool tip is being generated can be used as the default tool tip text.
Delay1, Delay2
These properties determine how long the mouse must remian over a control before the tool tip window appears. Delay1 controls the normal delay and Delay2 controls the delay immediately after a tool tip has been displayed. Keeping Delay2 short allows users to browse a toolbar without having to wait for each new tool tip to appear.
AutoPosition
This property controls the positioning of the tool tip window relative to the current cursor position. If set True the ToolTip control positions the tool tip window automatically according to the current cursor (e.g. arrow, I-beam). If False the user controls the position using the OffsetX and OffsetY properties.
OffsetX, OffsetY
These properties can be used to manually control the position of the tool tip window.
Shadow
This property controls the size of the shadow used to highlight the tool tip window.
MouseTracking
This property is used to enable/disable the MouseEnter and MouseExit events.
MenuTracking
This property is used to enable/disable the MenuSelect event.
FocusTracking
This property is used to enable/disable the GotFocus and LostFocus events.
SubclassForm
This property is used to enable/disable the subclassing of the form required to track menu activity. It is only required in special circumstances as discussed in the Help file.
ToolTipText
This property can be used to control the display of tool tip windows directlty.