March 29, 2024, 04:49:51 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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