2024-07-07 09:35:27 +08:00
|
|
|
unit U_BaseHelp;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
|
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.ImageList, Vcl.ImgList, Data.DB,
|
|
|
|
Data.Win.ADODB,U_WindowFormdesign;
|
|
|
|
|
|
|
|
type
|
|
|
|
TfrmBaseHelp = class(TForm)
|
|
|
|
ADOQueryBaseCmd: TADOQuery;
|
|
|
|
ADOQueryBaseTemp: TADOQuery;
|
|
|
|
ImageList_new32: TImageList;
|
|
|
|
procedure FormCreate(Sender: TObject);
|
|
|
|
procedure FormDestroy(Sender: TObject);
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
private
|
|
|
|
fWindowDesign:TWindowFormdesign;
|
|
|
|
public
|
|
|
|
{ Public declarations }
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
frmBaseHelp: TfrmBaseHelp;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
uses
|
2024-10-30 13:49:43 +08:00
|
|
|
U_RTFun ,U_globalVar,U_FormLayOutDesign;
|
2024-07-07 09:35:27 +08:00
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
procedure TfrmBaseHelp.FormCreate(Sender: TObject);
|
2024-10-30 13:45:23 +08:00
|
|
|
var
|
|
|
|
mFontSize:integer;
|
2024-07-07 09:35:27 +08:00
|
|
|
begin
|
2024-11-27 14:42:25 +08:00
|
|
|
// getSystemIni();
|
2024-10-30 13:45:23 +08:00
|
|
|
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 TfrmBaseHelp.FormDestroy(Sender: TObject);
|
|
|
|
begin
|
|
|
|
fWindowDesign.free;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TfrmBaseHelp.FormShow(Sender: TObject);
|
|
|
|
begin
|
2024-11-27 14:42:25 +08:00
|
|
|
fWindowDesign.FormStyleInit1(self,0,ADOQueryBaseTemp,ADOQueryBaseCmd);
|
2024-07-07 09:35:27 +08:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|