[wxPython] Headings on wxListCtrl

I) Is it possible to switch off the column headings as they are often
superfluous to the user and paradoxically visually distracting. In the
application I'm designing (gnuMed - www.gnumed.org) doctors usually know that
eg 'metaclopramide' is a drug, 1'0mg' is the dose, '1 tds' is the
instructions etc. With much info to display on the screen in medicine, even
having the heading of the lists takes up critical real-estate space.

2) If not, is it possible to have another list control with columns without
headings.

3)Can one have a list control with multi-columns but each column containing
the same type of data string. E.G in my active problem list of my VB medical
record programme, if there are more than an arbitary number of problems, they
start piling up on the next column in the list box, so one can spread up to
20-30 across a small area of screen and all remain visible which is important
to us.

Thanks in anticipation.

I) Is it possible to switch off the column headings as they are often
superfluous to the user and paradoxically visually distracting.

Have you tried the wxLC_NO_HEADER style? The docs say win32 only but it
looks like it is used in the generic wxListCtrl too.

3)Can one have a list control with multi-columns but each column

containing

the same type of data string. E.G in my active problem list of my VB

medical

record programme, if there are more than an arbitary number of problems,

they

start piling up on the next column in the list box, so one can spread up

to

20-30 across a small area of screen and all remain visible which is

important

to us.

I'm not sure I understand this one...

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Robin, I enclose a png picture which will explain the question.

thanks

···

> 3)Can one have a list control with multi-columns but each column

containing

> the same type of data string. E.G in my active problem list of my VB

medical

> record programme, if there are more than an arbitary number of problems,

they

> start piling up on the next column in the list box, so one can spread up

to

> 20-30 across a small area of screen and all remain visible which is

important

> to us.

I'm not sure I understand this one...

Thanks heaps Robin, again!

···

On Tuesday 11 June 2002 3:16 am, you wrote:

> I) Is it possible to switch off the column headings as they are often
> superfluous to the user and paradoxically visually distracting.

Have you tried the wxLC_NO_HEADER style? The docs say win32 only but it
looks like it is used in the generic wxListCtrl too.

> 3)Can one have a list control with multi-columns but each column

containing

> the same type of data string. E.G in my active problem list of my VB

medical

> record programme, if there are more than an arbitary number of problems,

they

> start piling up on the next column in the list box, so one can spread up

to

> 20-30 across a small area of screen and all remain visible which is

important

> to us.

I'm not sure I understand this one...

Having solved the header problem (thanks robin), I've noticed that when the
column dividers are set, they end abruptly below the existing lines and 'hang
there' visually and don't continue to the bottom of the list (see png file
attatched). Is this behaviour fixable?

(md8.2 gtk)

dr R Terry

hanging coloumn dividers.png

richard terry wrote:

Robin, I enclose a png picture which will explain the question.

thanks

3)Can one have a list control with multi-columns but each column

containing

the same type of data string. E.G in my active problem list of my VB

medical

record programme, if there are more than an arbitary number of problems,

they

start piling up on the next column in the list box, so one can spread up

to

20-30 across a small area of screen and all remain visible which is

important

to us.

I'm not sure I understand this one...

------------------------------------------------------------------------

I don't have much experience with wxListCtrl, but I'll take a stab at it, and others can correct or supplement my answer...

The style wxLC_LIST (instead of wxLC_REPORT), gives you a list which automatically wraps around columns, like in your png, except that each item has only one column. You could reproduce your specific example by including both the number/code and the description in a single string item added with InsertStringItem. As long as you used a fixed width font you could still get each list column to appear to be a pair of columns. If you want to include images, then I'm not sure you can do it that way.

Also, the wxLC_LIST seems to use the length of the longest item to determine the width of the column, so if you instead want the columns truncated, you would probably have to do it yourself.

David

Having solved the header problem (thanks robin), I've noticed that when

the

column dividers are set, they end abruptly below the existing lines and

'hang

there' visually and don't continue to the bottom of the list (see png file
attatched). Is this behaviour fixable?

Probably, but it will take tweaks to the C++ code. Please enter a bug
report about it.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Robin, I enclose a png picture which will explain the question.

Yep, it looks like a ListView (the native control used by wxListCtrl on MSW)
in wxLC_LIST mode. I assume that each code and description are a single
item in the list?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Yes, I'll try the control and see if I can duplicate it and let the list
know. Also I'll put in a bug report about the vertical columns not going down
to the bottom of the list. Is there an address to send the bug report to?

···

On Wednesday 12 June 2002 1:40 pm, you wrote:

> Robin, I enclose a png picture which will explain the question.

Yep, it looks like a ListView (the native control used by wxListCtrl on
MSW) in wxLC_LIST mode. I assume that each code and description are a
single item in the list?

Also I'll put in a bug report about the vertical columns not going down
to the bottom of the list. Is there an address to send the bug report to?

I see you've already found it, but I'll reiterate for the archive that bug
reports should go to the wxWindows bug tracker at SourceForge:

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!