掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
フォーム外のマウスイベントを取得するには? (ID:7231)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
こんな感じ procedure TForm1.PaintBox1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if ssRight in Shift then begin SetCaptureControl(PaintBox1); Label1.Caption := 'MouseDown'; end; end; procedure TForm1.PaintBox1MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin ReleaseCapture; Label1.Caption := 'MouseUp'; end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.