Size of tooltipps

Size of tooltipps

Postby Dietmar Jahnel » Sat May 02, 2009 5:09 pm

I think the sizes of the tooltips can use a little adjustment.

tooltip with header:

Code: Select all  Expand view  RUN
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:
Image

Same without header:
Code: Select all  Expand view  RUN
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:
Image

Can we change the size-calculation?
Regards,
Dietmar
User avatar
Dietmar Jahnel
 
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria

Re: Size of tooltipps

Postby Otto » Sat May 02, 2009 7: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6364
Joined: Fri Oct 07, 2005 7:07 pm

Re: Size of tooltipps

Postby Otto » Sat May 02, 2009 8:12 pm

Dietmar,

you could also try to add

SendMessage(hWnd, TTM_SETMAXTIPWIDTH, 0,300 )

in METHOD ShowToolTip of window class.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6364
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 88 guests

cron