Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Item Date, Popup and Calendar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Item Date, Popup and Calendar

 Post Reply Post Reply
Author
Message
dlord View Drop Down
Newbie
Newbie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote dlord Quote  Post ReplyReply Direct Link To This Post Topic: Item Date, Popup and Calendar
    Posted: 31 October 2004 at 1:22am

I'm building a property grid that display's a few dates. Most detail when an event occured. Which the user doesn't need to change. But when I add 'item.readonly = true' I loose the popup calnedar. It would be handy to present the calendar as information, but just don't allow a change. Is this something that can be done with 9.5.1 ??

    Set Item = Category.AddChildItem(PropertyItemDate, "First Ping", DATEFIRSTPING)
        Item.DESCRIPTION = "date of first ping reply."
        Item.ReadOnly = True
       

Also, I noticed the date is displayed in the grid in a differnet format than it is read in as. Such as -

May 20, 2004

Is 20/05/2004 instead of what is used around Mississippi - 05/20/2004

Thanks for the help and the product is great..!

David

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 8:53am

Has anyone found the solution to this?  I've tried setting the Format property of the PropertyGridItem to 'mm/dd/yyyy', and it doesn't work.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 9:00am
I belive both of these issues are fixed and will be available in the next release
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2004 at 9:10am
Do you have an ETA on the next release?
Back to Top
larrym View Drop Down
Newbie
Newbie


Joined: 30 May 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote larrym Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2006 at 2:44pm
Here it is over two years later. Is it fixed? I'm using version 10.3.1 and it seems to still work this way. Actually the tutorial says it will display mm/dd/yyyy and it doesn't it displays dd/mm/yyyy. If I use the item.format = "%m/%d/%y" then the drop down calendar returns an error.

Does anyone have an answer? Should I create a new thread?

Thanks.
Back to Top
elmsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2006
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote elmsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2007 at 11:59pm
Hello,
 
Just reviewing some old posts...
 
Make sure the code reads as follows...
 
Item.Format = "%m/%d/%Y"
Note that the 'Y' is capitalized.
 
Doing this, we get the date value to read 01/31/2007.
 
======================================
 
With that being said, I would like for the date format options to be more robust in future updates to the property grid, allowing for custom formats.
 
We prefer showing dates in our programs with the format of "dd-mmm-yyyy" which produces dates in the following format...01-Jan-2007. 
 
This is helpful because 01/09/2007 could be either January 9 or confused with September 1.
 
Best regards,
 
John
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.156 seconds.