sFrameBar question

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34727
    mol
    Participant

    I have an sFrameBar1 aligned to the left of a form. The framebar has four frames – Test1, Test2, Test3 and Test4. Test1 and Test3 are opened and visible. Test1/Test2 and Test3/Test4 are “grouped”; meaning that if I click on Test2, Test1 closes automatically, and if I click on Test4, Test3 closes. Okay, now my question:

    I would like the two open frames always have the height of (sFramebar1.Height – (4* TitleHeight)) div 2, automatically adjusting their height when the form is resized. Pretty much like AutoFrameSize := True, but for two open frames instead of one. How can I do that?

    I tried to use sFrameBar1.ChangeSize(), but with rather strange results. Also, I cannot use

    procedure TForm1.sFrameBar1Items0FrameDestroy(Sender: TObject;

    var Frame: TCustomFrame; var CanDestroy: Boolean);

    begin

    CanDestroy := True;

    end;

    Thanks!

    #46447
    Support
    Keymaster

    Hello

    Such behaviour is not provided at moment.

    Maybe will be better to use two FrameBars for this purpose?

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