TsSplitView will not align where I want it.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 6 years, 4 months 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 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.