CnPack Forum


 
yyww
新警察
Rank: 1



UID 819
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2005-5-4
Status Offline
Post at 2005-5-4 07:21  Profile | Blog | P.M. 
SetFocus Bug

Hi,

  After installing the latest version of CnWizards IDE, Delphi 7 is not able to compile the statement:

   XXXXX.SetFocus.  (XXXX is whatever the control's name)

The compile error I got was: "Undeclare identifier: SetFocus".

After un-install CnWizards IDE, everything went OK.

Thanks

Yu Wei
Top
flamingo
新警察
Rank: 1



UID 179
Digest Posts 0
Credits 39
Posts 39
点点分 39
Reading Access 10
Registered 2003-10-12
Status Offline
Post at 2005-5-14 22:21  Profile | Blog | P.M. 
这等奇怪的事?请注意GetParentForm的用法,在D7以前版本偶尔会只得到nil的结果。
Top
yyww
新警察
Rank: 1



UID 819
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2005-5-4
Status Offline
Post at 2005-5-14 22:40  Profile | Blog | P.M. 
Hi,

  Sorry, I don't know what your're talking about. It is only a COMPILE error. As you would be noticed that the auto code completion hint from CnWizard will give you 'SetFncus' rather than 'SetFocus'. so I guess that CnWizard replaced the Delphi keywords list with its own, which then leading to cause the Delphi 7 (Ent) couldn't compile.

Thanks
Top
ccceee
新警察
Rank: 1



UID 816
Digest Posts 1
Credits 24
Posts 14
点点分 24
Reading Access 10
Registered 2005-5-3
Status Offline
Post at 2005-5-29 19:25  Profile | Blog | P.M. 
还有歪国人再哦
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6834
Posts 3589
点点分 6834
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2005-5-29 20:33  Profile | Blog | P.M. 
Thank you for your feedback. Our Code Input Helper obtains symbols list through calling exported functions of delphi IDE's core bpl. This problem has also been reported by a few users, but it can not recur in our IDE now.
Can you check whether the latest UPDATE PACK of your IDE was installed?

And, we guess that it maybe caused by our using IDE's unrevealed API. The internal symbols list in IDE maybe changed when in Multi-Thread environment. We're trying to analyze this problem and try to fix it later.
Thank you for you supporting.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6834
Posts 3589
点点分 6834
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2005-5-31 22:54  Profile | Blog | P.M. 
We've do some work on CnWizards. Added an options for Code Input Helper. You can download the latest nightly build version to test this problem.

http://www.cnpack.org/download/u ... 7.4.87_Unstable.exe

If the problem still exists in D7, you can open settings dialog for Code Input Helper, check the compatible options and test it again.(IDE Restarting maybe required.)
Top
 




All times are GMT++8, the time now is 2024-11-15 09:58

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007928 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP