如果我没有弄错,在插入组件名称后插入“。”,delphi有能力显示选项列表。 (点)在更多参数之前。当我编码时Delphi没有显示对象/组件“提示”
我的delphi 7在“。”之后没有显示这个列表。
例如:当我进入
form1.edit1.
它应该显示的选项列表的“TEDIT”的组成部分。没有发生,怎么了?
代码:
unit Banri;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Clipbrd;
type
TForm1 = class(TForm)
EditTexto: TEdit;
ButtonGO: TButton;
procedure ButtonGOClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
SL: TStringList;
Count: Integer;
Appwin : hWnd;
implementation
{$R *.dfm}
var
TextoCompleto: String;
begin
TextoCompleto:= EditTexto.Text;
Appwin:= FindWindow(PChar(0),'Banrisul');
if Appwin <> 0 then
begin
StringReplace(TextoCompleto, '.', '', [rfReplaceAll, rfIgnoreCase]);
SL:= TStringList.Create;
try
ExtractStrings([' '], [], PChar(TextoCompleto), SL);
WriteLn(SL.Text);
ReadLn;
finally
SL.Free;
end;
Count:= 0;
while Count <> SL.Count - 1 do
begin
Clipboard.AsText:= SL[Count];; //place text in clipboard
//if Clipboard.HasFormat(CF_TEXT) then
//do something with text
ShowMessage(Clipboard.AsText);
Clipboard.AsText:= SL[Count + 1];; //place next line text in clipboard
//if Clipboard.HasFormat(CF_TEXT) then
//do something with text
inc(Count);
end; //while Count <> SL.Count - 1 do
SL.Free;
end; //if Appwin <> 0 then
end.
组件名称下方是否有红色的波浪线?在表单名称下怎么样?如果是这样,当你将鼠标悬停在它上面时,该工具提示告诉你什么? – 2013-05-07 00:42:42
没事,没事。 – FernandoSBS 2013-05-07 01:23:19
您能否包含您的表单来源? – 2013-05-07 01:41:12