March 28, 2024, 11:04:14 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Tooltips

Started by Brian, July 23, 2018, 05:19:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

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

Brian

Well, that has been fixed by using a bitmap instead of jpeg. But it would be nice to know for the future!

Brian