灵异事件,我自定义的MyTreeView遁了

wugangcn 2008-10-13 10:52:53
说的不准确,是MyTreeView从来没在工程中出现,所以我应该没有机会去隐藏它,一个单元内在它之前和之后的控件都有显示,就它不出来,在palette属性里能看到它,里dpk或其它设计控件的PAS里能在palette上看来它,一进工程或者普通PAS就看不到了。
...全文
68 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wugangcn 2008-10-14
  • 打赏
  • 举报
回复
我还有注意这一点,但还是搞错了,搞得我用delphi自动生成一个,郁闷了很久.谢谢.
Harryfin 2008-10-14
  • 打赏
  • 举报
回复
怎么会有QComCtrls?不要用这个,这个是CLX的。用VCL的ComCtrls。

问题应该就是出在这里
wugangcn 2008-10-13
  • 打赏
  • 举报
回复
unit MyBoxes;
interface
uses
SysUtils, Classes, Controls, StdCtrls,QComCtrls;
type
TMyCheckBox = class(TCheckBox)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
type
TMyTreeView = class(TTreeView)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
type
TMyListView = class(TListView)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
type
TMyComboBox = class(TComboBox)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
procedure Register;
implementation

procedure Register;
begin
RegisterComponents('Favor', [TMyCheckBox,TMyTreeView,TMyListView,TMyComboBox]);
end;
end.
准确说,我什么都没写,MycheckBox和MyCombox有显示,TreeView和ListView
panrongzeng 2008-10-13
  • 打赏
  • 举报
回复
是不是长宽高太少了,或是太长,呵呵
wugangcn 2008-10-13
  • 打赏
  • 举报
回复
不光是treeview 我定义listview也不成功,不能成功显示在palette,在属性里查,却是存在

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧