?? fieldshow.pas
字號:
unit fieldshow;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
RXCtrls, Db, Grids, Menus;
type
TFormfieldshow = class(TForm)
StringGrid1: TStringGrid;
PopupMenu1: TPopupMenu;
N1: TMenuItem;
procedure FormCreate(Sender: TObject);
procedure N1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Formfieldshow: TFormfieldshow;
implementation
uses reportdsg;
{$R *.DFM}
procedure TFormfieldshow.FormCreate(Sender: TObject);
var
i:integer;
begin
left:=Screen.Width-left;
top:=70;
with formreportdsg do
begin
StringGrid1.RowCount :=RepData.Fields.Count;
StringGrid1.Cells[0,0]:='中文含義';
StringGrid1.Cells[1,0]:='欄位名稱';
For i:=0 to RepData.Fields.Count -1 do
begin
StringGrid1.Cells[0,i+1]:=RepData.Fields[i].DisplayLabel;
StringGrid1.Cells[1,i+1]:=RepData.Fields[i].FieldName;
end;
end;
end;
procedure TFormfieldshow.N1Click(Sender: TObject);
begin
if N1.Checked then
begin
N1.Checked :=False;
FormStyle:=fsNormal;
end else
begin
N1.Checked :=True;
FormStyle:=fsStayOnTop;
end;
end;
procedure TFormfieldshow.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Formfieldshow:=Nil;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -