limelect 48 Posted February 1, 2022 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
limelect 48 Posted February 1, 2022 (edited) Ok found make size 0; Edited February 1, 2022 by limelect Share this post Link to post
limelect 48 Posted February 1, 2022 (edited) 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% Edited February 1, 2022 by limelect Share this post Link to post
aehimself 396 Posted February 1, 2022 The value is in pixels, not percent. Use Form.ClientWidth Div 2 instead. Share this post Link to post
limelect 48 Posted February 1, 2022 @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
limelect 48 Posted February 2, 2022 (edited) 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 February 2, 2022 by limelect Share this post Link to post
Uwe Raabe 2057 Posted February 2, 2022 (edited) 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 February 2, 2022 by Uwe Raabe Share this post Link to post
limelect 48 Posted February 2, 2022 (edited) actually, I did What I had to do once expand one side (1 section) over the other than return to normal. (2 sections) Edited February 3, 2022 by limelect Share this post Link to post