The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: spertulo on January 08, 2011, 09:20:33 AM

Title: Tooltip does nolt work in Unicode
Post by: spertulo on January 08, 2011, 09:20:33 AM
  Hi All!

I made a tooltip window how described in Iczelion, lesson 27. It works well in 1-byte code.
But if I try to use Unicode variant (with SendMessageW), only the first symbol of tip is shown because
it is followed by a zero byte. I suspect, the Unicode variant is not implemented at all.
I tested it in WinXP and Windows 7.

Do anyone have experience with it?

Thanks for any answer.
Title: Re: Tooltip does nolt work in Unicode
Post by: jj2007 on January 08, 2011, 11:20:53 AM
Try TTM_ADDTOOLW (and let us know if it helped :bg)
Title: Re: Tooltip does nolt work in Unicode
Post by: jj2007 on January 09, 2011, 01:09:11 AM
Why not some simple macros at the end of the WM_CREATE handler?

Quote      ToolTips TTS_BALLOON            ; credits to anon (http://www.masm32.com/board/index.php?topic=3477.msg26283#msg26283)
      ToolTips hButton1, "Press this button"
      ToolTips hButton2, wRes$(103)      ; use a resource string, wide version
      ToolTips hEdit, wRes$(104)      ; type some text
      ToolTips end
(http://tooltips.zip)
Wait for the next update of MasmBasic :bg

(http://www.webalice.it/jj2006/pics/Tooltips.png)
Title: Re: Tooltip does nolt work in Unicode
Post by: spertulo on January 11, 2011, 10:11:14 PM
Quote from: jj2007 on January 08, 2011, 11:20:53 AM
Try TTM_ADDTOOLW (and let us know if it helped :bg)
Yes, it works!
Many thanks!
Grazie tantissime!
Title: Re: Tooltip does nolt work in Unicode
Post by: jj2007 on January 11, 2011, 11:10:55 PM
I am glad I could help you, Ivan :thumbu