UltimateListCtrl column headers not visible

Hi everybody,

I am trying to use an UltimateListCtrl in an application I am writing
and have been frustrated by an inability to get the column headers to
display properly. When I display the window containing the ULC, the
column headers are invisible, with a solid grey bar in their place.
Sometimes -- depending on what I have added to the list -- as soon as
click one of the Choice boxes contained in the control, the headers
magically appear.

To try to simply my problem, I thought I would start with the example
code in the ULC docs, located here:

http://xoomer.virgilio.it/infinity77/AGW_Docs/ultimatelistctrl_module.html#usage-usage

However, to my surprise, the code sample from the docs has the same
problem! (I had to modify it slightly -- MyFrame.__init__ is missing
parent in the argument list, and to put a Choice control in the list
requires agwStyle ULC_HAS_VARIABLE_ROW_HEIGHT, according to the error
message I get if I do not include it. My modified code is attached.)

I am using Python 2.6.2 and wxPython 2.8.12.1 on WinXP.

Is this a bug? A bug that has already been fixed? Or is there
something lacking in my code?

Thanks,

Alan

ulc_demo.py (1.1 KB)

Hi,

Hi everybody,

I am trying to use an UltimateListCtrl in an application I am writing
and have been frustrated by an inability to get the column headers to
display properly. When I display the window containing the ULC, the
column headers are invisible, with a solid grey bar in their place.
Sometimes -- depending on what I have added to the list -- as soon as
click one of the Choice boxes contained in the control, the headers
magically appear.

To try to simply my problem, I thought I would start with the example
code in the ULC docs, located here:

http://xoomer.virgilio.it/infinity77/AGW_Docs/ultimatelistctrl_module.html#usage-usage

However, to my surprise, the code sample from the docs has the same
problem! (I had to modify it slightly -- MyFrame.__init__ is missing
parent in the argument list, and to put a Choice control in the list
requires agwStyle ULC_HAS_VARIABLE_ROW_HEIGHT, according to the error
message I get if I do not include it. My modified code is attached.)

I am using Python 2.6.2 and wxPython 2.8.12.1 on WinXP.

Is this a bug? A bug that has already been fixed? Or is there
something lacking in my code?

It works for me using wxPython 2.9.2.4, but I see the issue with
2.8.12.1 as well (both on Windows 7) using the standard AGW
distributed with wxPython.

HOWEVER, if you get the latest version of UltimateListCtrl from AGW in SVN:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/

The problem disappears even on 2.8.12.1 on my machine.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 7 March 2012 10:59, Alan Ristow wrote:

Thanks for the quick reply, Andrea. However, I found I had to go one
step further: I upgraded to wxPython 2.9.3.1 and still observed the
problem, so I also upgraded Python to 2.7.2. After that, the problem
disappeared. That was probably a bit reckless, considering how soon
this project is due, but it got the job done....

Alan

···

On Wed, Mar 7, 2012 at 11:08 AM, Andrea Gavana <andrea.gavana@gmail.com> wrote:

Hi,

On 7 March 2012 10:59, Alan Ristow wrote:

Hi everybody,

I am trying to use an UltimateListCtrl in an application I am writing
and have been frustrated by an inability to get the column headers to
display properly. When I display the window containing the ULC, the
column headers are invisible, with a solid grey bar in their place.
Sometimes -- depending on what I have added to the list -- as soon as
click one of the Choice boxes contained in the control, the headers
magically appear.

To try to simply my problem, I thought I would start with the example
code in the ULC docs, located here:

http://xoomer.virgilio.it/infinity77/AGW_Docs/ultimatelistctrl_module.html#usage-usage

However, to my surprise, the code sample from the docs has the same
problem! (I had to modify it slightly -- MyFrame.__init__ is missing
parent in the argument list, and to put a Choice control in the list
requires agwStyle ULC_HAS_VARIABLE_ROW_HEIGHT, according to the error
message I get if I do not include it. My modified code is attached.)

I am using Python 2.6.2 and wxPython 2.8.12.1 on WinXP.

Is this a bug? A bug that has already been fixed? Or is there
something lacking in my code?

It works for me using wxPython 2.9.2.4, but I see the issue with
2.8.12.1 as well (both on Windows 7) using the standard AGW
distributed with wxPython.

That's the first time I see an AGW component influenced by the Python
version... OK for the wxPython one, but Python??? Considering that the
ULC source code is exactly the same, I wonder what influenced the
results... Oh well, I'm happy you were able to fix it.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 7 March 2012 16:15, Alan Ristow wrote:

On Wed, Mar 7, 2012 at 11:08 AM, Andrea Gavana <andrea.gavana@gmail.com> wrote:

Hi,

On 7 March 2012 10:59, Alan Ristow wrote:

Hi everybody,

I am trying to use an UltimateListCtrl in an application I am writing
and have been frustrated by an inability to get the column headers to
display properly. When I display the window containing the ULC, the
column headers are invisible, with a solid grey bar in their place.
Sometimes -- depending on what I have added to the list -- as soon as
click one of the Choice boxes contained in the control, the headers
magically appear.

To try to simply my problem, I thought I would start with the example
code in the ULC docs, located here:

http://xoomer.virgilio.it/infinity77/AGW_Docs/ultimatelistctrl_module.html#usage-usage

However, to my surprise, the code sample from the docs has the same
problem! (I had to modify it slightly -- MyFrame.__init__ is missing
parent in the argument list, and to put a Choice control in the list
requires agwStyle ULC_HAS_VARIABLE_ROW_HEIGHT, according to the error
message I get if I do not include it. My modified code is attached.)

I am using Python 2.6.2 and wxPython 2.8.12.1 on WinXP.

Is this a bug? A bug that has already been fixed? Or is there
something lacking in my code?

It works for me using wxPython 2.9.2.4, but I see the issue with
2.8.12.1 as well (both on Windows 7) using the standard AGW
distributed with wxPython.

Thanks for the quick reply, Andrea. However, I found I had to go one
step further: I upgraded to wxPython 2.9.3.1 and still observed the
problem, so I also upgraded Python to 2.7.2. After that, the problem
disappeared. That was probably a bit reckless, considering how soon
this project is due, but it got the job done....

` I do have wxPython 2.9.3.1 and 2.8.12.1 installed in parallel,
so I suppose it’s possible that I was using the older version when
I thought I was using the newer one. I don’t think so, though – I
did try to check for that, as I didn’t think the Python version
should matter. If I get a chance to test with Python 2.6.2 again I
will let you know if I am able to find anything interesting, but I
don’t know if I’ll get that chance…

  Alan

`
···

andrea.gavana@gmail.comhttp://xoomer.virgilio.it/infinity77/AGW_Docs/ultimatelistctrl_module.html#usage-usage