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:
Ansgar Becker
2013-11-01 14:54:13 +00:00
parent 6d1acb1136
commit 6e608f157e
18 changed files with 94 additions and 192 deletions

View File

@ -4,12 +4,12 @@ interface
uses
Windows, Classes, Graphics, Forms, Controls, StdCtrls, VirtualTrees,
ComCtrls, ToolWin, Dialogs, SysUtils, gnugettext;
ComCtrls, ToolWin, Dialogs, SysUtils, gnugettext, extra_controls;
{$I const.inc}
type
TfrmBinEditor = class(TForm)
TfrmBinEditor = class(TFormWithSizeGrip)
memoText: TMemo;
tlbStandard: TToolBar;
btnWrap: TToolButton;
@ -101,7 +101,6 @@ begin
btnWrap.Click;
// Fix label position:
lblTextLength.Top := tlbStandard.Top + (tlbStandard.Height-lblTextLength.Height) div 2;
SetWindowSizeGrip(Handle, True);
memoText.SelectAll;
memoText.SetFocus;
memoTextChange(Sender);