FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Size of tooltipps
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Size of tooltipps
Posted: Sat May 02, 2009 05:09 PM
I think the sizes of the tooltips can use a little adjustment.

tooltip with header:

Code (fw): Select all Collapse
ssay2:cToolTip = {+ CRLF + "Zeitschrift: ecolex 2001, 84;" + OemToAnsi("  ™JZ EvBl 2001/18");
                  + CRLF + "Entscheidungssammlung: SZ 71/89;  VfSlg 15510";
                  + CRLF + "OGH-Rechtssatznummer: RS0122393";
                  + CRLF + OemToAnsi("Fundstellenliste: Anklicken des Pfeiles rechts!") , OemToAnsi("Suche nach Fundstellen in Publikationen:")}


The balloon is too big:


Same without header:
Code (fw): Select all Collapse
fuGet:cToolTip = "Zeitschrift: ecolex 2001, 84;" + OemToAnsi("  ™JZ EvBl 2001/18");
                  + CRLF + "Entscheidungssammlung: SZ 71/89;  VfSlg 15510";
                  + CRLF + "OGH-Rechtssatznummer: RS0122393";
                  + CRLF + OemToAnsi("Fundstellenliste: Anklicken des Pfeiles rechts!")


A little bit too narrow:


Can we change the size-calculation?
Regards,
Dietmar
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Size of tooltipps
Posted: Sat May 02, 2009 07:52 PM

From Antonio to a similar question:

Otto,

This FWH tooltips enhancement was implemented back in March 2008. From whatsnew.txt:
* Enhancement: Tooltips can now have user defined header, icon and colors, by specifying the tooltip as an array in the format { cToolTipText, [cHeader, [nIcon]], [nForeColor], [nBackColor] }. If the tooltip is specified as a codeblock, it can evaluate to a character value or an array.

Surely this can improve your tooltips very much regards, saludos

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Size of tooltipps
Posted: Sat May 02, 2009 08:12 PM

Dietmar,

you could also try to add

SendMessage(hWnd, TTM_SETMAXTIPWIDTH, 0,300 )

in METHOD ShowToolTip of window class.

Best regards,
Otto

Continue the discussion