Print Page | Close Window

Hiding Caption

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=16941
Printed Date: 18 April 2024 at 12:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hiding Caption
Posted By: Fabian
Subject: Hiding Caption
Date Posted: 12 July 2010 at 11:06am
Hi
 
Is it possible to hide the caption (left part)? I set SplitterPos to 0 that works but the text in the data item (right part) was covered at the left by a bar.
 
Any idea?
thanks in advance!
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: Aaron
Date Posted: 12 July 2010 at 1:06pm
Hi Fabian,
 
You could try this:
  • wndPropertyGrid.SplitterPos = 16
  • wndPropertyGrid.VariableSplitterPos = False 'Otherwise your mousepointer changes when mouse is over SplitterPos

 

 



-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Fabian
Date Posted: 13 July 2010 at 2:00am

Hi Aaron,

Thanks for thinking about my problem. But that can not work because .SplitterPos is not the absolute position in pixel but a perventage between 0 and 1.  0.5 = caption and value has the same width, 0=caption is hidden but the vertical bar to the left covers my text.
 
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Aaron
Date Posted: 13 July 2010 at 9:33am
Hi Fabian,
 
You are right about that
 
Maybe one more option for you to try... Add an image (16x16, totally transparent) for every single item (.ValueMetrics.Icondex = ...) I tried and it seems to work, BUT not with all items... I didn't test all but ColorItem doesn't work properly. I know it's a bad hack but if you are desperate...
 
  
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Fabian
Date Posted: 13 July 2010 at 11:29am
Aaron,
 
Thanks for that. I found a solution that works for me: I set .VisualTheme to Delphi. It hides the category caption but that problem is minor.
 
Regards, Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Aaron
Date Posted: 14 July 2010 at 6:29am
Hi Fabian,
 
If you don't need categories it does work. Glad you solved it
 
I added request to my TODO list and set position in pixels.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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