![]() |
Hiding left margin? |
Post Reply ![]() |
Author | |
Mar2008 ![]() Groupie ![]() ![]() Joined: 18 April 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() Posted: 18 April 2008 at 11:01am |
I am evaluating the CodeJock Suite and I like what I see, but I cannot find a way as to hide the margin on the left side of the property grid. The one that usually has the expand button on it. This is useful for a simple property grid with no categories and only a few simple properties.
Is there a way to hide that?
|
|
![]() |
|
younicke ![]() Senior Member ![]() ![]() Joined: 11 March 2005 Status: Offline Points: 107 |
![]() ![]() ![]() ![]() ![]() |
i dont think its possible. maybe im wrong.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,, Here is little hack:
class CSimpleCategory: public CXTPPropertyGridItemCategory
{ public: CSimpleCategory() : CXTPPropertyGridItemCategory("") { m_nIndent = -1;} }; CXTPPropertyGridItem* pSettings = m_wndPropertyGrid.AddCategory("", new CSimpleCategory()); // add child items to category.
CXTPPropertyGridItem* pItemSaveOnClose = pSettings->AddChildItem(new CXTPPropertyGridItem("Item")); m_wndPropertyGrid.SetPropertySort(xtpGridSortNoSort); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Mar2008 ![]() Groupie ![]() ![]() Joined: 18 April 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Oleg,
I have the latest evaluation libraries and AddCategory does not have an overloaded copy that takes 2 params as you are using above. Also, I noticed a SetIndent method on GridItemCategory but it's not public...
Are you suggesting modifying the source code? Is that included with the toolkit purchase?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, right :( Second parameter added only in 12.0.... You can download beta 12.0 and try it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Mar2008 ![]() Groupie ![]() ![]() Joined: 18 April 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Got it! Works great!
![]() |
|
![]() |
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 |