RTFormwork/public10/design/U_BaseInput.pas

85 lines
1.9 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-11-27 14:42:25 +08:00
//getSystemIni();
2024-11-23 14:24:52 +08:00
self.DoubleBuffered:=gIsUseSkin;
2024-10-30 13:45:23 +08:00
if gFontSize<9 then
begin
2024-11-27 14:42:25 +08:00
mFontSize := 9;
2024-10-30 13:45:23 +08:00
end
else
begin
mFontSize:=gFontSize ;
end;
2024-11-27 14:42:25 +08:00
if self.Font.Size<>gFontSize then
self.Font.Size := gFontSize;
2024-10-30 13:45:23 +08:00
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);
2024-11-27 14:42:25 +08:00
//var
// thread:TThread;
2024-07-07 09:35:27 +08:00
begin
2024-11-27 14:42:25 +08:00
// thread:=TThread.CreateAnonymousThread(
// procedure
// begin
// TThread.Synchronize(nil,
// procedure
// begin
if trim(gStructVer)='' then
fWindowDesign.FormStyleInit1(self,0,ADOQueryBaseTemp,ADOQueryBaseCmd)
else
fWindowDesign.FormStyleInit(self,0,ADOQueryBaseTemp,ADOQueryBaseCmd) ;
// end)
// end);
//
// thread.FreeOnTerminate := True;
// thread.Start;
2024-07-07 09:35:27 +08:00
end;
end.