Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» TCnBitBtn 的问题
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: TCnBitBtn 的问题
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#1
Post at 2009-4-21 20:34
Profile
|
Blog
|
P.M.
TCnBitBtn 的问题
以前版本作了个软键盘,工作正常。现在突然不能编译。CPU 占用 50% 。
界面不能显示正常,编译时死机。
d2009 相同。好像从去年某个版本开始。以前OK。
Attachment
: [键盘不能显示]
Archive.zip
(2009-4-21 20:34, 72.06 K)
Download count 434
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2009-4-21 22:46
Profile
|
Blog
|
P.M.
不能编译时出什么错?
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#3
Post at 2009-4-22 12:09
Profile
|
Blog
|
P.M.
死机!
只能强制结束编译器。
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#4
Post at 2009-4-22 12:12
Profile
|
Blog
|
P.M.
和此处代码有关?
for i:= 0 to ComponentCount - 1 do begin
if Components
is TCnBitBtn then
TCnBitBtn(Components
).Cursor:=crHandPoint ;
if TCnBitBtn(Components
).Name='CnBitBtn3' then
TCnBitBtn(Components
).Cursor:=crSizeAll ;
end;
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2009-4-22 15:04
Profile
|
Blog
|
P.M.
照道理这样的代码不会导致编译器死掉。
您是否装了CnPack IDE专家包或者其它专家包?
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#6
Post at 2009-4-22 19:57
Profile
|
Blog
|
P.M.
没有安装CnPack IDE专家包或者其它专家包
没有安装CnPack IDE专家包或者其它专家包
可以发到给你,您吗?
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#7
Post at 2009-4-22 20:19
Profile
|
Blog
|
P.M.
更换到 windows SPEEDBUTTON OK
单步我跟踪到,Formshow 死机
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#8
Post at 2009-4-22 20:20
Profile
|
Blog
|
P.M.
更换到 windows SPEEDBUTTON OK
单步我跟踪到,Formshow 死机。而且没有使用其它控件。
dorry
新警察
UID 41648
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-1-17
Status Offline
#9
Post at 2009-4-22 20:41
Profile
|
Blog
|
P.M.
原因找到,请大侠解决 代码:1549 行
procedure TCnCustomButton.WMWindowPosChanged(var Message: TMessage);
begin
//Invalidate;注释掉后 OK
inherited;
// 2008年08月03日添加,如果不继承原消息处理将会使控件无法改变大小- -好像就那时更新完后,不能使用不得不全部换成 TSpeedbutton
end;
[
本帖最后由 dorry 于 2009-4-22 20:44 编辑
]
bahamut8348
灌水司司长
UID 4743
Digest Posts
14
Credits 337
Posts 79
点点分 337
Reading Access 10
Registered 2007-1-18
Status Offline
#10
Post at 2009-4-23 15:58
Profile
|
Blog
|
P.M.
请问LZ能否提供点相同问题的代码片段呢?
目前我无法复现LZ所遇到的问题
做人要厚道,看帖要回贴
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-22 07:04
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008967 second(s), 8 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