BUG in deprecated xtpGridItemHas* values |
Post Reply |
Author | |
MartinT
Newbie Joined: 18 August 2007 Location: Austria Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 05 April 2024 at 4:37am |
Bug in [Source\PropertyGrid\XTPPropertyGridItem.h] In v19 we had: enum XTPPropertyGridItemFlags { xtpGridItemHasEdit = 1, // Item has an edit control. xtpGridItemHasExpandButton = 2, // Item has an expand button. xtpGridItemHasComboButton = 4 // Item has a combo button. }; In v22 was introduced: enum XTPPropertyGridItemFlags { xtpPropertyGridItemHasEdit = 1, // Item has an edit control. xtpPropertyGridItemHasExpandButton = 2, // Item has an expand button. xtpPropertyGridItemHasComboButton = 4 // Item has a combo button. }; //{{AFX_CODEJOCK_PRIVATE _XTP_DEPRECATED_IN_FAVOR(xtpPropertyGridItemHasEdit) const XTPPropertyGridItemFlags xtpGridItemHasEdit = xtpPropertyGridItemHasEdit; _XTP_DEPRECATED_IN_FAVOR(xtpGridItemHasExpandButton) *same; no "..Property.."* const XTPPropertyGridItemFlags xtpGridItemHasExpandButton = xtpGridItemHasExpandButton; _XTP_DEPRECATED_IN_FAVOR(xtpGridItemHasComboButton) const XTPPropertyGridItemFlags xtpGridItemHasComboButton = xtpGridItemHasComboButton; //}}AFX_CODEJOCK_PRIVATE As you can see, the Values 2 and 4 had their deprecated entries mixed up and get self-assigned resulting in 0 as values for the old constant names! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |