Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Hiding Caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hiding Caption

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: Hiding Caption
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.141 seconds.