← Back to team overview

kicad-developers team mailing list archive

Re: Patch for hand-modifiable issue date

 

On 5/19/2013 1:51 AM, Lorenzo Marcantonio wrote:
On Sat, May 18, 2013 at 04:56:11PM -0400, Wayne Stambaugh wrote:
Would a wxDatePickerCtrl be a better option than a "today" button?
According to the wxWidgets 2.8 documentation the native version
always returns the current system locale which is probably what the

I fear there was a misunderstanding:

     wxDatePickerCtrl::SetFormat
     ...
     The native version always uses the current system locale

Is this the part you are referring to?

Yes. It's possible that I misunderstood the documentation. Also, I'm not sure if on GTK+ that the native control or the generic control is used so that could also impact the behavior. Sometimes the only way to know for sure is to code and see an what happens.


user would want for the most part.

http://docs.wxwidgets.org/stable/wx_wxdatepickerctrl.html#wxdatepickerctrl

The picker could be interesting; however the format is for the picker presentation only (and by the way at least under linux it uses the dreaded numeric format:P); the GetValue gives a wxDateTime, so the issue for formatting the date remains...


I wonder if the wxControl::GetText() function would return the properly formatted date string directly from the control rather than using wxDatePickerCtrl::GetValue(). It might be worth a try.



Follow ups

References