![]() |
CategoryButtons-Fehler bei GetCategoryAt
Hi ich habe bei Delphi 2005 mal CategoryButtons ausprobiert, und will jetzt bei einem OnClick o.ä. herausfinden welche Kategorie ich geklickt habe.
Anhand: "CategoryButtons1.GetCategoryAt(X, Y).Caption" klappt das bei OnMouseDown schon, aber wenn ich jetzt nicht auf eine Kategorie klicke dann gibt's einen Exception-Fehler: Zitat:
mfG |
Re: CategoryButtons-Fehler bei GetCategoryAt
versuche mal
Delphi-Quellcode:
...:cat:...
if CategoryButtons1.GetCategoryAt(X, Y) <> nil then
CategoryButtons1.GetCategoryAt(X, Y).Caption ... |
Re: CategoryButtons-Fehler bei GetCategoryAt
Oh Mann vielen Dank sakura :thumb: :cat:
Das kommt davon wenn man nur aus der Übung kommt :wall: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 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