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:
@ -3,11 +3,11 @@ unit selectdbobject;
|
||||
interface
|
||||
|
||||
uses
|
||||
Windows, Classes, Controls, Forms, StdCtrls, VirtualTrees, Graphics,
|
||||
Windows, Classes, Controls, Forms, StdCtrls, VirtualTrees, Graphics, extra_controls,
|
||||
dbconnection, gnugettext;
|
||||
|
||||
type
|
||||
TfrmSelectDBObject = class(TForm)
|
||||
TfrmSelectDBObject = class(TFormWithSizeGrip)
|
||||
TreeDBO: TVirtualStringTree;
|
||||
btnOK: TButton;
|
||||
btnCancel: TButton;
|
||||
@ -65,7 +65,6 @@ begin
|
||||
TranslateComponent(Self);
|
||||
Width := AppSettings.ReadInt(asSelectDBOWindowWidth);
|
||||
Height := AppSettings.ReadInt(asSelectDBOWindowHeight);
|
||||
SetWindowSizeGrip( Self.Handle, True );
|
||||
InheritFont(Font);
|
||||
TreeDBO.TreeOptions := MainForm.DBtree.TreeOptions;
|
||||
FixVT(TreeDBO);
|
||||
|
Reference in New Issue
Block a user