TsSplitView will not align where I want it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #63155
    HeDiBo
    Participant

    Because TsSplitView misses the Align property, it is not possible to get it aligned at a proper place.
    For instance, consider a couple of panels with Align = alTop. In between these panels there is need for a TsSplitview, that will cover the panels below it when opened. How can I accomplish this?

    #63158
    Support
    Keymaster

    Try the Placement property with DisplayMode defined to svmaDocked value.
    I hope, that’s what you need.

    Attachments:
    You must be logged in to view attached files.
    #63731
    HeDiBo
    Participant

    I’ve made a little sample project.
    Click on the Hide/Show button, and you will find the splitview has positioned itself below sPanel4, even if its hifdden Align property is set before the sPanel4 Align property.

    • This reply was modified 5 years ago by HeDiBo.
    Attachments:
    You must be logged in to view attached files.
    #64238
    Support
    Keymaster

    Thank you for the demo.
    TsSplitView can’t have behavior of the panel.
    The Align property is not published and not recommended for using.

    You can try to replace this code:
    Opened := not sSplitView1.Opened;
    by this:
    sSplitView1.Visible := not sSplitView1.Visible;

    When Opened property used, control is visible always and position of aligning is not recalculated.

    #64324
    HeDiBo
    Participant

    You can try to replace this code:
    Opened := not sSplitView1.Opened;
    by this:
    sSplitView1.Visible := not sSplitView1.Visible;

    That would eliminate the slide-in effect. Than it is simply a question of using a normal panel and setting its visibility.

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