From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-11-23 12:48:03
|
On Tue, 04 Nov 2008 23:01:23 +0000, Alex Tweedly <al...@tw...> wrote: > Andrew Spagnoletti wrote: > > > > 2. I have a particular problem; does anyone know how to right-align a > > column in a multi column list in PythonCard? In commercial systems > > this is a common requirement. Similarly, is there a way of setting the > > font type and size for a particular column in a multi column list? > See samples/minimalList - it creates its columns using > > > list.InsertColumn(0, "Artist") > > list.InsertColumn(1, "Title", wx.LIST_FORMAT_RIGHT) > > list.InsertColumn(2, "Genre") > > Don't know offhand about the font type, but there should be a similar > direct call into wx to do it. Or, it may not be possible to set the font > for each column (I don't see a wx sampel that does this, with a cursory > look). You may need to use a grid rather than a list .... but an explore > of the wx samples or docs should sort that out for you. Well, I'm stumped...I Google'd and I tried various things, but it looks like the font properties can't be modified for a particular column...just on a row-by-row basis. I think Alex could be right - you need to set up a grid. -- XXXXXXXXXXX -- XXXXXXXXXXX Support4Omega Ltd. Tel: 07793 134456 Fax-2-Email: 0870 7051877 Web: www.support4omega.co.uk |