Use available space better in wxDataViewCtrl date renderer in wxOSX.

Try to show as much useful information as possible for the available width,
notably show the time fully, including seconds, which was never done before.

Also add a date column to the dataview sample to allow seeing how this works
in practice.

See #16640.
This commit is contained in:
Hartwig Wiesmann
2015-07-18 02:11:27 +02:00
committed by Vadim Zeitlin
parent 8e0799e3e5
commit 7feaa794bc
4 changed files with 24 additions and 19 deletions

View File

@@ -640,6 +640,8 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l
wxALIGN_NOT,
wxDATAVIEW_COL_REORDERABLE | wxDATAVIEW_COL_SORTABLE);
m_ctrl[1]->AppendDateColumn("date",
MyListModel::Col_Date);
m_attributes =
new wxDataViewColumn("attributes",
new wxDataViewTextRenderer,