Ilan1
1
Hi,
How can I change the column header text in UltimateListCtrl?
Thanks,
···
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Change-column-header-in-UltimateListCtrl-tp5726294.html
Sent from the wxPython-users mailing list archive at Nabble.com.
info = ULC.UltimateListItem()
info._format = wx.LIST_FORMAT_RIGHT
info._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_FORMAT | ULC.ULC_MASK_FONT
info._image =
info._text = “Title”
info._font = boldfont
That code is from the wx demo of the UltimateList
Johnf
···
On Sun, Oct 30, 2016 at 11:34 PM, Ilan hindy.ilan@gmail.com wrote:
Hi,
How can I change the column header text in UltimateListCtrl?
Thanks,
–
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Change-column-header-in-UltimateListCtrl-tp5726294.html
Sent from the wxPython-users mailing list archive at Nabble.com.
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ilan1
3
Thank you,
I know this code,
My problem is not at the initialize of the control but later after the control was initiated to set the header text
(as a respond for an event for example)
Thanks,
Ilan
···
On Monday, October 31, 2016 at 4:49:25 PM UTC+2, אילן הינדי wrote:
Hi,
How can I change the column header text in UltimateListCtrl?
Thanks,
–
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Change-column-header-in-UltimateListCtrl-tp5726294.html
Sent from the wxPython-users mailing list archive at Nabble.com.
Try it with:
col_info = ulc.GetColumn(col_number)
col_info.SetText(“Column Header”)
ulc.SetColumn(col_number, col_info)
``
Maybe a Refresh() or Update() is needed after changing the header.
···
Am Montag, 31. Oktober 2016 15:49:25 UTC+1 schrieb אילן הינדי:
Hi,
How can I change the column header text in UltimateListCtrl?
Thanks,
–
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Change-column-header-in-UltimateListCtrl-tp5726294.html
Sent from the wxPython-users mailing list archive at Nabble.com.