IonicWind Software

IWBasic => General Questions => Topic started by: Andy on March 06, 2020, 12:01:17 AM

Title: Scroll bars
Post by: Andy on March 06, 2020, 12:01:17 AM
Hi every one,

I'm playing around with scroll bar controls at the moment.

Using the in-built scroll bar functions of IWB is okay, but there are some things I can't detect / or get the scroll bar to do.

Mouse wheel movement / amount to scroll

Now I know I can subclass a scrollbar control but although it is sending messages detecting them

e.g.

SUB ScrollBarHandler(hwnd:int,uMsg:int,wParam:int,lParam:pointer),int

'print uMsg

    int st,sp,L,crs
    crsCount = 0
    string s
    SELECT uMsg

          case WM_MOUSEWHEEL
                Finish()


    ENDSELECT
RETURN CallWindowProcA(GetPropA(hwnd,"scroll_handler"),hwnd,uMsg,wParam,lParam)
ENDSUB


doesn't seem to be working for me?

Anyone got ideas please - I can't seem to find what I'm looking for here.

Thanks,
Andy.
:)
Title: Re: Scroll bars
Post by: h3kt0r on March 06, 2020, 09:35:20 AM
Quoted from Win32 Programmer's Reference (http://idquodnescis.we.bs/public/Win32.chm) :

QuoteScroll Bar Functions

Following are the functions used with scroll bars.

EnableScrollBar
GetScrollPos
GetScrollInfo
GetScrollRange
ScrollDC
ScrollWindow
ScrollWindowEx
SetScrollInfo
SetScrollPos
SetScrollRange
ShowScrollBar

And :

QuoteMOUSEEVENTF_WHEEL Windows NT only: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is given in dwData
Title: Re: Scroll bars
Post by: Andy on March 09, 2020, 03:34:23 AM
Thanks for that,

Will have a look now my back has stopped playing up.

Might be able to get back to programming again now.

Andy.