April 19, 2024, 05:37:23 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Scroll bars

Started by Andy, March 06, 2020, 12:01:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

March 06, 2020, 12:01:17 AM Last Edit: March 06, 2020, 12:29:58 AM by Andy
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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

h3kt0r

March 06, 2020, 09:35:20 AM #1 Last Edit: March 06, 2020, 09:40:17 AM by h3kt0r
Quoted from Win32 Programmer's Reference :

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

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.