Hi,
After more testing with , I can confirm that wxTreeCtrl::SetItemDropHighlight
is partially supported in wxGTK (2.6.3): the item is highlighted, but it
loses the custom text colour applied (if any), and possible the background
colour.
Also, I want to ask for two small additions, in TreeCtrl.xs too:
GetItemTextColour and GetItemBackgroundColour. I've tested these in both
Linux and Windows.
(patch for Wx-0.57/XS/TreeCtrl.xs, CVS version)
------------------------------------
--- XS/TreeCtrl.orig.xs 2006-09-24 18:04:24.000000000 +0300
+++ XS/TreeCtrl.xs 2006-09-29 09:50:48.000000000 +0300
@@ -365,6 +365,22 @@
wxTreeItemId* item
C_ARGS: *item
+wxColour*
+wxTreeCtrl::GetItemTextColour( item )
+ wxTreeItemId* item
+ CODE:
+ RETVAL = new wxColour( THIS->GetItemTextColour( *item ) );
+ OUTPUT:
+ RETVAL
+
+wxColour*
+wxTreeCtrl::GetItemBackgroundColour( item )
+ wxTreeItemId* item
+ CODE:
+ RETVAL = new wxColour( THIS->GetItemBackgroundColour( *item ) );
+ OUTPUT:
+ RETVAL
+
wxTreeItemId*
wxTreeCtrl::GetLastChild( item )
wxTreeItemId* item
@@ -647,7 +663,7 @@
if( tid ) delete tid;
THIS->SetItemData( *item, data ? new wxPliTreeItemData( data ) : 0 );
-#if defined( __WXMSW__ )
+#if defined( __WXMSW__ ) || defined( __WXGTK__ )
void
wxTreeCtrl::SetItemDropHighlight( item, highlight = true )
------------------------------------
Thank you,
Lucian Dragus
> Hi,
>
> I added this to CVS on Sep 5th (only supported by wxWidgets on WXMSW).
>
> Regards
> Mark
TreeCtrl.xs.patch
Description: Text Data
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________
wxperl-users mailing list
wxperl-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/wxperl-users
|