RE: Getting information from EVT_LIST_ITEM_RIGHT_CLICK

2013-02-05 Thread steveco.1959
Hi Mark, Thanks very much for this. This event structure looks intuitively right. I need to work out how to implement it. There is no intention that the second click of a double should negate a preceding single click. A double click is a more forceful single click, or if you like, the click

Any views on locale handling and wxWidgets 2.9.0

2013-02-05 Thread Mark Dootson
Hi All, As raised in a recent Wx bug ticket, wxWidgets from version 2.9.0 automatically sets the locale to the users current locale. Formally in wxWidgets 2.8.x, the locale by default was 'C'. The problem arises because in addition to loading gettext translation files, the wxWidgets

Re: wxLC_VIRTUAL and EVT_LIST_ITEM_RIGHT_CLICK

2013-02-05 Thread Mark Dootson
Hi Jeff, On 05/02/2013 10:50, Jeff wrote: Thanks Mark. Yes, we are using virtual. Did I mention we get around that by sensing key EVT_KEY_UP and checking if GetKeyCode is 306. If it is we call our item selected callback. Interesting. I found I needed the code below in a virtual list ctrl

Re: Any views on locale handling and wxWidgets 2.9.0

2013-02-05 Thread Tarek Unger
Greetings, i personally think this is a good approach. A simple use Wx; anywhere in the code should *not* change the behavior of a complete separate codepart. As described in the Bug Ticket, this automatism was already breaking a application which involved database operations. On the

Setting background color on column heading in Wx::ListCtrl

2013-02-05 Thread Dave Hayes
How do I achieve this in 2.8.12? Right now I'm doing this: $listctrl-InsertColumn($col, $heading); setColumnHeader($col, $heading); sub setColumnHeader { my ($listctrl, $col, $heading, $bgcolor, $font) = @_; my $li = Wx::ListItem-new; $li-SetText($heading);