Skip to content
星期四, 三月 04, 2021

CWAPI

– Charlie.Wang's API site

Call Support: 00619800000000
Email Support: info@yourdoamin.com
Location: Sydney New South Wales
  • Delphi
    • 代码片段
    • Delphi Tips
    • CWMFoundation
    • DevExpress
  • SQL Server
    • MSSQL Tips
  • WinOS
    • Win Tips
  • CW OpenSource
    • Git for Delphi CWAPI
  • Home
  • FindComponent

标签:FindComponent

Delphi 遍历控件 遍历组件

2015年2月11日2017年1月6日 Charlie Wang

特别在动态创建控件时,有时经常需要遍历控件。 如果知道控件名称,则可以通过FindComponent – 查找(定位)组件,如果不知道的话,只能遍历控件了。 遍历一个Panel上的所有控件: Var i: integer; begin for i:=0 to Panel1.ControlCount do begin // 控件: Panel1.Controls[i] // 自己的业务逻Read More…

Tagged FindComponent 遍历
FindComponent

Delphi FindComponent – 查找(定位)组件

2015年1月27日2015年1月28日 Charlie Wang

根据组件名称,来定位到组件,并且更改组件属性 主要用到Delphi FindComponent 函数 //循环将RzBackground1 – #12的图片改为Sample中的图片 for I := 1 to 12 do begin TRzBackground(FindComponent('RzBackground'+IntToStr(I))).Texture := RzBackground_Sample.Texture; end; //将组件名为ComponentName的标签名改为DMRead More…

Tagged FindComponent

分类目录

  • Delphi (17)
    • CWMFoundation (4)
    • Delphi Tips (9)
    • DevExpress (4)
  • SQL Server (7)
    • MSSQL Tips (7)
  • WinOS (1)
    • Win Tips (1)

近期文章

  • Delphi MessageBox
  • Delphi 遍历控件 遍历组件
  • SQL Server 日期时间格式转换
  • 局域网Ping通Win7
  • Delphi StringReplace – 替换字符函数
  • Delphi Create(nil), Create(self), Create(Application)的区别
  • SQL Server Rand函数 (随机数)
  • SQL Server CheckSum函数 (校验和值)
  • SQL Server NewID函数 (生成GUID)
  • 特定条件下,同步两个SQL Server数据库数据
  • SQL Server Replace函数
  • SQL Server IsNull 去除NULL函数
  • Delphi 截屏控件
  • Delphi 发送邮件 通过Office Outlook
  • Delphi TreeView – 自动给标题上加图片
  • Delphi TreeView – 自动展开树形结构
  • cxGrid 显示行号及行号列列名
  • Delphi FindComponent – 查找(定位)组件
  • CWMFoundation – Algorithm
  • CWMFoundation – Keyboard

日历

2021年三月
一 二 三 四 五 六 日
« 3月    
1234567
891011121314
15161718192021
22232425262728
293031  
Copyright 2021 All rights reserved. | CWApi.com | 沪ICP备14047744号-7
  • Home