Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - [QUESTION] Time Propertygrid Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[QUESTION] Time Propertygrid Item

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

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (1) Thanks(1)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Topic: [QUESTION] Time Propertygrid Item
    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 
 
 
 
 
 
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....
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: 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....
Back to Top
davbrat View Drop Down
Groupie
Groupie
Avatar

Joined: 30 September 2009
Location: California
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote davbrat Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
hachem View Drop Down
Groupie
Groupie


Joined: 02 May 2008
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote hachem Quote  Post ReplyReply Direct Link To This Post 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!
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.219 seconds.