Print Page | Close Window

Hiding left margin?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=10300
Printed Date: 28 April 2024 at 1:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hiding left margin?
Posted By: Mar2008
Subject: Hiding left margin?
Date 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?



Replies:
Posted By: younicke
Date Posted: 18 April 2008 at 11:51am
i dont think its possible. maybe im wrong.



Posted By: Oleg
Date Posted: 18 April 2008 at 1:20pm

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


Posted By: Mar2008
Date Posted: 18 April 2008 at 2:49pm
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?
 


Posted By: Oleg
Date Posted: 18 April 2008 at 3:12pm

Hi,

right :( Second parameter added only in 12.0.... You can download beta 12.0 and try it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Mar2008
Date Posted: 18 April 2008 at 3:30pm
Got it! Works great! 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net