Is there a way to sort a list of CXTPPropertyGridI |
Post Reply |
Author | |
byteman
Groupie Joined: 08 March 2007 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 08 March 2007 at 6:34pm |
Is there a way to sort a list of CXTPPropertyGridItem's? I can write my own but it seems like it would be part of the PropertyGrid class. The sample code shows basically what I want to do.
CXTPPropertyGridItem* pOptionList= m_pWndPropertyGrid->AddCategory(_T("a list of options"));
int i = 0;
while (i<10)
{ CXTPPropertyGridItemBool* pItem = new CXTPPropertyGridItemBool(_T"some desc", TRUE); pOptionList->AddChildItem(pItem); i++; } "pOptionList->Sort" <- Any suggestions? Is there already a funtion to do this? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
hi,
pOptionList->GetChilds()->Sort();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
byteman
Groupie Joined: 08 March 2007 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Sort() is a protected function of CXTPPropertyGridItems so i get an error trying to compile the statement
pOptionList->GetChilds()->Sort(); I could make it public? But I assume there was a reason it was protected and would rather not mess with the library if I don't have to. Is another way to sort?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Please move it to public and rebuild library. We will do it also for 11.0 release.
Thanks.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
byteman
Groupie Joined: 08 March 2007 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Will do. Thanks Oleg.
|
|
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 |