Native scroll bars on TWinControl subclass

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35072
    jonesa
    Participant

    I am curious if anybody can help me with getting a native Win32 scroll bar to skin properly in my TWinControl subclass. Basically, I have a legacy C++ Win32 control (not VCL) which I need to use in my application. I have quickly wrapped this in a TWinControl to allow it to fit into my VCL application, but not rewritten it to VCL, so a majority of the control is written in raw WIN32 API and uses WndProc for event handling. Everything is working fine, except the scroll bar of the control is not skinning. It uses the WS_VSCROLL property on the window style, and SetScrollInfo to manage the scroll bar. I have not been able to figure out one of:

    1) How to tell AlphaControls about this scroll bar to get it to skin it

    2) or, what a reasonable way to re-implement the scroll bar using a similar API, but more alpha controls friendly.

    I was really hoping for a TsWinControl, but no such beast exists.

    A demo application is attached with a trivial example TWinControl subclass, as well as a screen shot (top scroll bar is a TsScrollBar displaying correctly, right hand side is the bad scrollbar)

    #47917
    Support
    Keymaster

    Hello!

    I think, you should add 'TSuperScroller' into ThirdParty list as 'ScrollControl'.

    I have this control skinned correctly in your demo.

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