Page 1 of 1

Balloon Tooltip

Posted: 01 Oct 2009, 18:58
by Mex
Hi Timo

Is it possible to change balloontooltip on Texbox, when property Accept numbers only is set?
"Unaccetable character"... i want change this text to Estonian for exmaple?

BR;
Meelis

Re: Balloon Tooltip

Posted: 02 Oct 2009, 01:24
by TiKu
This tooltip comes from Windows, so I'm afraid there's no direct way. But the following might work:
  1. Subclass the TextBox.
  2. Watch out for the TTN_SHOW notification, which is sent via a WM_NOTIFY message.
  3. The lParam parameter sent with the notification points to a NMHDR struct, which should contain the tooltip's window handle in its hwndFrom member. Use the TTM_SETTITLE and TTM_UPDATETIPTEXT messages on this window to change the title and text displayed in the tooltip.
TiKu