Print Page | Close Window

BUG in deprecated xtpGridItemHas* values

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=24470
Printed Date: 21 May 2024 at 12:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG in deprecated xtpGridItemHas* values
Posted By: MartinT
Subject: BUG in deprecated xtpGridItemHas* values
Date 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!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net