Why standard toolbar? |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
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
|
|
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 |