|
@@ -107,6 +107,7 @@ type
|
|
|
{$IFDEF FresnelSkia}
|
|
|
FIntfImg: TLazIntfImage;
|
|
|
{$ENDIF}
|
|
|
+ procedure LCLChangeBounds(Sender: TObject);
|
|
|
procedure LCLMouseDown(Sender: TObject; Button: Controls.TMouseButton;
|
|
|
Shift: TShiftState; X, Y: Integer);
|
|
|
procedure LCLMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
|
|
@@ -305,6 +306,11 @@ begin
|
|
|
FresnelForm.WSMouseXY(EvtInit,evtMouseDown);
|
|
|
end;
|
|
|
|
|
|
+procedure TLCLWSForm.LCLChangeBounds(Sender: TObject);
|
|
|
+begin
|
|
|
+ FresnelForm.WSResize(GetFormBounds,LCLForm.ClientWidth,LCLForm.ClientHandle);
|
|
|
+end;
|
|
|
+
|
|
|
procedure TLCLWSForm.LCLMouseMove(Sender: TObject; Shift: TShiftState; X,
|
|
|
Y: Integer);
|
|
|
var
|
|
@@ -485,14 +491,15 @@ begin
|
|
|
TFresnelLCLFontEngine(aFontEngine).Canvas:=LCLForm.Canvas;
|
|
|
{$ENDIF}
|
|
|
|
|
|
+ // resize lcl form
|
|
|
+ FLCLForm.BoundsRect:=FresnelForm.FormBounds.GetRect;
|
|
|
+
|
|
|
// events
|
|
|
FLCLForm.OnMouseDown:=@LCLMouseDown;
|
|
|
FLCLForm.OnMouseMove:=@LCLMouseMove;
|
|
|
FLCLForm.OnMouseUp:=@LCLMouseUp;
|
|
|
FLCLForm.OnPaint:=@LCLPaint;
|
|
|
-
|
|
|
- // resize lcl form
|
|
|
- FLCLForm.BoundsRect:=FresnelForm.FormBounds.GetRect;
|
|
|
+ FLCLForm.OnChangeBounds:=@LCLChangeBounds;
|
|
|
end;
|
|
|
|
|
|
{ TFresnelLCLWidgetSet }
|