Print Page | Close Window

[QUESTION] Time Propertygrid Item

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=17559
Printed Date: 28 April 2024 at 5:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [QUESTION] Time Propertygrid Item
Posted By: Aaron
Subject: [QUESTION] Time Propertygrid Item
Date Posted: 14 November 2010 at 7:31am
Hi,
 
Is there any chance in near future (read: next version Wink) we could have a PropertygridItemTime ? I used propertygrid for all my settings/options, now only time is kind of a problem...
 
What I tried myself:
 
  1. Using Setmask for this isn't an option. It looks poor with the use of underscores and you have to do a lot of checking for entered Time value.
  2. Should look something like propertygriditemDATE... Yes, I could use DateTimePicker for this... So tried putting DateTimePicker inside picturebox and set it to xtpPickerTime. Yes, pops up nicely on correct position. Entering values, switching between hh & mm & ss very easely, now we are on the right track. Well, almost Confused
    • Since there's no event that I could use to update propertygriditem with Time value. There is always some hack possible but there are limits. Would like to use ENTER key but with no event available this is going to be difficult...
    • Ok, add pushbutton to picturebox. Well doesn't look so nice but at least it is working OK.
    • Why not hide the "update button"? OK, I only have to press ENTER to update. Design is still acceptable Wink so used this option to proceed with
    • Hiding picturebox, when propertygriditem has been updated AND when no value has been "entered"... Selection_Changed event will take care of this. And yes it does (sometimes an event to many but who cares, picturebox shows anyway when InplaceButton is released...
    • OK, looking good for now... Only one thing left, mousewheel and scrollbar doesn't make picturebox invisible. Strange though, Selection_Changed event is fired when I resize propertygrid huhhhhh ???? Well I didn't get around this without a hack: I need to determine if the TopMost PropertygridItem has been changed and I had to use a timer for this Confused So whenever mousewheel or scrollbar is used TopMostIndex will change and picturebox will be made invisible.
    • See test below. Ideas are always welcome of course and maybe usefull whenever you are desperate for time propertygriditem (Like I am now)
 
To support: So, implementing a "real" Time propertygriditem isn't that hard for you guys. I only had to use one hack Wink 
 
 
Update: 19-11-2010
  • I changed few lines in order to setfocus to time for those who want to use keyboard and able to select time with arrow keys
  • Just for fun I created a "File selector" Smile 
 
 
http://forum.codejock.com/uploads/3701/Test_PropertyGridTime_V1.zip - uploads/3701/Test_PropertyGridTime_V1.zip
 
 
 
Thanks a lot
 


-------------
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: Aaron
Date Posted: 19 November 2010 at 5:33am
Hi,
 
Support? Is there any chance this will be implemented some day?
 
Thanks a lot
 


-------------
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: davbrat
Date Posted: 19 November 2010 at 11:51am
I too need a Time Item Type.

Thanks,

Dave Bratovich

-------------
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10

Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10


Posted By: hachem
Date Posted: 17 December 2010 at 1:43pm
I think a "Time" item in PropertyGrid should be a high priority for the next release.
A combined Date/Time item would also be cool!



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