IonicWind Software

IWBasic => General Questions => Topic started by: Brian on July 23, 2018, 05:19:48 AM

Title: Tooltips
Post by: Brian on July 23, 2018, 05:19:48 AM
Hello,

I have a few bitmaps that I have attached tooltips to. Sample code for one of them:

UINT hTooltip=TOOLTIPCONTROL(w1,@TTS_ALWAYSTIP|@TTS_NOANIMATE|@TTS_NOFADE|@TTS_BALLOON,0)
   TTADDTOOL hTooltip,@TTF_SUBCLASS|@TTF_IDISHWND|@TTF_CENTERTIP,GETCONTROLHANDLE(w1,BUT_addnew),w1.hWnd,"Add a new customer"

But this code doesn't work with a JPG  button that is loaded with LOADIMAGE (ie, it has a UINT handle, rather than a name)

Any ideas how to get round this?

Brian
Title: Re: Tooltips
Post by: Brian on July 23, 2018, 08:19:33 AM
Well, that has been fixed by using a bitmap instead of jpeg. But it would be nice to know for the future!

Brian