Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Insert a grid item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Insert a grid item

 Post Reply Post Reply
Author
Message
Uzi Yachin View Drop Down
Newbie
Newbie


Joined: 30 August 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Uzi Yachin Quote  Post ReplyReply Direct Link To This Post Topic: Insert a grid item
    Posted: 08 November 2004 at 6:01am
I have to insert a grid item between existing items rather than to add it as a last child. Is there a way to do it? If not, are you going to add this feature in the next versions?
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 2:52am

I have the same problem -> Any solution for that  ??

 

 

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: 19 November 2004 at 12:52am

We added new InsertChildItem and InsertCategory methods.

You can add them manually in source:

for 9.50/9.51:

CXTPPropertyGridItem* CXTPPropertyGridItem::InsertChildItem(int nIndex, CXTPPropertyGridItem* pItem)
{
 m_pChilds->InsertAt(nIndex, pItem);
 pItem->m_pGrid = pItem->m_pChilds->m_pGrid = m_pGrid;

 ASSERT(pItem->m_pParent == NULL);
 pItem->m_pParent = this;
 pItem->m_nIndent = m_nIndent + 1; 

 pItem->OnAddChildItem();

 if (m_bVisible)
 {
  if (m_bExpanded) m_pGrid->SetPropertySort(m_pGrid->m_properetySort, TRUE);
  else if (m_pGrid->GetSafeHwnd() && m_pChilds->GetCount() == 1) m_pGrid->Invalidate(FALSE);
 }

 return pItem;
}

void CXTPPropertyGridItems::InsertAt(int nIndex, CXTPPropertyGridItem* pItem) {
 m_arrItems.InsertAt(nIndex, pItem);
}

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Uzi Yachin View Drop Down
Newbie
Newbie


Joined: 30 August 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Uzi Yachin Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2004 at 1:17am
Thanks.
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.219 seconds.