掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
FileListBoxの右クリックメニューについて (ID:8599)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
るるとん@Kさんに指摘していただいたので、 引数を利用する方法を書いておきます。 procedure TForm1.FileListBox1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var i: Integer; P: TPoint; begin if Button = mbRight then begin i := FileListBox1.ItemAtPos(Point(X, Y), True); if i <> -1 then FileListBox1.ItemIndex := i; P := FileListBox1.ClientToScreen(Point(X, Y)); PopupMenu1.Popup(P.X, P.Y); end; end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.