Forum: Sonstige Fragen zu Delphi
Delphi
by ste_ett,
23. Feb 2007
Das Enum ist nur dazu da, den Variablen einen Wert zu geben.
In Delphi kann man diesen Fall über "const" oder "type" regeln.
Wahlweise kann man auch jede Variable einzeln als Integer und Konstante deklarieren.
{$MINENUMSIZE 4} // WICHTIG, wenn man Enumerationen aus der "C/C++"-Welt übernimmt!
type
TEnum = ( // In Delphi muss ein Name vergeben werden, der hier allerdings bedeutungslos...
Forum: Sonstige Fragen zu Delphi
Delphi
by ste_ett,
23. Feb 2007
const
BBRG_TOOLBAR = (1 shl 0);
BBRG_MENU = (1 shl 1);
BBRG_WINDOW = (1 shl 2);
BBRG_DESK = (1 shl 3);
BBRG_FOCUS = (1 shl 4);
BBRG_PRESSED = (1 shl 5);
BBRG_STICKY = (1 shl 6);
BBRG_FOLDER = (1 shl 7);