Print Page | Close Window

Why standard toolbar?

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=8407
Printed Date: 28 April 2024 at 11:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why standard toolbar?
Posted By: ABuenger
Subject: Why standard toolbar?
Date Posted: 11 October 2007 at 9:05am
The property grid uses a CToolBar instead of a CXTPToolBar, why?

Is there a reason why or could this be changed in a future release?



-------------
Codejock support



Replies:
Posted By: Oleg
Date Posted: 12 October 2007 at 8:30am
Hello,
 
Its another module. PropertyGrid can't use classes from CommandBars or DockingPane etc. its not so difficult to add Toolbar in application like we do in Visual Studio sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ABuenger
Date Posted: 12 October 2007 at 8:53am
I understand, I didn't thought of the individual components as we have the complete toolkit.

In that case it would be nice if there would be a function in the toolkit that adds the default property grid buttons to a CXTPToolBar / CXTPCommandBar.
But I'm not sure if the property grid could catch those commands, maybe you could look into this?

Also could you make this function a static method of the property grid?


void _DoCollapseExpand(CXTPPropertyGridItems* pItems, ITEMFUNCTIONPTR pFunction)
{
    for (int i = 0; i < pItems->GetCount(); i++)
    {
        CXTPPropertyGridItem* pItem = pItems->GetAt(i);
        if (pItem->HasChilds())
        {
            (pItem->*pFunction)();
            _DoCollapseExpand(pItem->GetChilds(), pFunction);
        }
    }
}



-------------
Codejock support



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