Using Splitter – SizingByClick True

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36991
    TAZ
    Participant

    Example:

    I have a project with 2 panels (left one set to alClient and the right one set to alRight) and a splitter in the middle of the 2 panels with it set to alRight).

    Can you start the project with the splitter closed (right panel hidden)? This means the client panel and the splitter are only visible. What I am trying to do is when I open the window, I want the splitter controlled panel to be hidden like not revealing the contents of the right panel.

    I cannot figure out how this could happen.

    #55082
    Support
    Keymaster

    Hello!

    You can try a code like this:

    Code:
    procedure TForm1.FormCreate(Sender: TObject);
    begin
    sSplitter1.State := ssClosed;
    end;

    Do not change a size or Visible property of the right panel manually.

    #55092
    TAZ
    Participant

    I must be missing something. I followed your instructions. The result is the right panel is still there and the splitter is gone. I did not do any resizing or visibility changes.

    I am using 10.29.

    #55093
    Support
    Keymaster

    Thank you for the demo. I have found a reason of the problem. If you have sources, I can send you the fixed file, give me email address only.

    Otherwise, this fix will be included in the nearest release.

    #55095
    TAZ
    Participant

    Just sent you a message.

    When you say the next update are you talking about 10.30 or version 11?

    #55097
    Support
    Keymaster

    This bugfix will be included in both releases.

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