Background of treelistctrl

Hello Dick,

      if I open the wxPython demo, under "Custom Controls --> TreeListCtrl"
and I put something like:

self.tree.SetBackgroundColour(wx.RED)

My TreeListCtrl has a RED background colour. So I don't see where the
problem may be in your case. On which platform are you on? Python version?
Here is working, on Windows 2000, Python 2.4.1 and wxPython 2.6.1.0.

If you want to set the background colour equal to the TreeListCtrl parent
background colour, you can do something like:

self.tree.SetBackgroundColour(self.tree.GetParent().GetBackgroundColour())

Also, if you are migrating your application to 2.6, why are you still using
the *old* namespace? Why don't you use "wx.Something" instead of
"wxSomething"? I would not convert 1 line of my app without having
previously changed the namespace accordingly.

Just a thought.

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

Hi Andrea

SuSE Linux 9.3, Python 2.4.0, wxPython 2.6.1.0

Hello Dick,

      if I open the wxPython demo, under "Custom Controls --> TreeListCtrl"
and I put something like:

self.tree.SetBackgroundColour(wx.RED)

I know this can be done. The problem is that the default background for most
controls is aparantly Grey, but not for all controls. This also occurs in the
demo application. So the listctrl has a grey background, the treectrl has a
grey background, but the treelistctrl does not have a grey background. The
result is that you have a very ugly screen, where the treelistctrl fills half
the screen, and is white, and the rest of the screen is grey. Compare that to
the treectrl, where the complete page is grey as it should be.

My TreeListCtrl has a RED background colour. So I don't see where the
problem may be in your case. On which platform are you on? Python version?
Here is working, on Windows 2000, Python 2.4.1 and wxPython 2.6.1.0.

If you want to set the background colour equal to the TreeListCtrl parent
background colour, you can do something like:

self.tree.SetBackgroundColour(self.tree.GetParent().GetBackgroundColour())

Also, if you are migrating your application to 2.6, why are you still using
the *old* namespace? Why don't you use "wx.Something" instead of
"wxSomething"? I would not convert 1 line of my app without having
previously changed the namespace accordingly.

We will! However, the application is more than 50K lines, so it is quite a lot
of work, and I will start work on that when all issues connected to the
conversion are resolved.

Cheers,
Dick

···

Op donderdag 8 september 2005 09:52, schreef andrea.gavana@agip.it: