473,322 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ListBox OwnerDrawVariable

Max
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.

Oct 31 '05 #1
2 3145
Did you set the HorizontalScrollbar property to true?

"Max" wrote:
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.

Nov 1 '05 #2
Max

Yes, I did and it's not working which is weird because the vertical bar becomes visible when there is a lot of text, but not the
horizontal bar. I use the example at:

http://msdn.microsoft.com/library/de...eitemtopic.asp

"Siva M" <sh******@online.excite.com> wrote in message news:68**********************************@microsof t.com...
Did you set the HorizontalScrollbar property to true?

"Max" wrote:
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each
entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.


Nov 1 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Patty O'Dors | last post by:
Hi I have some code to create an ownerdrawn listbox (derived), and when I add an item to it, the bold text of the first item (the title, 'Collections and Maturities') mysteriously seems to get...
0
by: Max | last post by:
Hello, I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry. The problem I have is that the horizontal scroll bar is not...
0
by: e | last post by:
My goal is to create a "WindowsXP add/remove programs"-style listbox, where the selected item is bigger (taller) than the others, and displays different content when selected. When the listbox's...
9
by: Larry Serflaten | last post by:
I'm drawing my own inherited listbox, and I don't want the user to select any items, but I do want to allow them to scroll the listbox. When they click on an item, there is a flicker of the...
2
by: Max | last post by:
Hello, I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry. The problem I have is that the horizontal scroll bar is not...
4
by: the_mikado | last post by:
Hi, If this has been answered before I am sorry, but I want to wordwrap the items in a listbox so I dont have to use the horizontal scroll bar. Is this possible? if so how can it be done? ...
2
by: Paul_Madden via DotNetMonster.com | last post by:
I am handling the Listbox DrawItem event to enable the listbox strings to be displayed in different colours for easy reading. Have set ScrollAlwaysVisible and HorizontalScrollbar to true. I...
0
by: kiran.inbng | last post by:
Hi All, Iam trying to create a listbox with buttons/tree control as items in a listbox(ownerdrawvariable) and iam having some problems.Below are my questions, 1.Is there a equivavalent of...
0
by: active | last post by:
I created Public Class MyListBox Inherits System.Windows.Forms.ListBox .... and do Public Sub New()
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.