Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#15745 closed defect (fixed)

wxDataViewList's progress bar on ProgressColumn does not expand in Windows

Reported by: nominakawa Owned by:
Priority: normal Milestone:
Component: GUI-generic Version: 3.0.0
Keywords: wxDataViewListCtrl Cc:
Blocked By: Blocking:
Patch: no

Description

I have transferred a Mac application to Windows. The application shows a bar graph using progress columns of wxDataViewListCtrl. It works beautifully on Mac. But on Windows, the bar graph is very short. See an attachment Mac_and_Win.png.

I checked the attaching sample code “dataview”, and find it behaves as same. A progress bar seemingly never expands beyond 40 pixels. See an attachment Sample_dataview.png.

My environment:

wxWidgets-3.0.0
Windows7 64bit
Visual Studio 2012
.NetFramework 4.0 project

My code:

m_listctrl = new wxDataViewListCtrl(this, ID_Index_Select, wxDefaultPosition,

wxDefaultSize,wxDV_SINGLE|wxDV_ROW_LINES);

wxDataViewListStore *m_listctrlStore= new wxDataViewListStore();
m_listctrl->AssociateModel(m_listctrlStore);
m_listctrlStore->DecRef();

m_listctrl->AppendTextColumn("No.",wxDATAVIEW_CELL_INERT,65, wxALIGN_LEFT);
m_listctrl->AppendTextColumn("Postion", wxDATAVIEW_CELL_INERT, -1, wxALIGN_CENTER,

wxDATAVIEW_COL_RESIZABLE);

m_listctrl->AppendProgressColumn("Intensity",wxDATAVIEW_CELL_INERT,-1, wxALIGN_LEFT,

wxDATAVIEW_COL_RESIZABLE);

Attachments (2)

Mac_and_Win.png download (52.4 KB) - added by nominakawa 8 months ago.
Mac and Windows screen shot
Sample_DataView.png download (53.2 KB) - added by nominakawa 8 months ago.
dataview sample

Download all attachments as: .zip

Change History (5)

Changed 8 months ago by nominakawa

Mac and Windows screen shot

Changed 8 months ago by nominakawa

dataview sample

comment:1 Changed 8 months ago by vadz

I think this should be fixed by this patch which will be applied soon.

comment:2 Changed 8 months ago by VS

  • Resolution set to fixed
  • Status changed from new to closed

(In [75345]) Fix fixed-width progress columns in generic wxDataViewCtrl.

Both native wxDVC implementations grow the progress column, the generic
one didn't. This change fixes it and _seems_ not to break other things.
As a consequence, progress columns no longer have a 40px minimal width,
but that should be OK.

Fixes #15745.

comment:3 Changed 8 months ago by VS

(In [75346]) Fix fixed-width progress columns in generic wxDataViewCtrl.

Both native wxDVC implementations grow the progress column, the generic
one didn't. This change fixes it and _seems_ not to break other things.
As a consequence, progress columns no longer have a 40px minimal width,
but that should be OK.

Fixes #15745.

Note: See TracTickets for help on using tickets.