It seems that a right click on a wxListCtrl on MSW will highlight the item while under GTK on Linux the item remains unselected. Is it possible to highligth the item in both cases?
Nigel
It seems that a right click on a wxListCtrl on MSW will highlight the item while under GTK on Linux the item remains unselected. Is it possible to highligth the item in both cases?
Nigel
Create a
EVT_LIST_ITEM_RIGHT_CLICK(id, func)
handler and do the selection manually. You can even only activate the handler
if run on "posix" (i.e. unix) systems by using
import os
if os.name == "posix":
EVT_LIST_ITEM_RIGHT_CLICK(.....)
On Monday 21 October 2002 02:23 pm, Nigel Moriarty wrote:
It seems that a right click on a wxListCtrl on MSW will highlight the item
while under GTK on Linux the item remains unselected. Is it possible to
highligth the item in both cases?Nigel
--
UC
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
Uwe
Got this far but couldn't actually select it manully. Used
SetBackgroundColour to no avail. Used SetState to no avail.
Nigel
----- Original Message -----
From: "Uwe C. Schroeder" <uwe@oss4u.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Monday, October 21, 2002 2:29 PM
Subject: Re: [wxPython] wxListCtrl highlighting
On Monday 21 October 2002 02:23 pm, Nigel Moriarty wrote:
> It seems that a right click on a wxListCtrl on MSW will highlight the
item
> while under GTK on Linux the item remains unselected. Is it possible to
> highligth the item in both cases?
>
> NigelCreate a
EVT_LIST_ITEM_RIGHT_CLICK(id, func)handler and do the selection manually. You can even only activate the
handler
if run on "posix" (i.e. unix) systems by using
import os
if os.name == "posix":
EVT_LIST_ITEM_RIGHT_CLICK(.....)--
UC--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users