|
-
Sep 20th, 2002, 06:57 AM
#1
Thread Starter
Member
Combo box - Showing full text in dropdown
This is my first post, so hello all. I'm glad I discovered this forum, it been of great help.
OK, I have a simple VB combo box and the old problem of not being able to see the full text of the dropdown items cos the length of the text is too long.
I've read in previous posts how to increase the size of the dropdown width, but I was thinking more in the line of Windows explorer and how it shows a tooltips type label if the text doesn't fit within a window.
So my question is how can I show the full text in a combo box, where the text is longer then the width of the drop down without increasing the width of the dropdown.
I've seen many standard windows applications using a method of displaying a yellow tooltips style text to show the full text in listboxes, tree views etc, but how can I do this with the standard combo?
-
Sep 20th, 2002, 11:14 AM
#2
You can't. The tooltip text property of the combo box is for the entire combo box, not individual items.
If you are going to use the standard combo box, go with widening it to fit the longest entry. If that is unacceptable to you, then you would next to investigate purchasing a third party combo box (I've no idea who would make this) that fits your needs.
-
Sep 20th, 2002, 11:20 AM
#3
Thread Starter
Member
Cheers, Hack.
I thought that would be the case. Unless anyone else can think of any other clever way of doing it.
How about having a floating Label positioned exactly where a selected item in the dropdown is. That would mean knowing the position of the selected item, but also there is the problem of the label being under the combo dropdown. So I think it would be very difficult.
In the mean time, I'll extend the dropdown width.
-
Sep 20th, 2002, 11:24 AM
#4
Actually the floating label think does sound cool, and a pain.
If you ever got something like that to work, post the code. I'm sure lots of folks would be interested.
-
Sep 20th, 2002, 11:35 AM
#5
Thread Starter
Member
Will do, if I get it to work that way.
Cheers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|