Randomize gradient on doubleclick.
This commit is contained in:
parent
0013bdf1c7
commit
389efeaf78
@ -173,7 +173,7 @@ object AdjustForm: TAdjustForm
|
||||
Top = 133
|
||||
Width = 390
|
||||
Height = 131
|
||||
ActivePage = TabSheet2
|
||||
ActivePage = TabSheet3
|
||||
Align = alBottom
|
||||
TabOrder = 1
|
||||
object TabSheet1: TTabSheet
|
||||
@ -681,6 +681,7 @@ object AdjustForm: TAdjustForm
|
||||
Align = alClient
|
||||
PopupMenu = GradientPopup
|
||||
Stretch = True
|
||||
OnDblClick = GradientImageDblClick
|
||||
OnMouseDown = GradImageMouseDown
|
||||
OnMouseMove = GradImageMouseMove
|
||||
OnMouseUp = GradImageMouseUp
|
||||
|
@ -242,6 +242,7 @@ type
|
||||
procedure GetMainWindowSize;
|
||||
procedure btnUndoClick(Sender: TObject);
|
||||
procedure btnRedoClick(Sender: TObject);
|
||||
procedure GradientImageDblClick(Sender: TObject);
|
||||
|
||||
private
|
||||
Resetting: boolean;
|
||||
@ -1647,6 +1648,11 @@ begin
|
||||
Apply;
|
||||
end;
|
||||
|
||||
procedure TAdjustForm.GradientImageDblClick(Sender: TObject);
|
||||
begin
|
||||
mnuRandomizeClick(Sender);
|
||||
end;
|
||||
|
||||
procedure TAdjustForm.GradImageMouseDown(Sender: TObject;
|
||||
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user