CnPack Forum


 
Subject: Delphi2006 OTA问题2
littlerain
新警察
Rank: 1



UID 210
Digest Posts 0
Credits 43
Posts 30
点点分 43
Reading Access 10
Registered 2003-11-3
Status Offline
Post at 2005-12-18 00:05  Profile | Blog | P.M. 
Delphi2006 OTA问题2

我现在的Code Completion的快捷键已经绑定到alt+space, 用以下方法绑定:
BindingServices.AddKeyBinding([ShortCut(VK_SPACE, [ssAlt])],
CodeCompletion, Pointer(csCodeList or csManual));

现在我在IDE中新建一个application
代码如下:

unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm3 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form3: TForm3;

implementation

{$R *.dfm}

procedure TFor|

end.

这里'|'是我光标所在的位置,当我用alt+space 激活Code Completion窗口后,
回车一下,本来正常的话,应该是TForm3|,但是奇怪的是代码变成了如下:

unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm3 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form3: TForm3;

implementation

{$R *.dfm}

procedure TForm3;
begin     ~~~~~~~~

end;

end.

奇怪吧?我想也有可能是IDE的bug。
Top
littlerain
新警察
Rank: 1



UID 210
Digest Posts 0
Credits 43
Posts 30
点点分 43
Reading Access 10
Registered 2003-11-3
Status Offline
Post at 2005-12-20 13:03  Profile | Blog | P.M. 
应该是Block Completion的bug, 没有适当进行判断,已经将这个bug报告给borland
Top
 




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

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

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