Hi All
Can someone tell me if it is possible to disable the vertical and horizontal scroll bars in a listbox, I don't want them to appear when data exceeds the width and height of the listbox
Thanks
try EnableScrollBar()
Hi
Thanks for the reply
Tried that- got rid or the arrows and thumb but the bars are still showing.
I want to stop them completely showing
Regards
John
I can't see a way to hide the vertical scrollbar (that sort of defeats the purpose of a listbox), but the horizontal one:
Quote from: SDK
LB_SETHORIZONTALEXTENT Message
Sets the width, in pixels, by which a list box can be scrolled horizontally (the scrollable width). If the width of the list box is smaller than this value, the horizontal scroll bar horizontally scrolls items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden.
can i ask did you try ShowScrollBar() ?
Thanks sinsi
I found the answer
I used ShowScrollBar,hList,SB_BOTH,FALSE
Turns the scrollbars of completely
Works a treat
Thanks for the help
Regards
John
Hi Slugsnack
I just found that call in the SDK info
Now using it nad it works a treat
Thanks for your help
regards John