wxListCtrl on GTK

Folks

I vaguely remember something on this list about wxListCtrl on GTK. When I write click on a wxListCtrl taken from the demo on MSW the EVT_LIST_ITEM_SELECTED event fires and sets self.currentItem but this event doesn’t fire on GTK and the self.currentItem is not set.

Nigel

Nigel Moriarty wrote:

Folks
I vaguely remember something on this list about wxListCtrl on GTK. When I write click on a wxListCtrl taken from the demo on MSW the EVT_LIST_ITEM_SELECTED event fires and sets self.currentItem but this event doesn't fire on GTK and the self.currentItem is not set.

Works for me. Do you not get "OnItemSelected: ..." messages in the log window?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Sorry Robin

I meant to say when I RIGHT click on a LINUX box the select item doesn't
fire.

Nigel

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxPython-users@lists.wxwindows.org>
Sent: Thursday, November 14, 2002 6:23 PM
Subject: Re: [wxPython-users] wxListCtrl on GTK

Nigel Moriarty wrote:
> Folks
>
> I vaguely remember something on this list about wxListCtrl on GTK. When
> I write click on a wxListCtrl taken from the demo on MSW the
> EVT_LIST_ITEM_SELECTED event fires and sets self.currentItem but this
> event doesn't fire on GTK and the self.currentItem is not set.
>

Works for me. Do you not get "OnItemSelected: ..." messages in the log
window?

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

I see the same thing. I'm running wx-python-gtk on a Debian PPC system. Right clicking does NOT select the item (not visually). ie. it does not get highlighted. I haven't checked on MSW.

Also, GTK version does not right align or centre align.

Cheers,
Brendan Simon.

Nigel Moriarty wrote:

···

Sorry Robin

I meant to say when I RIGHT click on a LINUX box the select item doesn't
fire.

Nigel Moriarty wrote:
   

Folks

I vaguely remember something on this list about wxListCtrl on GTK. When
I write click on a wxListCtrl taken from the demo on MSW the
EVT_LIST_ITEM_SELECTED event fires and sets self.currentItem but this
event doesn't fire on GTK and the self.currentItem is not set.

Works for me. Do you not get "OnItemSelected: ..." messages in the log
window?
   

How's the wxPython/Universal coming along ?

Is there a website to track it's development ?

Is there any beta code to play with ?

Cheers,
Brendan Simon.

Nigel Moriarty wrote:

Sorry Robin

I meant to say when I RIGHT click on a LINUX box the select item doesn't
fire.

You can make it select the item yourself if you want. Something like this in a EVT_RIGHT_DOWN handler might do it:

         x = event.GetX()
         y = event.GetY()
         item, flags = self.list.HitTest((x, y))
         if flags & wxLIST_HITTEST_ONITEM:
             self.list.Select(item)
         event.Skip()

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Brendan J Simon wrote:

Also, GTK version does not right align or centre align.

That's been fixed in CVS.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Brendan J Simon wrote:

How's the wxPython/Universal coming along ?

Is there a website to track it's development ?

Is there any beta code to play with ?

Sorry, not yet.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!