wxListCtrl using wx.LC_LIST ?

Does anyone have any sample code or a tutorial that uses a wxListCtrl in the wx.LC_LIST format? All the provided samples and tutorials I can find always use it in wx.LC_REPORT format.

I can't figure out how to put things in columns and the documentation seems to be silent on the subject. All it says is:

"multicolumn list view, with optional small icons. Columns are computed automatically, i.e. you don't set columns as in wxLC_REPORT. In other words, the list wraps, unlike a wxListBox."

I'm evidently too dense to figure out what exactly that means.

Any help appreicated,
Michael Hipp

It means that, as far as is possible, the widget will
wrap the items into multiple columns rather than adding
a vertical scroll bar. Each item consists of a label
with an optional icon, and you can't add additional
columns to an item.

If you're familiar with Windows, the list styles
correspond to the Windows folder views as follows:

wxWidgets/wxPython <--> Windows view
------------------ ------------
wx.LC_ICON <--> Large Icons
wx.LC_SMALL_ICON <--> Small Icons
wx.LC_LIST <--> List
wx.LC_REPORT <--> Details

Labels are optional with wx.LC_ICON and wx.LC_SMALL_ICON.
Icons are optional with wx.LC_LIST and wx.LC_REPORT.

HTH.

- Sam

···

At 2004-09-24 09:34 AM -0500, you wrote:

Does anyone have any sample code or a tutorial that uses a wxListCtrl in the wx.LC_LIST format? All the provided samples and tutorials I can find always use it in wx.LC_REPORT format.

I can't figure out how to put things in columns and the documentation seems to be silent on the subject. All it says is:

"multicolumn list view, with optional small icons. Columns are computed automatically, i.e. you don't set columns as in wxLC_REPORT. In other words, the list wraps, unlike a wxListBox."

I'm evidently too dense to figure out what exactly that means.

Any help appreicated,
Michael Hipp

__________________________________________________________
Spinward Stars, LLC Samuel Reynolds
Software Consulting and Development 303-805-1446
http://SpinwardStars.com/ sam@SpinwardStars.com

Samuel Reynolds wrote:

···

At 2004-09-24 09:34 AM -0500, you wrote:

Does anyone have any sample code or a tutorial that uses a wxListCtrl in the wx.LC_LIST format? All the provided samples and tutorials I can find always use it in wx.LC_REPORT format.

I can't figure out how to put things in columns and the documentation seems to be silent on the subject. All it says is:

"multicolumn list view, with optional small icons. Columns are computed automatically, i.e. you don't set columns as in wxLC_REPORT. In other words, the list wraps, unlike a wxListBox."

I'm evidently too dense to figure out what exactly that means.

Any help appreicated,
Michael Hipp

It means that, as far as is possible, the widget will
wrap the items into multiple columns rather than adding
a vertical scroll bar. Each item consists of a label
with an optional icon, and you can't add additional
columns to an item.

If you're familiar with Windows, the list styles
correspond to the Windows folder views as follows:

wxWidgets/wxPython <--> Windows view
------------------ ------------
wx.LC_ICON <--> Large Icons
wx.LC_SMALL_ICON <--> Small Icons
wx.LC_LIST <--> List
wx.LC_REPORT <--> Details

Okay. I get it now. It's like a list of files in an explorer window when set to 'list' mode. Not at all like a spreadsheet as I was visualizing.

Thank you,
Michael

That's right. The "spreadsheet-like" view is wx.LC_REPORT.

- Sam

···

At 2004-09-24 10:54 AM -0500, you wrote:

Okay. I get it now. It's like a list of files in an explorer window when set to 'list' mode. Not at all like a spreadsheet as I was visualizing.

__________________________________________________________
Spinward Stars, LLC Samuel Reynolds
Software Consulting and Development 303-805-1446
http://SpinwardStars.com/ sam@SpinwardStars.com