Valhalla Legends Forums Archive | Visual Basic Programming | Tool Tip text

AuthorMessageTime
FuzZ
Is it possible to have a new line on a ListView's tool tip text ?? I've tried vbCrLf, and vbNewLine, neither work. If anyone knows how, I sure would appreciate it :)

thanks for any *help* in advance.
May 4, 2004, 7:49 AM
David
There is, i was reading about it in my VB book...i forget the coding of it though...
May 4, 2004, 4:21 PM
Networks
[quote author=David link=board=31;threadid=6647;start=0#msg58424 date=1083687667]
There is, i was reading about it in my VB book...i forget the coding of it though...
[/quote]

What a useless post ^

Anyhow I was wondering how you can add a tooltiptext to and item that your about to add or just have? Referring to the to battle.net when you add a user if they join as well as when you enter channel.
May 4, 2004, 6:18 PM
FuzZ
[quote author=Networks link=board=31;threadid=6647;start=0#msg58445 date=1083694721]
[quote author=David link=board=31;threadid=6647;start=0#msg58424 date=1083687667]
There is, i was reading about it in my VB book...i forget the coding of it though...
[/quote]

What a useless post ^

Anyhow I was wondering how you can add a tooltiptext to and item that your about to add or just have? Referring to the to battle.net when you add a user if they join as well as when you enter channel.
[/quote]


[code]
With frmBNet.lstNicks.ListItems(.ListItems.Count)
.ToolTipText = "Ping: " & sPing & " Flags: " & sFlags
[/code]

That's in my AddNick function.

Edit> I was given this link by iNDiGO2k of TGN (D2Network)
http://www.codeguru.com/vb/gen/vb_forms/listviewcontrols/article.php/c5947/
May 4, 2004, 6:23 PM
Fr0z3N
[quote author=Networks link=board=31;threadid=6647;start=0#msg58445 date=1083694721]
[quote author=David link=board=31;threadid=6647;start=0#msg58424 date=1083687667]
There is, i was reading about it in my VB book...i forget the coding of it though...
[/quote]

What a useless post ^

Anyhow I was wondering how you can add a tooltiptext to and item that your about to add or just have? Referring to the to battle.net when you add a user if they join as well as when you enter channel.
[/quote]

That was not useless, he told him there is a way but he forgot. Therefor letting him know that there is a way.

edit: ubt
May 4, 2004, 6:23 PM
FuzZ
[quote author=Fr0z3N link=board=31;threadid=6647;start=0#msg58449 date=1083695000]
[quote author=Networks link=board=31;threadid=6647;start=0#msg58445 date=1083694721]
[quote author=David link=board=31;threadid=6647;start=0#msg58424 date=1083687667]
There is, i was reading about it in my VB book...i forget the coding of it though...
[/quote]

What a useless post ^

Anyhow I was wondering how you can add a tooltiptext to and item that your about to add or just have? Referring to the to battle.net when you add a user if they join as well as when you enter channel.
[/quote]

That was not useless, he told him there is a way but he forgot. Therefor letting him know that there is a way.

edit: ubt
[/quote]

But that was useless, just like mine! :D

The link I gave will only work if you store the stuff you want in your tooltip in a variable some where. AFAIK, at this point in time.
May 4, 2004, 6:40 PM
Flame
Draw the list yourself, then add your own tooltip which can support multiple lines ;D
May 6, 2004, 3:06 AM
Null
Search it up google , as im at work at the moment and cannot provide you with the code.

But it is there (Multi-Line ToolTips)
May 6, 2004, 4:12 AM
Networks
Can't you add some spaces to make it multi-line?
May 6, 2004, 6:33 PM
FuzZ
[quote author=Flame link=board=31;threadid=6647;start=0#msg58765 date=1083812778]
Draw the list yourself, then add your own tooltip which can support multiple lines ;D
[/quote]

I don't really know a whole lot, or much about drawing objects.. But I will look into it..
May 6, 2004, 11:34 PM
Myndfyr
Yes folks, it was a quick Google search to the first item of the query, "Multi-Line Tooltips in Visual Basic."

The URL is:
http://www.vb-faq.com/Articles/Pharis/MultiLineToolTips.asp

[edit=1]
It has come to my attention (through reading other Google results) that this may not implicitly work for ListBox. I suggest figuring out where the mouse is and displaying the view accordingly.[/edit]
[edit=2]
If you feel like converting C++ to VB, I suggest http://www.codeguru.com/Cpp/controls/listview/tooltiptitletip/article.php/c4161/ . That was on a modified query, appending "list view" to the above query.[/edit]
May 7, 2004, 3:50 AM
iago
I don't know if this can possibly help, but to do multiline in Java Swing you have to do a lot of extra work extending and reimplementing some methods. You can find the code here:
http://www.codeguru.com/java/articles/122.shtml

I have *no idea* if this has *any* relevence to Visual Basic, but who knows?
May 7, 2004, 8:00 AM

Search