开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜