TOwnerDrawState duplicate incorrect declaration
Original Reporter info from Mantis: LesKaye
-
Reporter name: Leslie Kaye
Original Reporter info from Mantis: LesKaye
- Reporter name: Leslie Kaye
Description:
in redef.inc line 77 TOwnerDrawState is declared (Delphi compatible)
TOwnerDrawState = set of (
odSelected,odGrayed,odDisabled,odChecked,
odFocused,odDefault,odHotLight,odInactive,odNoAccel,odNoFocusRect,
odReserved1,odReserved2,odComboBoxEdit);
in LCLType, line 1085 it is declared
// ToDo: move this to StdCtrls
TOwnerDrawStateType = (
odSelected, odGrayed, odDisabled, odChecked,
odFocused, odDefault, odHotLight, odInactive, odNoAccel,
odNoFocusRect, odReserved1, odReserved2, odComboBoxEdit,
odPainted // item already painted
);
TOwnerDrawState = set of TOwnerDrawStateType;
Additional information:
this causes statements like
if odSelected in State then...
to give a compiler error; that an enumeration is not compatible with TOwnerDrawState.
A temporary fix is to list StdCtrls before Windows in the unit uses clause.
Mantis conversion info:
- Mantis ID: 19958
- Version: 0.9.31 (SVN)