mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Replace out-dated code which does not compile in 64bit mode in helpers.SetWindowSizeGrip. Use a TForm descendant in the new unit "extra_controls". Code parts taken from http://www.delphigroups.info/2/4/326787.html
This commit is contained in:
@ -10,11 +10,11 @@ interface
|
||||
|
||||
uses
|
||||
Windows, SysUtils, Classes, Controls, Forms, Dialogs, StdCtrls, ComCtrls, CheckLst,
|
||||
SynRegExpr, Buttons, ExtCtrls, ToolWin, ExtDlgs, Math,
|
||||
SynRegExpr, Buttons, ExtCtrls, ToolWin, ExtDlgs, Math, extra_controls,
|
||||
dbconnection, mysql_structures, gnugettext;
|
||||
|
||||
type
|
||||
Tloaddataform = class(TForm)
|
||||
Tloaddataform = class(TFormWithSizeGrip)
|
||||
btnImport: TButton;
|
||||
btnCancel: TButton;
|
||||
lblDatabase: TLabel;
|
||||
@ -94,7 +94,6 @@ procedure Tloaddataform.FormCreate(Sender: TObject);
|
||||
begin
|
||||
TranslateComponent(Self);
|
||||
InheritFont(Font);
|
||||
SetWindowSizeGrip(Handle, True);
|
||||
// Restore settings
|
||||
Width := AppSettings.ReadInt(asCSVImportWindowWidth);
|
||||
Height := AppSettings.ReadInt(asCSVImportWindowHeight);
|
||||
|
Reference in New Issue
Block a user