掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
FileListBoxの右クリックメニューについて (ID:8587)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
ふぐちゃんさん、 >GetCursorPos(PS); >PC := FileListBox1.ScreenToClient(PS); なんかしなくても、引数のXとYを使えば出来ます procedure TForm1.FileListBox1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); var i: Integer; begin if Button = mbRight then begin i := FileListBox1.ItemAtPos(Point(X,Y), True); if i <> -1 then FileListBox1.ItemIndex := i; PopupMenu1.Popup(X, Y); end; end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.