in reply to Re^2: Win32::GUI::Grid & Date Formats
in thread Win32::GUI::Grid & Date Formats

I was in the process of thinking that your code was experiencing a date format problem between a db and the GUI. But I don't think this is the case. Looking at the screen everything displays correctly until you click in the cell that contains the date and then it changes to the current date in a different format. That is a little annoying. Is this the problem that you are talking about. Or, is it a db GUI format problem?

Doug

Replies are listed 'Best First'.
Re^4: Win32::GUI::Grid & Date Formats
by ChrisR (Hermit) on Jul 21, 2005 at 15:25 UTC
    That is exactly what I'm talking about. The problem has nothing to do with a database or formatting a date string. The problem is that the DateTime control in the Grid is not doing what I need it to. A DateTime control can be formatted to do what I need as follows:
    my $datecontrol = $mainform->AddDateTime(-name=>"datecontrol",-lef +t=>10,-top=>500,-width=>150,-height=>30); $datecontrol->Format("yyyy-MM-dd"); $datecontrol->SetDate(19,7,2005); #day,month,year as specified in +the docs
    So, if I can access a DateTime object and set the format/properties like that, there has to be a way to access the same type of object that is embedded in the Grid Cell object. Doesn't there?? Perhaps I should have titled this node "How to access an embedded object" or "Win32::DateTime in Win32::GUI::Grid". My apologies to all if my OP was unclear.