Skip to content

Commit d535ca5

Browse files
committed
[*] allow pop-up editor resizing, resolves #51
1 parent 125b2e6 commit d535ca5

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

forms/frametaskcommand.pas

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface
66

77
uses
88
Classes, SysUtils, Forms, Controls, ExtCtrls, StdCtrls, SynEdit,
9-
SynHighlighterSQL, LCLType, Db;
9+
SynHighlighterSQL, LCLType, ComCtrls, Db;
1010

1111
type
1212

@@ -28,6 +28,7 @@ TfrmTaskCommand = class(TFrame)
2828
procedure ShowEditor(AField: TField; ATopLeft: TPoint);
2929
procedure HideEditor();
3030
procedure ApplyChanges();
31+
procedure CreateParams(var Params: TCreateParams); override;
3132
end;
3233

3334
implementation
@@ -78,5 +79,11 @@ procedure TfrmTaskCommand.ApplyChanges;
7879
HideEditor();
7980
end;
8081

82+
procedure TfrmTaskCommand.CreateParams(var Params: TCreateParams);
83+
begin
84+
inherited CreateParams(Params);
85+
Params.Style := Params.Style or WS_SIZEBOX;
86+
end;
87+
8188
end.
8289

pg_timetable_gui.lpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
lazcontrols,
99
fmMain, fmConnect,
1010
uDataModule,
11-
uObjects, frameTaskCommand;
11+
uObjects;
1212

1313
{$R *.res}
1414

0 commit comments

Comments
 (0)