RTFormwork/public10/design/U_BaseInput.pas

69 lines
1.5 KiB
ObjectPascal
Raw Normal View History

2024-07-07 09:35:27 +08:00
unit U_BaseInput;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,U_WindowFormdesign, Data.DB,
2024-10-12 10:45:24 +08:00
Data.Win.ADODB, System.ImageList, Vcl.ImgList, Vcl.ToolWin, Vcl.ComCtrls,
cxImageList, cxGraphics;
2024-07-07 09:35:27 +08:00
type
TfrmBaseInput = class(TForm)
ADOQueryBaseCmd: TADOQuery;
ADOQueryBaseTemp: TADOQuery;
ImageList_new32: TImageList;
2024-10-12 10:45:24 +08:00
cxImageList_bar: TcxImageList;
2024-07-07 09:35:27 +08:00
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure FormShow(Sender: TObject);
private
fWindowDesign:TWindowFormdesign;
public
{ Public declarations }
end;
var
frmBaseInput: TfrmBaseInput;
implementation
uses
2024-10-30 13:45:23 +08:00
U_RTFun ,U_globalVar,U_dataLink,U_FormLayOutDesign;
2024-07-07 09:35:27 +08:00
{$R *.dfm}
procedure TfrmBaseInput.FormCreate(Sender: TObject);
2024-10-30 13:45:23 +08:00
var
mFontSize:integer;
2024-07-07 09:35:27 +08:00
begin
2024-10-30 13:45:23 +08:00
getSystemIni();
if gFontSize<9 then
begin
mFontSize := 12;
end
else
begin
mFontSize:=gFontSize ;
end;
self.Font.Size := gFontSize;
if trim(gFontName)<>'' then
self.Font.Name:=gFontName;
2024-07-07 09:35:27 +08:00
fWindowDesign:=TWindowFormDeSign.Create();
end;
procedure TfrmBaseInput.FormDestroy(Sender: TObject);
begin
fWindowDesign.free;
end;
procedure TfrmBaseInput.FormShow(Sender: TObject);
begin
2024-10-12 10:45:24 +08:00
if trim(gStructVer)='' then
2024-10-22 09:36:09 +08:00
fWindowDesign.FormStyleInit1(self,0,ADOQueryBaseTemp,ADOQueryBaseCmd)
2024-10-12 10:45:24 +08:00
else
fWindowDesign.FormStyleInit(self,0,ADOQueryBaseTemp,ADOQueryBaseCmd) ;
2024-07-07 09:35:27 +08:00
end;
end.