Hello,
Does somebody know how to horizontally center the checkbox
in the first column of a CheckListCtrlMixin control ?
Attached pictures: pic1_not_centered.jpg: how it is
pic2_centered.jpg: how I'd like it to be.
Thanks.
Raphael
Hello,
Does somebody know how to horizontally center the checkbox
in the first column of a CheckListCtrlMixin control ?
Attached pictures: pic1_not_centered.jpg: how it is
pic2_centered.jpg: how I'd like it to be.
Thanks.
Raphael
Thanks for answering.
Yes I did, but that just centered the column label, not the check box.
----- Original Message ----- From: "Mike Driscoll" <mdriscoll@co.marshall.ia.us>
To: <wxPython-users@lists.wxwidgets.org>
Sent: Monday, February 11, 2008 5:57 PM
Subject: [wxPython-users] RE: CheckListCtrlMixin: centering the checkbox in the middle of the column
Hi,
-----Original Message-----
From: Raph [mailto:maygeo@netplus.ch]
Sent: Monday, February 11, 2008 2:54 AM
To: wxPython-users@lists.wxwidgets.org
Subject: CheckListCtrlMixin: centering the checkbox in the
middle of the columnHello,
Does somebody know how to horizontally center the checkbox in
the first column of a CheckListCtrlMixin control ?Attached pictures:
pic1_not_centered.jpg: how it is
pic2_centered.jpg: how I'd like it to be.Thanks.
Raphael
This is just a shot in the dark, but when you created the column, did you
use the wx.LIST_FORMAT_CENTRE flag? Something like the following:<code>
# Untested!
self.listCtrl.InsertColumn(0, '', format=wx..LIST_FORMAT_CENTRE)</code>
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org