Jump to content
limelect

GridPanel

Recommended Posts

I have a grid panel with 1 raw 2 columns.

Left column label right column button

I would like while running to hide the right column and make

The left column takes the whole space as is only 1 column.

Then return to 2 columns as normal.

Is it possible?

 

Share this post


Link to post

Well not quiet return to 50% 

  form1.GridPanel1.ColumnCollection.Items[0].Value:=50;
  form1.GridPanel1.ColumnCollection.Items[1].Value:=50;
 

does not return to 50%

Screenshot - 01_02_2022 , 17_52_34.jpg

Edited by limelect

Share this post


Link to post

@aehimself I am using D10.2.3

form1.GridPanel1.ColumnCollection.sizestyle

has ssabolut ,sspercent and ssauto 

no pixels

 

P.s it seems that it resizes to glyph size (picture size)

Share this post


Link to post

Ok fixed

since I change it dynamically crazy but it workes

since both have to be 0 for 50% then

 

       if ByPrint then
        begin
........ 

 form1.GridPanel1.ColumnCollection.Items[1].Value:=0;
      end
        else
        begin

................

  form1.GridPanel1.ColumnCollection.Items[0].Value:=0;
 

 

Edited by limelect

Share this post


Link to post
18 hours ago, limelect said:

Well not quiet return to 50% 

  form1.GridPanel1.ColumnCollection.Items[0].Value:=50;
  form1.GridPanel1.ColumnCollection.Items[1].Value:=50;

Try setting both to 0.

Edited by Uwe Raabe

Share this post


Link to post

actually, I did

What I had to do once expand one side (1 section)

over the other than return to normal. (2 sections)

Edited by limelect

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×