|
@@ -361,7 +361,7 @@ begin
|
|
if AValue.Bottom<AValue.Top then
|
|
if AValue.Bottom<AValue.Top then
|
|
AValue.Bottom:=AValue.Top;
|
|
AValue.Bottom:=AValue.Top;
|
|
if FFormBounds=AValue then exit;
|
|
if FFormBounds=AValue then exit;
|
|
- FLLog(etDebug,['TFresnelCustomForm.SetFormBounds ',Self.ToString,' ',AValue.ToString]);
|
|
|
|
|
|
+ FLLog(etDebug,['TFresnelCustomForm.SetFormBounds ',ToString,' ',AValue.ToString]);
|
|
FFormBounds:=AValue;
|
|
FFormBounds:=AValue;
|
|
if Designer<>nil then
|
|
if Designer<>nil then
|
|
Designer.SetDesignerFormBounds(Self,FFormBounds.GetRect)
|
|
Designer.SetDesignerFormBounds(Self,FFormBounds.GetRect)
|
|
@@ -407,7 +407,7 @@ end;
|
|
|
|
|
|
procedure TFresnelCustomForm.Loaded;
|
|
procedure TFresnelCustomForm.Loaded;
|
|
begin
|
|
begin
|
|
- FLLog(etDebug,['TFresnelCustomForm.Loaded ',Self.ToString]);
|
|
|
|
|
|
+ FLLog(etDebug,['TFresnelCustomForm.Loaded ',ToString]);
|
|
inherited Loaded;
|
|
inherited Loaded;
|
|
if Visible then
|
|
if Visible then
|
|
Show
|
|
Show
|
|
@@ -513,7 +513,7 @@ end;
|
|
|
|
|
|
procedure TFresnelCustomForm.Hide;
|
|
procedure TFresnelCustomForm.Hide;
|
|
begin
|
|
begin
|
|
- FLLog(etDebug,'TFresnelCustomForm.Hide '+Self.ToString);
|
|
|
|
|
|
+ FLLog(etDebug,'TFresnelCustomForm.Hide '+ToString);
|
|
if (Designer<>nil)
|
|
if (Designer<>nil)
|
|
or ([csLoading,csDesigning]*ComponentState<>[])
|
|
or ([csLoading,csDesigning]*ComponentState<>[])
|
|
or not WSFormAllocated then
|
|
or not WSFormAllocated then
|
|
@@ -524,7 +524,7 @@ end;
|
|
|
|
|
|
procedure TFresnelCustomForm.Show;
|
|
procedure TFresnelCustomForm.Show;
|
|
begin
|
|
begin
|
|
- FLLog(etDebug,'TFresnelCustomForm.Show '+Self.ToString);
|
|
|
|
|
|
+ FLLog(etDebug,'TFresnelCustomForm.Show '+ToString);
|
|
if (Designer<>nil) or ([csLoading,csDesigning,csDestroying]*ComponentState<>[]) then
|
|
if (Designer<>nil) or ([csLoading,csDesigning,csDestroying]*ComponentState<>[]) then
|
|
FVisible:=true
|
|
FVisible:=true
|
|
else
|
|
else
|
|
@@ -557,7 +557,7 @@ begin
|
|
if csDestroying in ComponentState then exit;
|
|
if csDestroying in ComponentState then exit;
|
|
|
|
|
|
// consistency checks
|
|
// consistency checks
|
|
- FLLog(etDebug,['TFresnelCustomForm.CreateWSForm ',Self.ToString]);
|
|
|
|
|
|
+ FLLog(etDebug,['TFresnelCustomForm.CreateWSForm ',ToString]);
|
|
if Designer<>nil then
|
|
if Designer<>nil then
|
|
raise Exception.Create('TFresnelCustomForm.CreateWSForm Designer<>nil');
|
|
raise Exception.Create('TFresnelCustomForm.CreateWSForm Designer<>nil');
|
|
if Parent = Self then
|
|
if Parent = Self then
|
|
@@ -587,7 +587,7 @@ procedure TFresnelCustomForm.WSResize(const NewFormBounds: TFresnelRect;
|
|
NewWidth, NewHeight: TFresnelLength);
|
|
NewWidth, NewHeight: TFresnelLength);
|
|
begin
|
|
begin
|
|
if (FFormBounds=NewFormBounds) and (Width=NewWidth) and (Height=NewHeight) then exit;
|
|
if (FFormBounds=NewFormBounds) and (Width=NewWidth) and (Height=NewHeight) then exit;
|
|
- FLLog(etDebug,['TFresnelCustomForm.WSResize ',Self.ToString,' OldForm=',FFormBounds.ToString,' NewForm=',NewFormBounds.ToString,' OldWH=',FloatToStr(Width),',',FloatToStr(Height),' NewWH=',FloatToStr(NewWidth),',',FloatToStr(NewHeight)]);
|
|
|
|
|
|
+ FLLog(etDebug,['TFresnelCustomForm.WSResize ',ToString,' OldForm=',FFormBounds.ToString,' NewForm=',NewFormBounds.ToString,' OldWH=',FloatToStr(Width),',',FloatToStr(Height),' NewWH=',FloatToStr(NewWidth),',',FloatToStr(NewHeight)]);
|
|
FFormBounds:=NewFormBounds;
|
|
FFormBounds:=NewFormBounds;
|
|
Width:=NewWidth;
|
|
Width:=NewWidth;
|
|
Height:=NewHeight;
|
|
Height:=NewHeight;
|
|
@@ -612,7 +612,7 @@ begin
|
|
end else begin
|
|
end else begin
|
|
WSData.ControlPos:=PageToContentPos(El,X,Y);
|
|
WSData.ControlPos:=PageToContentPos(El,X,Y);
|
|
end;
|
|
end;
|
|
- FLLog(etDebug,'TFresnelCustomForm.WSMouseXY El=%s PagePos=%s ControlPos=%s',[el.ToString, WSData.PagePos.ToString, WSData.ControlPos.ToString]);
|
|
|
|
|
|
+ FLLog(etDebug,'TFresnelCustomForm.WSMouseXY El=%s PagePos=%s ControlPos=%s',[El.ToString, WSData.PagePos.ToString, WSData.ControlPos.ToString]);
|
|
case MouseEventId of
|
|
case MouseEventId of
|
|
evtMouseDown:
|
|
evtMouseDown:
|
|
fMouseDownElement:=El;
|
|
fMouseDownElement:=El;
|