Tooltip Code Generator
To Use:
Paste all the ID equates for the controls you want tooltips for into the
top textbox all at once (this box is only small to leave more room for
the
other controls). You can now edit the tooltips one by one in the box
marked
"Type your tooltip here...". Pressing ENTER will save the current tip
and
advance to the next ID in the list. You can also use the navigation
buttons
for this.
The delay settings group:
1) Initial delay: the time before a tooltip shows after the pointer
stops
over a control.
2) Autopop delay: the time a tooltip remains showing.
3) Reshow delay: the time before a tooltip reshows after the pointer
stops
over a different control.
These delays are preset to the defaults at startup.
When you need the complete code for pasting into your project, select
"Show
full source". You can paste this into your project or "#Include" it
after
your control equates and your Windows #Includes. Here's the #Include
code:
#Include "ToolTips.inc"
You can continue editing the tooltips at any time with no problems.
You will also need to call "SetToolTips" so it will run right after your
dialog and controls are created. A good place for this is in your
dialog's
callback function in response to the "%WM_INITDIALOG" message. For this
you can use:
SetToolTips CbHndl
Another good place is just BEFORE the dialog's "Dialog Show" statement.
For this, you can use:
SetToolTips hDlg
where "hDlg" is your dialog's handle.
To switch to code view mode select "Show code"
Here are examples of what you can paste directly into the
equates box:
%Dlg = 101 'main dialog
%BackBtn = 1001 'to move backward
%ForBtn = 1002 'to move forward
%CodeOpt = 1003 'show the code
%HelpOpt = 1004 'show help
%FullChk = 1005 'show full source code
%IdTxt = 1050 'holds ID's
%EditTxt = 1051
%CurTxt = 1052
%OutTxt = 1053
%InitTxt = 1054
%InitLbl
%CurLbl
%AutoLbl
%ReshowLbl
%IdLbl
%EditLbl
%MsLbl
If you happen to include extra equates or lines without equates or any
other
stray text, you can keep it out of the final code by simply not writing
tool-
tips for them when they appear in the "current ID" box.
The Tooltip generator source code is in the "tooltip" folder of the CVS directory
Browse CVS
Website Home
Project Summary Page at SourceForge.net
This project is sponsored by TheirCorp
(formerly TheirWare Corporation)