Delphi:显示分配给树视图节点的框架
我对框架没有经验。
如何使用带有框架的树视图? 我需要在树视图的节点之间切换并显示分配给所选节点的框架。
大大大大感谢帮助!!!
I have no experience with frames.
How to use a Tree View with frames?
I need to switch among nods of the Tree View and show assigned Frame to the selected node.
Big big thank for help!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果节点的 Data 持有指向框架或任何其他类型对象的指针,将指针类型转换为它所持有的对象类型,这并没有什么区别。
下面的代码添加两个框架(“Frame2”和“Frame3”,由 IDE 创建 - 非常类似于新表单)作为 TreeView 的节点,并将所选节点框架的可见性设置为 true,将取消选择的框架的可见性设置为 false。
It doesn't really make any difference if the
Data
of nodes hold a pointer to a frame or any other kind of object, typecast the pointer to the type of object it holds.Below code adds two frames ('Frame2' and 'Frame3', created by the IDE - much like a new form), as nodes of a TreeView, and sets the visibility of the selected node's frame to true and the deselected one's to false.