Board logo

Subject: SetFocus Bug [Print This Page]

Author: yyww    Time: 2005-5-4 07:21     Subject: 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
Author: flamingo    Time: 2005-5-14 22:21

这等奇怪的事?请注意GetParentForm的用法,在D7以前版本偶尔会只得到nil的结果。
Author: yyww    Time: 2005-5-14 22:40

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
Author: ccceee    Time: 2005-5-29 19:25

还有歪国人再哦
Author: Passion    Time: 2005-5-29 20:33

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.
Author: Passion    Time: 2005-5-31 22:54

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.)




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0