logo       

Re: wxTreeCtrl::SetItemDropHighlight; wxTreeCtrl::GetItemTextColour & wxTre: msg#00045

Subject: Re: wxTreeCtrl::SetItemDropHighlight; wxTreeCtrl::GetItemTextColour & wxTreeCtrl::GetItemBackgroundColour
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

Attachment: 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
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe