Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not getting horizontal scroll on ListBox in Dialog
#1
Hi Gintaras,
Thanks again for all your help recently!
I am filling a LB in a dialog with long filepaths/filenames and they will certainly go beyond the default dimensions of the LB. The vertical scroll works but the horizontal scroll bar is present but doesn't have the little slider tab, even though text goes way beyong the margin. Any ideas?

Thanks, Stuart

Function LB_HScrollTest
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 ListBox 0x54330000 0x200 0 2 104 114 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030208 "" "" ""

str controls = "3"
str lb3=
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
;Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
if(!ShowDialog("LB_HScrollTest" &LB_HScrollTest &controls)) ret


ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#2
Horizontal Scrollbar for Listbox?


Forum Jump:


Users browsing this thread: 1 Guest(s)