我有两个有子结点的父结点 A、B,因同时展开两个的话会有滚动条的,现比如:
A、B结点只展开一个,即展开A时先合上B再展开A,展开B时先合上B再展开A,该在哪个事件里怎么写?谢谢,
我是在它的Expanding中这样写:
if TreeView1.Items[0].Focused then
if TreeView1.Items[19].Expanded then
TreeView1.Items[19].Collapse(true);
if TreeView1.Items[19].Focused then
if TreeView1.Items[0].Expanded then
TreeView1.Items[0].Collapse(true);
但没用。
A、B结点只展开一个,即展开A时先合上B再展开A,展开B时先合上B再展开A,该在哪个事件里怎么写?谢谢,
我是在它的Expanding中这样写:
if TreeView1.Items[0].Focused then
if TreeView1.Items[19].Expanded then
TreeView1.Items[19].Collapse(true);
if TreeView1.Items[19].Focused then
if TreeView1.Items[0].Expanded then
TreeView1.Items[0].Collapse(true);
但没用。
解决方案 »
- 在Delphi下如何创建Access2003的DataBase和该库内的多个Table!--不用中间件!牛X的人回答一下!
- 广州招D程序员一名
- 如何屏閉olecontainer右鍵菜單?
- 哪位知道怎样来捕获socket的异常处理!!!!!!!!!!!!
- 将指定内容写入word文档,有格式限制,请帮忙!急!!!!
- delphi 调用远程序 access数据库。。
- 如何在delphi中调用DOS命令?
- 有谁知道ActionList中的‘标准操作’是什么意思吗?
- 当按照书名查询时,系统提示没有该索引:no index with 'bookname' field.何故
- FillChar的问题
- 怎样监控其它程序中某个事件的触发?
- 请问我怎么找不到TMIDASPageProducer这个控件呢?
这样行吗,
没有试,你自己试一下。