News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Disable Scrollbars

Started by JayPee, September 02, 2009, 11:06:18 AM

Previous topic - Next topic

JayPee

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
Greetings From New Zealand
(Land of the Long White Cloud)

Slugsnack


JayPee

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
Greetings From New Zealand
(Land of the Long White Cloud)

sinsi

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.


Light travels faster than sound, that's why some people seem bright until you hear them.

Slugsnack

can i ask did you try ShowScrollBar() ?

JayPee

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
Greetings From New Zealand
(Land of the Long White Cloud)

JayPee

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
Greetings From New Zealand
(Land of the Long White Cloud)