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:
@ -5,12 +5,12 @@ interface
|
||||
uses
|
||||
Windows, Classes, Graphics, Forms, Controls, StdCtrls, VirtualTrees,
|
||||
ComCtrls, ToolWin, Dialogs, SysUtils, Menus, ExtDlgs,
|
||||
helpers, gnugettext, ActnList, StdActns;
|
||||
helpers, gnugettext, ActnList, StdActns, extra_controls, System.Actions;
|
||||
|
||||
{$I const.inc}
|
||||
|
||||
type
|
||||
TfrmTextEditor = class(TForm)
|
||||
TfrmTextEditor = class(TFormWithSizeGrip)
|
||||
memoText: TMemo;
|
||||
tlbStandard: TToolBar;
|
||||
btnWrap: TToolButton;
|
||||
@ -198,7 +198,6 @@ begin
|
||||
btnWrap.Click;
|
||||
// Fix label position:
|
||||
lblTextLength.Top := tlbStandard.Top + (tlbStandard.Height-lblTextLength.Height) div 2;
|
||||
SetWindowSizeGrip(Handle, True);
|
||||
memoText.SetFocus;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user