Adjust values change reflecting to the current flame settings on Adjust window activating.
This commit is contained in:
parent
e2ae3b9329
commit
78f090e855
@ -43,6 +43,7 @@ object AdjustForm: TAdjustForm
|
|||||||
0000000100000001000000010000000100000001000000010000FFFF0000}
|
0000000100000001000000010000000100000001000000010000FFFF0000}
|
||||||
OldCreateOrder = False
|
OldCreateOrder = False
|
||||||
Position = poDefault
|
Position = poDefault
|
||||||
|
OnActivate = FormActivate
|
||||||
OnClose = FormClose
|
OnClose = FormClose
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
|
@ -253,6 +253,7 @@ type
|
|||||||
procedure DragPanelMouseUp(Sender: TObject; Button: TMouseButton;
|
procedure DragPanelMouseUp(Sender: TObject; Button: TMouseButton;
|
||||||
Shift: TShiftState; X, Y: Integer);
|
Shift: TShiftState; X, Y: Integer);
|
||||||
procedure DragPanelDblClick(Sender: TObject);
|
procedure DragPanelDblClick(Sender: TObject);
|
||||||
|
procedure FormActivate(Sender: TObject);
|
||||||
|
|
||||||
private
|
private
|
||||||
Resetting: boolean;
|
Resetting: boolean;
|
||||||
@ -2041,5 +2042,16 @@ begin
|
|||||||
UpdateFlame;
|
UpdateFlame;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TAdjustForm.FormActivate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
txtVibrancy.text := FloatToStr(cp.Vibrancy);
|
||||||
|
txtGamma.text := FloatToStr(cp.Gamma);
|
||||||
|
txtBrightness.text := FloatToStr(cp.Brightness);
|
||||||
|
txtZoom.text := FloatToStr(cp.zoom);
|
||||||
|
txtCenterX.text := FloatToStr(cp.center[0]);
|
||||||
|
txtCentery.text := FloatToStr(cp.center[1]);
|
||||||
|
txtAngle.text := FloatToStr(cp.FAngle * 180 / PI);
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user