Delphi TTreeView学习(二)-- TTreeNodes

需要了解的属性:

Count property Count: Integer;

Use Count to determine the number of tree nodes in the tree view that owns the tree nodes object. Count provides an upper bound when iterating through the entries in the Item property array.

Handle property Handle: HWND;

Use Handle to obtain the handle of the tree view that owns the tree nodes object.

Item property Item[Index: Integer]: TTreeNode; default;

Use Item to access to a node by its position in the tree view. The first node has an index of 0, the second an index of 1, and so on.

Item is the default property for TTreeNodes. This means that the name of the Item property can be omitted when indexing into the set of tree nodes. Thus, the line

FirstNode := TreeView1.Items.Item[0];

can be written

FirstNode := TreeView1.Items[0];

Owner property Owner: TCustomTreeView;

Use the Owner property to access the tree view control that displays the nodes maintained by the TTreeNodes object.

时间: 2024-10-14 22:21:38

Delphi TTreeView学习(二)-- TTreeNodes的相关文章

Delphi TTreeView学习(三)-- TTreeNode

需要了解的属性: AbsoluteIndex property AbsoluteIndex: Integer; Use AbsoluteIndex to determine absolute position of a node in a tree nodes object. The first tree node in a tree nodes object has an index of 0 and subsequent nodes are numbered sequentially. If

Delphi TTreeView学习(一)

需要了解的属性: AutoExpand property AutoExpand: Boolean; Set AutoExpand to true to cause the selected item to expand and the unselected items to collapse. BorderStyle property BorderStyle: TBorderStyleTBorderStyle; Set BorderStyle to specify whether the tre

MySQL入门学习(二)

mysql 入门篇   上篇讲了如何安装并测试MySQL,环境建好后就可以继续我们的学习了.本篇主要熟悉一写常用命令. 1.启动MySQL服务器   实际上上篇已讲到如何启动MySQL.两种方法:   一是用winmysqladmin,如果机器启动时已自动运行,则可直接进入下一步操作.   二是在DOS方式下运行    d:mysqlbinmysqld 2.进入mysql交互操作界面   在DOS方式下,运行:   d:mysqlbinmysql    出现:   mysql    的提示符,此

OpenGL入门学习[二]

http://www.cppblog.com/doing5552/archive/2009/01/08/71532.html 一.点.直线和多边形 我们知道数学(具体的说,是几何学)中有点.直线和多边形的概念,但这些概念在计算机中会有所不同.数学上的点,只有位置,没有大小.但在计算机中,无论计算精度如何提高,始终不能表示一个无穷小的点.另一方面,无论图形输出设备(例如,显示器)如何精确,始终不能输出一个无穷小的点.一般情况下,OpenGL中的点将被画成单个的像素(像素的概念,请自己搜索之~),虽

学习二维动态数组指针做矩阵运算的方法_C 语言

本文分享了利用二维动态数组指针做矩阵运算的实现代码. 1. 头文件     // juzhen 2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdlib.h" #include "windows.h" #define OK 0 #define NG -1 typedef struct mat { int

AgileEAS.NET SOA 中间件平台5.2版本下载、配置学习(二):配置WinClient分布式运行环境

一.前言      AgileEAS.NET SOA 中间件平台是一款基于基于敏捷并行开发思想和Microsoft .Net构件(组件)开发技术而构建的一个快速开发应用平台.用于帮助中小型软件企业建立一条适合市场快速变化的开发团队,以达到节省开发成本.缩短开发时间,快速适应市场变化的目的.      AgileEAS.NET SOA中间件平台提供了敏捷快速开发软件工程的最佳实践,通过提供大量的基础支撑功能如IOC.ORM.SOA.分布式体系及敏捷并发开发方法所支撑的插件开发体系,以及提供了大量的

Delphi GDI+ 学习记录(28): 图像颜色的数据格式

//指定位图颜色var g,gbit: TGPGraphics; bit1,bit2: TGPBitmap; sb: TGPSolidBrush; begin //Self.Color := clWhite; g := TGPGraphics.Create(Canvas.Handle); sb := TGPSolidBrush.Create(MakeColor(255,0,0)); {画刷为红色} bit1 := TGPBitmap.Create(200, 32, PixelFormat32bp

Delphi GDI+学习记录(21): 颜色

//颜色透明度var g: TGPGraphics; sb: TGPSolidBrush; begin g := TGPGraphics.Create(Canvas.Handle); sb := TGPSolidBrush.Create(MakeColor(128,255,0,0)); {128表示半透明} g.FillRectangle(sb,10,10,100,100); sb.Free; g.Free; end; //使用 GDI+ 的颜色类型var g: TGPGraphics; sb:

Delphi GDI+学习记录(19): 路径

//绘制与填充路径var g: TGPGraphics; path: TGPGraphicsPath; p: TGPPen; sb: TGPSolidBrush; begin g := TGPGraphics.Create(Canvas.Handle); p := TGPPen.Create(MakeColor(128,255,0,0),4); sb := TGPSolidBrush.Create(MakeColor(128,255,255,0)); path := TGPGraphicsPat