Problem with TFrame AutoScroll

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37124
    Raccoon
    Participant

    Hi,

    I have a TFrame with TsFrameAdapter on it and AutoScroll Enabled.

    I'm using:

    Code:
    TWinControl *wc = FindVCLWindow(pMousePos);
    if(wc)
    {
    TPoint pCursor;
    GetCursorPos(&pCursor);
    TRect rc;
    GetWindowRect(AFrame->Handle, &rc);
    if(PtInRect(&rc, pCursor))
    {
    int zDelta = GET_WHEEL_DELTA_WPARAM(Msg.wParam);
    if(zDelta < 0)
    SendMessage(AFrame->Handle, WM_VSCROLL, SB_PAGEDOWN, 0);
    else
    SendMessage(AFrame->Handle, WM_VSCROLL, SB_PAGEUP, 0);
    Handled=true;
    }
    }

    To redirect a mousewheel event to the Frame for scrolling.

    The problem is, that the Scrollbar is not drawn correctly, until I place my mouse cursor over the ScrollBar. Then the scrollbar is drawn at the correct position.

    If I set Skinmanager Active=false, everything is drawn correctly immediatly.

    Thanks for help

    Best regards

    Alex

    #55518
    Support
    Keymaster

    Hello

    I will make a test application and I will test your code, thank you for the message.

    #55535
    Raccoon
    Participant

    Thank you very much!

    #55565
    Raccoon
    Participant

    Any news here?

    Best regards

    Alex

    #55566
    Support
    Keymaster

    Yes, issue will be solved in the nearest release, tomorrow.

    #55567
    Raccoon
    Participant

    Nice, thank you very much 😎

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.