FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tooltip-Height not adjusted to Text ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Tooltip-Height not adjusted to Text ?
Posted: Tue Jun 23, 2009 07:31 PM
Hello,

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



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



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



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

Code (fw): Select all Collapse
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 :-)
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.

Continue the discussion