Randomize gradient on doubleclick.

This commit is contained in:
utak3r 2005-09-11 21:07:13 +00:00
parent 0013bdf1c7
commit 389efeaf78
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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