开发者

Delphi.Stretch Control (anchors:l,r,t and align:alNone) if one Control is Invisible

开发者 https://www.devze.com 2023-03-10 16:24 出处:网络
Did anybody do this? If I have 2 components on a form, 1-st is invisible, 2-d (which has anchors:left,right,top and align:alNone) must fill space of invisible control. For example, if you have uTorre

Did anybody do this?

If I have 2 components on a form, 1-st is invisible, 2-d (which has anchors:left,right,top and align:alNone) must fill space of invisible control. For example, if you have uTorrent try to开发者_如何学编程 hide list of categories then listview will immediately fill free space.

How to do this?

Thanks!


Just set Align of second control to alClient and it will do just that (filling the available space). You do not need to set the Anchors in this case.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号