WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Balloon Tool Tips on Dialogs III


May be you can update/implement the tooltip code? Suggestion:

;========================================================================
;=AddToolTip - Used to add a tooltip to a control                       =
;= htt - tool window handle returned by SetupToolTips()                 =
;= dlghandle - the handle of the dialog (passed from the dialog callback=
;= ctrlid - real control id obtained with roboscripter                  =
;= text - the text to display as the tooltip                            =
;= IconType=0 - No icon.                                                =
;= IconType=1 - Blue info on white bubble.                              =
;= IconType=2 - Exclamation mark on triangle.                           =
;= IconType=3 - White cross on red circle.                              =
;========================================================================
;#DefineFunction AddToolTip(htt,dlghandle,ctrlid,icontype,text)
#DefineFunction AddToolTip(htt,dlghandle,ctrlid,text)
   WM_USER=1024
   TTM_ADDTOOL=WM_USER+4
   TTF_SUBCLASS=16
   TTM_SETTITLE=WM_USER+32

   icontype=Min(Max(0,icontype),3) 

   user32=DllLoad(StrCat(DirWindows(1),"user32.dll"))
   hinst=DllHinst("")

...

   ;add tooltip
   r=DllCall(user32,long:"SendMessageA",long:htt,long:TTM_ADDTOOL,long:0,lpbinary:TOOLINFO)
   If icontype Then r=DllCall(user32,long:"SendMessageA",long:htt,long:TTM_SETTITLE,long:IconType,lpbinary:TOOLINFO)
   DllFree(user32)
   BinaryFree(RECT)
   BinaryFree(TOOLINFO)
   Return r
#EndFunction

Article ID:   W15886
File Created: 2004:03:30:15:41:26
Last Updated: 2004:03:30:15:41:26