![]() |
Wie frage ich Zustände eines Elements eines Sets ab?
Hallo zusammen,
ich habe bei einer Komponente im OI eine "Options"-Property, welche ein Set enthält. Wie kann ich abfragen, welchen Zustand ein Element des Sets hat. Beispiel:
Delphi-Quellcode:
Wie kann ich jetzt abfragen, ob z.B. "coVisible" true ist, um es zu entfernen bzw. umgekehrt, es hinzuzufügen?
[coAllowClick,coDraggable,coEnabled,coParentBidiMode,coParentColor,coResizable,coShowDropMark,coVisible]
Gruß Igotcha |
Re: Wie frage ich Zustände eines Elements eines Sets ab?
Hoi
[oh]in, Include, Exclude[/oh] Gruss Shaman |
Re: Wie frage ich Zustände eines Elements eines Sets ab?
Delphi-Quellcode:
Zusaetzlich zu Include und Exclude funktionieren auch viele Operatoren +, -, <, >, <>, <=, >=, *.
if coAllowClick in Options then
ShowMessage('Enthalten'); if not (coAllowClick in Options) then ShowMessage('Nicht enthalten'); |
Re: Wie frage ich Zustände eines Elements eines Sets ab?
Danke sehr! :hi:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:04 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