Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Why standard toolbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why standard toolbar?

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Why standard toolbar?
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.