TsScrollBox Scrollbar not updated when position set

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #51358
    Support
    Keymaster

    Thank you for the demo.

    ScrollBox does not receives any messages about a scroll pos changing and we can't catch it.

    You can use this manual scrolls updating while I'm in searching of solution:

    uses acSBUtils;

    with sScrollBox1.VertScrollBar do

    Position := Position+10;

    UpdateScrolls(sScrollBox1.ListSW, True);

    #51628
    ralfiii
    Participant

    Any news on that issue?

    Now I do have a problem with a skinned VCL-scrollbox (so a TScrollbox).

    When it's not skinned it works, when it's skinned it shows the same problem as the AC-scrollbox.

    And with the standard VCL-component the workaround doesn't compile.

    (I just tried with AC V8.53 – no improvement)

    #51651
    Support
    Keymaster

    I can't receive any message from system about changing of position.

    You can use universal method for scrolls repainting:

    SendMessage(sScrollBox1.Handle, WM_NCPAINT, 0, 0)

    #51688
    ralfiii
    Participant

    Top, that does the job.

    Thanks!

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