Delphi:分离器的对齐和可见性
有一个树视图,左对齐。还有一个分离器,同样的,留下一个对齐。树视图是第一个,分切器是第二个。
如果这样做:
TreeView1.Visible:=false;
Splitter1.Visible:=false;
然后:
TreeView1.Visible:=true;
Splitter1.Visible:=true;
分离器将是左边第一个。一定是第二个。如何防止这种情况发生?
谢谢!!!
There is a tree view, an align is left. And there is a splitter, the same, an align is left. The tree view is the first, the slitter is the second.
If to do:
TreeView1.Visible:=false;
Splitter1.Visible:=false;
And then:
TreeView1.Visible:=true;
Splitter1.Visible:=true;
The splitter will be the first from the left. Must be the second. How to prevent this?
Thanks!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AFAIK 没有办法阻止这种情况的发生(即使你改变了让它们再次可见的顺序,有时它们仍然会以错误的方式结束)。 添加,这应该将分离器移回到正确的位置。
使它们再次可见后
AFAIK there is no way to prevent this happening (even when you change the order of making them visible again, sometimes they still end up in wrong way). Add
after making them visible again, this should move splitter back into right position.
要使分割器从左边数第二个,您必须通过设置确保 TreeView 位于左边第一个:
To make splitter second from the left you must make sure that TreeView is first on the left by setting: