请教WINAPI等高手,如何实现myactivex.集合.属性a这样类型的属性? 让你说的我也一头雾水了。Record是什么?是记录类型还是一条记录?怎么还“让他变成一个属性”?先说明白一些,大家好讨论。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你自己看吧,一个演示,我编译通过了(D5)。unit Component1;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type TTestColor=(TestColor1,TestColor2,TestColor3);type TTestProp=set of TTestColor;type TComponent1 = class(TComponent) private { Private declarations } FTestColor:TTestProp; procedure SetTestColor(const Value: TTestProp); protected { Protected declarations } function FGetColor:TTestProp; procedure FSetColor(value:TTestProp); public { Public declarations } published { Published declarations } property TestColor:TTestProp read FTestColor write SetTestColor; end;procedure Register;implementationprocedure Register;begin RegisterComponents('ActiveX', [TComponent1]);end;{ TComponent1 }function TComponent1.FGetColor: TTestProp;begin result:=FTestColor;end;procedure TComponent1.FSetColor(value: TTestProp);begin FTestColor:=value;end;procedure TComponent1.SetTestColor(const Value: TTestProp);begin FTestColor := Value;end;end. 在TypeLibraryEditor里有增加Method/Property的功能,其中Property有三种:只读,只写,读写。 求助 控制台程序中怎样清空键盘缓冲区? 修改Delphi的源代码之后,如何生成dcu文件? 请教各位了,在delphi中如何生成可执行文件(送100分) 大虾 紧急求助!!!!如何求得当前机子的处理器利用率和内存利用率? vc6编的代码控件,在delphi下测试,其中的函数返回值运行结果不对,其他都正常。什么原因? 老问题clientdataset/midas模糊过滤中文 如何实现listview的拖动功能? 如何进行文本的字节读取,就象16进制一样读取和修改!!!!!!请教 变量、指针的释放问题 如何获取combobox中的某个数据 请问谁知道怎样做合计
unit Component1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TTestColor=(TestColor1,TestColor2,TestColor3);type
TTestProp=set of TTestColor;type
TComponent1 = class(TComponent)
private
{ Private declarations }
FTestColor:TTestProp;
procedure SetTestColor(const Value: TTestProp);
protected
{ Protected declarations }
function FGetColor:TTestProp;
procedure FSetColor(value:TTestProp);
public
{ Public declarations }
published
{ Published declarations }
property TestColor:TTestProp read FTestColor write SetTestColor;
end;procedure Register;implementationprocedure Register;
begin
RegisterComponents('ActiveX', [TComponent1]);
end;{ TComponent1 }function TComponent1.FGetColor: TTestProp;
begin
result:=FTestColor;
end;procedure TComponent1.FSetColor(value: TTestProp);
begin
FTestColor:=value;
end;procedure TComponent1.SetTestColor(const Value: TTestProp);
begin
FTestColor := Value;
end;end.