if 你不是讨论属性编辑器的编写 then begin 使用从TCollection和TCollectionItem继承的对象。 在Published后就自动拥有那样的属性编辑器。 end else 我也正在研究;
不好意思,我是新来的,????不知道在哪里发表问题,我用uses(shellapi)连接网页,如下 procedure TForm1.Button1Click(Sender: TObject); begin shellexecute(handle,'open','http://gaea.hit.edu.cn',nil,nil,sw_shownormal); end;procedure TForm1.Button2Click(Sender: TObject); begin shellexecute(handle,'open','http://bzwmath.cn.st/',nil,nil,sw_shownormal); end; 但每次打开一个,都是替代前面那一个的,怎么样才能打开多个网页呢?????? 希望哪个大侠帮帮忙!谢谢!!
To cybercake(数字蛋糕) : 谢谢你的提示,我用TCollection和TCollectionItem继承对象来作,果然如你所讲,自动就有了属性编辑器; 另外,我研究了一下源代码,发现自己编写属性编辑器也行(当然麻烦一些啦),需要注意的是Designer属性(指向IDesigner接口,用来操作“窗体编辑器”),其中有很多方法用来和Delphi的IDE环境进行交互(你不妨看看帮助,里面有很详细的解释),比如SelectComponent方法就可以让属性框显示你指定对象的属性。
begin
使用从TCollection和TCollectionItem继承的对象。
在Published后就自动拥有那样的属性编辑器。
end
else 我也正在研究;
procedure TForm1.Button1Click(Sender: TObject);
begin
shellexecute(handle,'open','http://gaea.hit.edu.cn',nil,nil,sw_shownormal);
end;procedure TForm1.Button2Click(Sender: TObject);
begin
shellexecute(handle,'open','http://bzwmath.cn.st/',nil,nil,sw_shownormal);
end;
但每次打开一个,都是替代前面那一个的,怎么样才能打开多个网页呢??????
希望哪个大侠帮帮忙!谢谢!!
谢谢你的提示,我用TCollection和TCollectionItem继承对象来作,果然如你所讲,自动就有了属性编辑器;
另外,我研究了一下源代码,发现自己编写属性编辑器也行(当然麻烦一些啦),需要注意的是Designer属性(指向IDesigner接口,用来操作“窗体编辑器”),其中有很多方法用来和Delphi的IDE环境进行交互(你不妨看看帮助,里面有很详细的解释),比如SelectComponent方法就可以让属性框显示你指定对象的属性。