473,320 Members | 2,180 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,320 software developers and data experts.

Problem with Combobox with Horizontal Scroll bar in VC ++

I have a combo box with a horizontal scroll bar.
(Used SetHorizontalExtent)

The dropdown with horizontal scroll bar works fine when I have more
items in the dropdown list. However when the number of items is less,
the horizontal scroll bar comes over the last item.

If there is only one item, I am not able to see that item because of
Horizontal scroll.

If there are two items , it is funny that the V Scroll also shows up.

Thanks in advance.
Nishant
Jul 22 '05 #1
2 2863

"Nishant" <fu******@infosys.com> wrote in message
news:8c**************************@posting.google.c om...
I have a combo box with a horizontal scroll bar.
(Used SetHorizontalExtent)

The dropdown with horizontal scroll bar works fine when I have more
items in the dropdown list. However when the number of items is less,
the horizontal scroll bar comes over the last item.

If there is only one item, I am not able to see that item because of
Horizontal scroll.

If there are two items , it is funny that the V Scroll also shows up.

Thanks in advance.
Nishant


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Jul 22 '05 #2
In that case, call SetHorizontalExtend( .. ) with 0, and use
SetDroppedWidth(...)
"Nishant" <fu******@infosys.com> wrote in message
news:8c**************************@posting.google.c om...
I have a combo box with a horizontal scroll bar.
(Used SetHorizontalExtent)

The dropdown with horizontal scroll bar works fine when I have more
items in the dropdown list. However when the number of items is less,
the horizontal scroll bar comes over the last item.

If there is only one item, I am not able to see that item because of
Horizontal scroll.

If there are two items , it is funny that the V Scroll also shows up.

Thanks in advance.
Nishant

Jul 22 '05 #3

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

Similar topics

3
by: Billy Jacobs | last post by:
I have created a DataGridColumnDatePicker Component so that I can put a datetimepicker control in my datagrid. It almost works. When I put my mouse in the cell it changes to a datetimepicker...
0
by: Ashvin Navare | last post by:
Hi All, I am developing a site in .NET. I have a datagrid put inside <DIV> tag to have horizontal & vertical scroll bars feature to the datagrid. For the DIV tag a CSS class is associated. In...
14
by: Karin Jensen | last post by:
Hi - I am trying to use Javascript to put material inside a table (i.e. alongside the previous material) if the user's screensize is big enough and outide the table (beneath table) if it isn't. ...
5
by: ima | last post by:
I'm attempting to use CSS for a three column layout. My problem is that although I'm using width % ie. column1 width 20%, column2 width 60%, and column3 20%, I end up with a horizontal scroll bar...
0
by: Jax | last post by:
I am using a class that inherits from the DataGridTextBoxColumn. It adds a combo box into the column where it displays a selection of choices. The problem I have is that when this comboBox loses...
0
by: web1110 | last post by:
Hi y'all, I have written a ComboBox derived from DataGridTextBoxColumn to use in a DataGrid. It seems to be working ok, however... When the ComboBox is displayed, the mouse scroll wheel...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
1
by: amuven | last post by:
Hi All, I need to put a horizontal scroll bar for 4 cells alone where my first cell in table should not contain any horizontal scroll bar . In clear, let us say there are 5 columns in my...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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....

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.