Opened 5 years ago

Last modified 5 years ago

#11050 confirmed enhancement

Implement wxDatePickerCtrl::SetFormat()

Reported by: nikospic Owned by:
Priority: low Milestone:
Component: GUI-all Version: 2.8.10
Keywords: wxDatePickerCtrl SetFormat Cc:
Blocked By: Blocking:
Patch: no

Description

The SetFormat is not available (public or protected) for wxDatePickerCtrl
and doesn't seem available its generic version (although that is what the documentation says)

(it seems to be only implemented in wxCalendarComboPopup as private)

I understand that "The native version always uses the current system locale" however in some applications one needs to have a specific date format not necessarily compatible with the locale but rather with the industrial standards (e.g. airline industry).

Maybe we should be given the choice of changing the format, like we can do it for wxDateTime, even if we have to inherit from wxDatePickerCtrl.

Change History (1)

comment:1 Changed 5 years ago by vadz

  • Component changed from wxUniv (any port) to GUI-all
  • Priority changed from normal to low
  • Status changed from new to confirmed
  • Summary changed from wxDatePickerCtrl needs SetFormat availability to Implement wxDatePickerCtrl::SetFormat()

And I just decided that we didn't need it (see #10988) and removed last traces of it...

If you do need it in wxUniv-only then it shouldn't be difficult to implement it for it as it's easy in the generic version. Doing it for wxMSW would be more difficult but still possible, see DateTime_SetFormat() documentation in MSDN.

Anyhow, patches implementing this would be welcome but I consider it low priority as the default format is fine for the majority of programs and so am unlikely to work on this myself.

Note: See TracTickets for help on using tickets.