![]() |
Re: Klick auf Spaltenheader (TListView) erkennen
Zitat:
Delphi-Quellcode:
:hi:
procedure TForm1.FormCreate(Sender: TObject);
begin FContextAllowed := true; ListView1.PopupMenu := PopupMenu1; end; procedure TForm1.ListView1ColumnRightClick(Sender: TObject; Column: TListColumn; Point: TPoint); begin FContextAllowed := false; Popupmenu2.Popup(Mouse.CursorPos.X,Mouse.CursorPos.y); end; procedure TForm1.ListView1ContextPopup(Sender: TObject; MousePos: TPoint; var Handled: Boolean); begin Handled := not(FContextAllowed); FContextAllowed := true; end; gmc |
Re: Klick auf Spaltenheader (TListView) erkennen
Stimmt, daran hab ich gar nicht gedacht... :)
Aber so gehts dann auch, THX. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:41 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz