regarding list box in vc++
-
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true. But when I run the application, the scroll bars are disabled. Please let me know where I went wrong. regards haasini
-
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true. But when I run the application, the scroll bars are disabled. Please let me know where I went wrong. regards haasini
Hi, But if you set the 'Horizontal scroll' 'Vertical scroll' to 'Disble no scroll', the scroll bars will be disabled. Cause your telling the compiler that you won't be using then by: 'Disble no scroll'. Well, that is if I understand your question correctly. Hope it helps.
Only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r
-
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true. But when I run the application, the scroll bars are disabled. Please let me know where I went wrong. regards haasini
Actually, the scroll bars will be enabled only if there are more items to be displayed in the list box. Please check after inserting more items in the List box. Regards Velayudhan
-
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true. But when I run the application, the scroll bars are disabled. Please let me know where I went wrong. regards haasini
How many items in your listbox?
_**
**_
WhiteSky
-
Hi, But if you set the 'Horizontal scroll' 'Vertical scroll' to 'Disble no scroll', the scroll bars will be disabled. Cause your telling the compiler that you won't be using then by: 'Disble no scroll'. Well, that is if I understand your question correctly. Hope it helps.
Only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r
Right ... After futher investigation ... How many items are in your list box, cause if there were only one | two, the scroll bars will be disabled, depending on the vertical size of the list box.
Only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r
-
Actually, the scroll bars will be enabled only if there are more items to be displayed in the list box. Please check after inserting more items in the List box. Regards Velayudhan
-
How many items in your listbox?
_**
**_
WhiteSky
-
Right ... After futher investigation ... How many items are in your list box, cause if there were only one | two, the scroll bars will be disabled, depending on the vertical size of the list box.
Only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r
-
Thanq for the response.. I have many items in the list box, but only Vertical scroll is enabled.. horizontal scroll is not enabled though the text is exceeding the width of listbox.. regards haasini
Ok, so if I understand it correctly ... both of the scroll bars (Vertical & Horizontal) (in their properties) are enabled? And you have text that is exceeding the vertical and horizontal width | height of the object? Just for interrest what complirer are you using?
Only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r
-
Hi, I am new to VC++. I have a list box in my window, i have checked the properties 'Horizontal scroll' 'Vertical scroll' and also 'Disble no scroll', to true. But when I run the application, the scroll bars are disabled. Please let me know where I went wrong. regards haasini
It seems the horizontal bar cannot be used as you expected. It is supported by the list box only in case of multicolumn lists, and does not perform horizontal scrolling for long items. I think you can try an alternative solution based on "list control" instead of "list box" (available in Dialog Editor too). When a list control is used in Report mode, it looks like a list box with or without header, but with new features, like horizontal scrolling. I hope this helps.
-
It seems the horizontal bar cannot be used as you expected. It is supported by the list box only in case of multicolumn lists, and does not perform horizontal scrolling for long items. I think you can try an alternative solution based on "list control" instead of "list box" (available in Dialog Editor too). When a list control is used in Report mode, it looks like a list box with or without header, but with new features, like horizontal scrolling. I hope this helps.
-
Thanq for the response.. I have many items in the list box, but only Vertical scroll is enabled.. horizontal scroll is not enabled though the text is exceeding the width of listbox.. regards haasini
I suggest use from CListCtrl its better than CListBox
_**
**_
WhiteSky