Jump to content

Store with of containerpanel


d.bernaert

Recommended Posts

Hi,

I have a form with client alignment.

It contains a containerpanel with 2 child containerpanels.

The lay-out is border.

The left child has region west and the right child has region center.

I activated the split so that the left child can be resized and the right child is resized also.

Now I would like to store the width of the left child so that the user can select the desired with by draggin the splitter and when he enters the module again the selected with is restored.

How can I do this?

Thx,

Dominique

Link to comment
Share on other sites

  • 7 months later...

Hello,

One of the possible solutions, using the server side (the database will be used).

1. 

procedure TMainForm.UniPanel1Resize(Sender: TUniControl; OldWidth,
  OldHeight: Integer);
begin
  //Writing to the database
  //(Sender as TUniPanel).Width
end;

2.

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  //Reading from DB
  UniPanel1.Width := xx;
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...