Print Page | Close Window

SOLVED: PropertyItem width changed event

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=11204
Printed Date: 05 October 2024 at 10:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: PropertyItem width changed event
Posted By: Aaron
Subject: SOLVED: PropertyItem width changed event
Date Posted: 25 June 2008 at 9:02am
Hi,
 
Would it be possible to determine if width of item has changed when dragging the splitter. Some event or ....
 
I'm asking this because I would like to have a progressbar (several) in a propertygriditem (markup!). But when resized it would be nice when the progressbar would resize (it will be) but not the progress itself (maybe it is possible with XAML to resize the progress as well , I can't say because I don't know that )
 
So I'm asking it here
 
Thanks in advance


-------------
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....



Replies:
Posted By: Oleg
Date Posted: 25 June 2008 at 3:43pm
Hi,
 
No, There is no such event :( But you can disable resizing with VariableSplitterPos property.


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


Posted By: Aaron
Date Posted: 26 June 2008 at 12:44am
Hi,
 
Maybe I will give it a try. I have a propertygrid inside a dockingpane but in that case I have the resize event of dockingpanes and I could use GetRect/SplitterPos to recalculate the width. 
 
Maybe ask our XAML guru's first if this could be done with markup
 
Thanks for reply.
 
 


-------------
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: jpbro
Date Posted: 06 July 2008 at 6:08pm
Hi Aaron,

I couldn't get XAML to work for the value side of the PropertyGrid splitter (seems only to work for the Caption side)... Have you gotten it to work?

The only way I can think of to tell if the splitter has changed is to use a timer to poll the SplitterPos property (as you mentioned)...but then the SplitterPos returns a percentage so you would also have to call the sub to redraw your progress bars in the Resize event (as you mentioned).

Using a timer to poll the SplitterPos property is an ugly hack though, so it would be nice if there was a SplitterPosChanged event. At a minimum if there were MouseUp/Down/Move events we could perform the check on SplitterPos there.



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 06 July 2008 at 6:26pm
Hi Jason
 
I didn't try the markup part yet, but if you didn't get it to work I think can't either :(
 
Oleg said disabled resizing splitter. So my idea, because the propertygrid is attached to a pane and I could use the resize event of dockingpane to determine rect with GetRect method and SplitterPos percentage.
 
But if markup can not be used on the value side my idea is useless. Think we have to post another issue...


-------------
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