Tooltip-Height not adjusted to Text ?

Tooltip-Height not adjusted to Text ?

Postby ukoenig » Tue Jun 23, 2009 7:31 pm

Hello,

I started to rewrite all the Tooltips and noticed some things :

Image

The Length of the Tooltip-Textline is allways adjusted to the Title-Width.
CRLF inside the Tooltip-Text is ignored, if a Textline is longer than the Title-Length.
Title : "Color-Background " <==== empty space must be added, to get longer Text-Lines.
The hight of the Tooltip is not adjusted to the Text.
It seems, maybe CRLF is counted to the Text ( 4 x ) ?
There is no Background-Color ( 128 = Red )

The same Tooltip, but without added Title-space.
CLRF doesn't work, because the Textlines are longer than the Title-text.
But now, the Tooltip-Hight is OK.
Title : "Color-Background" <==== trimmed

Image

Another Test with a longer Tooltip-Title ( no added space at Title-end )

Image

Is it possible, to adjust the Tooltip-Height to the Text-lines ?

Code: Select all  Expand view

oBButt1:cToolTip := { + CRLF + "Color-Background selected." + CRLF + ;
   "Please aktivate all Previews" + CRLF + ;
   "with Button < Show All >, or" + CRLF + ;
   "select a single Dialog from the" + CRLF + ;
   "right Buttonbar", "Color-Background          ", 1, 0, 128 } // Space added to get full Textlines.
 


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], jair, nageswaragunupudi and 106 guests