起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 410|回复: 20

【搞定】[问题]请问这是什么问题????**

[复制链接]
发表于 2007-9-19 15:41:45 | 显示全部楼层 |阅读模式
我把我自己做好的个bpl包导入到studio里面.....可是在重启studio的时候工具栏上面只显示一个控件(如图)!!请帮忙看下是什么问题所致.....

QQ截图未命名2.jpg

10.54 KB, 下载次数: 161

回复

使用道具 举报

发表于 2007-9-19 15:45:35 | 显示全部楼层
控件有可视不可视2种
可视的需要有类似代码
procedure Register;
begin
  RegisterComponents('ActiveX',[TJvXPButtonX]);
end;
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-19 16:03:09 | 显示全部楼层
具体我该怎么做,???能否详细点??谢谢!!2楼的是什么意思???请说详细些~...
回复 支持 反对

使用道具 举报

发表于 2007-9-19 16:08:20 | 显示全部楼层
Registration is a simple process that tells Delphi which components to add to its component library, and on which pages of the Component palette they should appear. For a more detailed discussion of the registration process, see Making components available at design time
To register a component,

1        Add a procedure named Register to the interface part of the component抯 unit. Register takes no parameters, so the declaration is very simple:

procedure Register;

If you are adding a component to a unit that already contains components, it should already have a Register procedure declared, so you do not need to change the declaration.

2        Write the Register procedure in the implementation part of the unit, calling RegisterComponents for each component you want to register. RegisterComponents is a procedure that takes two parameters: the name of a Component palette page and a set of component types. If you are adding a component to an existing registration, you can either add the new component to the set in the existing statement, or add a new statement that calls RegisterComponents.
这个是标准的delphi语法,我也讲不清楚,你看看帮助。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-19 16:17:03 | 显示全部楼层
我意思是只想要看到(显示)我导入studio 里面的控件....这跟语法有关??如果要写代码我要怎么写??写在那里??新手来的~~帮帮忙!!
回复 支持 反对

使用道具 举报

发表于 2007-9-19 16:22:24 | 显示全部楼层
这个确实跟语法有关系。如果语法里有这部分,就能看到控件了。
你不是能看到一个吗?你看看它的代码。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-19 16:50:26 | 显示全部楼层
我做看到的哪个控件我看不到它的源代码.....这个控件在studio里面是可以使用的.....而4楼所提到到语发是在那里的??控件里面的还是???
回复 支持 反对

使用道具 举报

发表于 2007-9-19 16:57:03 | 显示全部楼层
控件里的。
回复 支持 反对

使用道具 举报

发表于 2007-9-19 16:59:22 | 显示全部楼层
4楼是英文。
不是程序语言
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-19 17:00:08 | 显示全部楼层
我看了代码....没有2楼所提到到那句代码....如果加2楼的那句代码进去是不是就可以显示??我要怎么添加?在那里添加?谢谢!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-6-28 11:08 , Processed in 0.043895 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表