Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» Frames 无法找到 TTntFrame
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Frames 无法找到 TTntFrame
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#1
Post at 2008-4-1 11:25
Profile
|
Blog
|
P.M.
|
Frames 无法找到 TTntFrame
如题。
环境:
DELPHI 7 UP1;
TntWare UnicodeControls 2.27。
CnWizards 0.8.2.356、0.8.3.374。
无法找到从TTntFrame继承的框架。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2008-4-1 13:09
Profile
|
Blog
|
P.M.
请问操作步骤?
另外如果不用CnPack专家包是否正常?
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#3
Post at 2008-4-1 14:13
Profile
|
Blog
|
P.M.
|
把专家包关闭,可以找到。
我在DELPHI 7 UP1上安装了TntWare UnicodeControls 2.27和 CnWizards 0.8.2.356、0.8.3.374。
然后用TTntFrame自定义一个框架,通过delphi自带的Frames 功能无法找到该框架,如果从TFrame继承,就可以找到。
TTntFrame = class(TTntCustomFrame)
TTntCustomFrame = class(TCustomFrame{TNT-ALLOW TCustomFrame})
TFrame = class(TCustomFrame)
是不是CnWizards 寻找的基类不对呢?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2008-4-1 14:38
Profile
|
Blog
|
P.M.
此处说的“delphi自带的Frames 功能”无法找到,是否是指点击组件板的Frame图标,再在设计器窗体上点击时弹出的对话框中无您需要的Frame?
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#5
Post at 2008-4-1 18:52
Profile
|
Blog
|
P.M.
|
是的,就是点击Delphi 7 的 Standard面板第一项“Frames”,然后出现CnWizards 提供的“Frame列表”窗口,但里面没有这个框架。如果禁用CnWizards ,DELPHI自带的“Select frame to insert”窗口,可以找到由TTntFrame继承的框架。
[
本帖最后由 gaoyanan 于 2008-4-1 18:53 编辑
]
Image Attachment
: [Frame列表]
Snap4.gif
(2008-4-1 18:52, 11.95 K)
Image Attachment
: [工程组窗口列表]
Snap1.gif
(2008-4-1 18:53, 18.05 K)
Image Attachment
: [工程组单元列表]
Snap2.gif
(2008-4-1 18:53, 21.59 K)
Image Attachment
: [待引用单元列表]
Snap3.gif
(2008-4-1 18:53, 16.86 K)
Image Attachment
: [DELPHI自带的“Select frame to insert”窗口]
Snap5.gif
(2008-4-1 18:53, 5.87 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2008-4-1 21:26
Profile
|
Blog
|
P.M.
经过初步检查,可能是tnt的frame的设计期父类不是TFrame所致,能否帮助我们进一步测试它?烦请下载附件中的带调试信息的DLL覆盖原有的CnWizards的DLL,并按照下面这个帖子的内容进行操作并将记录的日志文件发给我们。
操作过程中要包括弹出CnWizards的Frame对话框这一步。
调试记录步骤:
http://bbs.cnpack.org/viewthread.php?tid=291&extra=page%3D1
Attachment
: [CnWizards D7 调试dll]
CnWizards_D7.rar
(2008-4-1 21:26, 1.42 M)
Download count 473
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#7
Post at 2008-4-2 12:32
Profile
|
Blog
|
P.M.
|
先上传测试信息
Attachment
:
TntFrame_Test.rar
(2008-4-2 12:32, 11.01 K)
Download count 482
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#8
Post at 2008-4-2 12:51
Profile
|
Blog
|
P.M.
|
临时修改方案:
修改 unit CnProjectFramesFrm;
procedure TCnProjectFramesForm.CreateList;
// todo: 临时修改
if (IModuleInfo.DesignClass <> SFrameOfForm) and
(IModuleInfo.DesignClass <> 'TTntFrame') then
Continue;
这样可以找到'TTntFrame',不过这应该只是个初期折中方案,马上要驾照考试了,最近要抓紧时间练车,没有时间做测试了,抱歉。希望能看到下一个版本可以修改这个bug.
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#9
Post at 2008-4-2 12:59
Profile
|
Blog
|
P.M.
|
修改后的单元代码和编译后的DLL
Attachment
:
修改.rar
(2008-4-2 12:59, 910.77 K)
Download count 482
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#10
Post at 2008-4-2 14:00
Profile
|
Blog
|
P.M.
嗯,感谢楼上测试,我的想法也是从这儿入手的。这个问题应该能解决。
下一版本的每日构建版将会加入此修改。楼主也进入了俺们的“有贡献人员名单”。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#11
Post at 2008-4-8 14:17
Profile
|
Blog
|
P.M.
0.8.3.376的每日构建版中已经集成此更新。烦请下载测试?
gaoyanan
(高亚男)
普通灌水员
UID 39457
Digest Posts 0
Credits 62
Posts 22
点点分 62
Reading Access 10
Registered 2008-4-1
Status Offline
#12
Post at 2008-4-10 12:58
Profile
|
Blog
|
P.M.
|
昨天刚考完桩,跌跌撞撞考满分。
0.8.3.377已测试,问题已经修正。
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 16:54
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.011243 second(s), 10 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