Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 不可视组件的Top和Left之二
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 不可视组件的Top和Left之二
sonicer
新警察
UID 677
Digest Posts 0
Credits 48
Posts 18
点点分 48
Reading Access 10
Registered 2005-2-1
Status Offline
#1
Post at 2010-4-26 10:28
Profile
|
Blog
|
P.M.
不可视组件的Top和Left之二
接 http://bbs.cnpack.org/viewthread.php?tid=6479&extra=page%3D1
又有新的发现,实际上TComponent下来的不一定全部有top, left,
在窗体的DFM文件中,
TActionList是有left,top属性的,而TAction则没有
TMaminMenu是有 left,top属性的,而TMenuItem则没有,
这样,delphiIDE在加载窗体时,会给有left,top属性的控件创建一个图标, 可以在窗体设计器中选中,然后进行其它诸如设计的操作,
但TAction,TMenuItem则没有top, left,在delphi IDE设计窗体时,不会在窗体上创建相应的图标,
俺想问一下,Delphi有没有啥机制,来区分这两者?
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#2
Post at 2010-5-3 22:06
Profile
|
Site
|
Blog
|
P.M.
普通的组件是用 RegisterComponentsProc 来注册的,而 TMenuItem 和 TXXXField 这些控件面板上没有的控件是用 RegisterNoIconProc 来注册的。后者只能由组件或属性、组件编辑器在设计期隐式创建。
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
sonicer
新警察
UID 677
Digest Posts 0
Credits 48
Posts 18
点点分 48
Reading Access 10
Registered 2005-2-1
Status Offline
#3
Post at 2010-5-5 18:00
Profile
|
Blog
|
P.M.
那么这两种不同的控件,在运行期有否办法来区分?
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-23 06:52
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.012216 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats