s: string;
Action: TAction;
ActStr: string;
+ Comp : TComponent;
+ P : TPoint;
begin
- s := MouseGesture.GetGestureStr;
- ActStr := '';
- Action := GikoSys.Setting.Gestures.GetGestureAction(s);
- if Action <> nil then
- ActStr := '\81i' + Action.Caption + '\81j';
- s := '\83W\83F\83X\83`\83\83\81[: ' + s + ActStr;
- StatusBar.Panels[1].Text := s;
+ //\83}\83E\83X\88Ê\92u\82Ì\8eæ\93¾
+ GetCursorPos(P);
+ //\83R\83\93\83|\81[\83l\83\93\83g\96¼\8eæ\93¾
+ //\83M\83R\83i\83r\82Ì\83t\83H\81[\83\80\8aO\81A\82à\82µ\82\82Í\81A\83R\83\93\83e\83L\83X\83g\83\81\83j\83\85\81[\8fã\82¾\82Ænil\82ª\95Ô\82é
+ Comp := FindDragTarget(P, True);
+ if (Comp <> nil) then begin
+ s := MouseGesture.GetGestureStr;
+ ActStr := '';
+ Action := GikoSys.Setting.Gestures.GetGestureAction(s);
+ if Action <> nil then
+ ActStr := '\81i' + Action.Caption + '\81j';
+ s := '\83W\83F\83X\83`\83\83\81[: ' + s + ActStr;
+ StatusBar.Panels[1].Text := s;
+ end;
end;
procedure TGikoForm.OnGestureEnd(Sender: TObject);
Comp : TComponent;
P : TPoint;
begin
- s := MouseGesture.GetGestureStr;
- Action := GikoSys.Setting.Gestures.GetGestureAction(s);
- if Action <> nil then begin
- //\83}\83E\83X\88Ê\92u\82Ì\8eæ\93¾
- GetCursorPos(P);
- //\83R\83\93\83|\81[\83l\83\93\83g\96¼\8eæ\93¾
- //\83M\83R\83i\83r\82Ì\83t\83H\81[\83\80\8aO\81A\82à\82µ\82\82Í\81A\83R\83\93\83e\83L\83X\83g\83\81\83j\83\85\81[\8fã\82¾\82Ænil\82ª\95Ô\82é
- Comp := FindDragTarget(P, True);
- if (Comp <> nil) then
- Action.Execute;
+ //\83}\83E\83X\88Ê\92u\82Ì\8eæ\93¾
+ GetCursorPos(P);
+ //\83R\83\93\83|\81[\83l\83\93\83g\96¼\8eæ\93¾
+ //\83M\83R\83i\83r\82Ì\83t\83H\81[\83\80\8aO\81A\82à\82µ\82\82Í\81A\83R\83\93\83e\83L\83X\83g\83\81\83j\83\85\81[\8fã\82¾\82Ænil\82ª\95Ô\82é
+ Comp := FindDragTarget(P, True);
+ if (Comp <> nil) then begin
+ s := MouseGesture.GetGestureStr;
+ Action := GikoSys.Setting.Gestures.GetGestureAction(s);
+ if Action <> nil then
+ Action.Execute;
+ StatusBar.Panels[1].Text := '';
end;
- StatusBar.Panels[1].Text := '';
end;
procedure TGikoForm.ListViewCustomDrawItem(Sender: TCustomListView;