获得窗体的所有控件名 == >很容易,要动态的显示在属性列表中,我也想知道.
不过咳以放在TstringList ,嘿嘿感觉不是很爽.以下是代码;
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Component1;
type
TForm1 = class(TForm)
Example1: TExample;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
Example1. Active := true;
end;
end.