Print Page | Close Window

Controlling the m_bVisible flag?

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=958
Printed Date: 04 June 2024 at 3:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Controlling the m_bVisible flag?
Posted By: jgolab
Subject: Controlling the m_bVisible flag?
Date Posted: 20 July 2004 at 9:43am
Is there a way to set the mk:@MSITStore:D:\XTP_toolkit8.70\Xtreme%20Toolkit%20Pro%20v8.70\Help\XtremeToolkitPro.chm::/CXTPPropertyGridItem__m_bVisible.html - m_bVisible  flag? I want to dynamically hide grid items depending on previous user selections? Is there a way to do this?

-------------
James



Replies:
Posted By: rvoith
Date Posted: 13 January 2005 at 3:29am

I am wondering about this too. I tried to create a derived CXTPPropertyGridItem where I exposed the SetVisible method, like this;

class CCustomItemHideable : public CXTPPropertyGridItem
{
public:
    CCustomItemHideable(UINT uiRes) : CXTPPropertyGridItem(uiRes) {
    };

    virtual void SetVisible(BOOL bVisible)
    {
        m_bVisible = bVisible;
    };

protected:

private:
};

However, the items were never hidden, and I received an assert when I selected the "to be invisible"-item



-------------
Best regards,
Bob
Proud Programmer!



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