请问在Delphi中怎样在程序中设定Treeview的一个节点被选中时显示的图形? 放一个imagelist 加入两个图。双击treeview selected index=1. state index=0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TTreeNode.StateIndexIndicates which image from the StateImages list to display for the node. Var Node:TTreeNodebegin Node := TreeView1.Items.Add; Node.ImageIndex := 0; //正常图标 Node.SelectedIndex := 1; //选定图标end; node.ImageIndex := 1;node.SelectedIndex:=0;//被选中时显示的图形 在OnGetSelectedIndex,OnGetimageIndex事件中设置 Node.ImageIndex 断点调试问题 遗憾,程序缺少一个XP效果的弹出式菜单。 有没有把BCB源文件转换成DEPHI文件的工具? 各位md5组件怎么安装 ? 组件中怎么取得包含该组件的父窗体的句柄? 从端口读取打印机状态的问题 关于主从表中数据检索的问题 请教各位大侠了 如何将一段加密,可是仍能看到原来的字,但不能复制、粘贴 delphi版本问题! 关于网络的流量记费 在线程中如何接收消息?
TTreeNode.StateIndexIndicates which image from the StateImages list to display for the node.
begin
Node := TreeView1.Items.Add;
Node.ImageIndex := 0; //正常图标
Node.SelectedIndex := 1; //选定图标
end;
node.SelectedIndex:=0;//被选中时显示的图形