Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: FuzZ on May 04, 2004, 02:49 AM

Title: Tool Tip text
Post by: FuzZ on May 04, 2004, 02:49 AM
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.
Title: Re:Tool Tip text
Post by: David on May 04, 2004, 11:21 AM
There is, i was reading about it in my VB book...i forget the coding of it though...
Title: Re:Tool Tip text
Post by: Networks on May 04, 2004, 01:18 PM
Quote from: David on May 04, 2004, 11:21 AM
There is, i was reading about it in my VB book...i forget the coding of it though...

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.
Title: Re:Tool Tip text
Post by: FuzZ on May 04, 2004, 01:23 PM
Quote from: Networks on May 04, 2004, 01:18 PM
Quote from: David on May 04, 2004, 11:21 AM
There is, i was reading about it in my VB book...i forget the coding of it though...

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.



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


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/
Title: Re:Tool Tip text
Post by: Fr0z3N on May 04, 2004, 01:23 PM
Quote from: Networks on May 04, 2004, 01:18 PM
Quote from: David on May 04, 2004, 11:21 AM
There is, i was reading about it in my VB book...i forget the coding of it though...

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.

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
Title: Re:Tool Tip text
Post by: FuzZ on May 04, 2004, 01:40 PM
Quote from: Fr0z3N on May 04, 2004, 01:23 PM
Quote from: Networks on May 04, 2004, 01:18 PM
Quote from: David on May 04, 2004, 11:21 AM
There is, i was reading about it in my VB book...i forget the coding of it though...

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.

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

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.
Title: Re:Tool Tip text
Post by: Flame on May 05, 2004, 10:06 PM
Draw the list yourself, then add your own tooltip which can support multiple lines  ;D
Title: Re:Tool Tip text
Post by: effect on May 05, 2004, 11:12 PM
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)
Title: Re:Tool Tip text
Post by: Networks on May 06, 2004, 01:33 PM
Can't you add some spaces to make it multi-line?
Title: Re:Tool Tip text
Post by: FuzZ on May 06, 2004, 06:34 PM
Quote from: Flame on May 05, 2004, 10:06 PM
Draw the list yourself, then add your own tooltip which can support multiple lines  ;D

I don't really know a whole lot, or much about drawing objects.. But I will look into it..
Title: Re:Tool Tip text
Post by: MyndFyre on May 06, 2004, 10:50 PM
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]
Title: Re:Tool Tip text
Post by: iago on May 07, 2004, 03:00 AM
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?