Page 1 of 1
Multiline GadgetTooltip
Posted: Mon Feb 23, 2004 1:15 pm
by Franky
Don´t know, if it is a bug or if this thread would better be placed under "Wishlist"
It isn´t possible to create a multiline Gadgettooltip with GadgetToolTip()
In the German Forum there is a thread about that and I thought it should be posted here
Here the link to this thread
http://www.robsite.de/php/pureboard/vie ... c547dec739
Re: Multiline GadgetTooltip
Posted: Wed Jun 25, 2014 4:21 pm
by Falko
cool and very old

.
But my desire is to these Multiline or another, which create multiple lines with "# CRLF $" is in
a GadgetToolTip.
Regards, Falko
Re: Multiline GadgetTooltip
Posted: Thu Jun 26, 2014 10:16 am
by Kukulkan
I would like to see this, too. Best would be HTML tooltips, but linebreaks would be great, too.
Kukulkan
Re: Multiline GadgetTooltip
Posted: Fri Jun 27, 2014 2:00 am
by ozzie
I don't know what was in that original thread mentioned by Franky as that link jut gives a 404. However, I use code based in info supplied by RASHAD in this topic:
Increase display time of tooltip?. Although my query was about increasing the display time, the solution offered also supports multi-line tooltips. However, afaik it is not possible to specifically nominate where line breaks occur, but I find this solution to be ideal for my requirements, so hopefully this will be of use for you as well.
The code I have implemented is this:
Code: Select all
Procedure setToolTipControls()
Protected ttip
ttip = FindWindow_("tooltips_class32",0)
If ttip
SendMessage_(ttip,#TTM_SETMAXTIPWIDTH,0,500) ; maximum width set to 500 pixels
SendMessage_(ttip,#TTM_SETDELAYTIME,#TTDT_INITIAL,0) ; cause tooltip to be displayed immediately
SendMessage_(ttip,#TTM_SETDELAYTIME,#TTDT_AUTOPOP,30000) ; time (in ms) tooltip will remain visible
EndIf
EndProcedure
Re: Multiline GadgetTooltip
Posted: Fri Jun 27, 2014 2:09 am
by IdeasVacuum
You could DIY. Use a border-less Window containing an Editor, Canvas or WebGadget.
Re: Multiline GadgetTooltip
Posted: Fri Jun 27, 2014 10:07 am
by davido
IdeasVacuum wrote:You could DIY. Use a border-less Window containing an Editor, Canvas or WebGadget.
Nice idea, I hadn't thought of that. Will give it a try.
Presumably I could use the same window for many 'Tooltips', by just changing the text and moving the window around.
Re: Multiline GadgetTooltip
Posted: Fri Jun 27, 2014 12:09 pm
by IdeasVacuum
...yes - another good thing is that you can have images/illustrations in your DIY Tooltip, making the tip do more for your User.
Re: Multiline GadgetTooltip
Posted: Fri Jun 27, 2014 2:41 pm
by Falko
@ozzie , very, very good. Thank you for a better Purebasic tooltip-Control
