Author Topic: Highlight occurrences hides the "highlighted" text  (Read 10057 times)

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Highlight occurrences hides the "highlighted" text
« on: December 05, 2009, 05:59:26 pm »
(Using revision 5945 in Ubuntu 8.04)

When I use "find" or "replace", if "Highlight occurrences" is selected,  the highlight color appears as the foreground and completely hides all occurrences of the search term instead of highlighting them.  Did I configure something incorrectly or is this a bug in the highlighting code?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #1 on: December 06, 2009, 10:33:10 am »
If I understand correctly, the colour is opaque and covers the whole text and background ?
Does that also happen, if you use "Highlight occurrences" directly or "Incremental search" ?

Where do you get C::B from ?

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #2 on: December 06, 2009, 02:37:32 pm »
>>> If I understand correctly, the colour is opaque and covers the whole text and background ?
Exactly.

>>> Does that also happen, if you use "Highlight occurrences" directly or "Incremental search" ?
I don't know what you mean here.   When I built C::B,  "Highlight occurrences" was already selected (in Settings/Editor).  When I search using Search/Find or Search/Replace, all occurrences of the search term are highlighted, but the highlighting is opaque.  If I de-select "Highlight occurrences", the search term is identified by a gray background, but only a single occurrence at a time.

>>>Where do you get C::B from ?
Revision 5945 from svn://svn.berlios.de/codeblocks/trunk

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: Highlight occurrences hides the "highlighted" text
« Reply #3 on: December 06, 2009, 03:06:17 pm »
Can you show some pictures here.I think it would be easier to understand. :D
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #4 on: December 06, 2009, 03:36:11 pm »
Can you show some pictures here.I think it would be easier to understand. :D
I know what he means, the indicator used for highlight occurrences does not use transparency.

That can happen with unpatched scintilla, but should not happen with scintilla included in C::B's trunk.


Might be an issue with the graphics driver, but I never heard of such a problem.

EDIT:
So again my question:
what happens, if you use incremental search ?

NEXT EDIT:
Which desktop environment do you use, are composite effects enabled ?
They use the same type of indicator.
« Last Edit: December 06, 2009, 03:41:22 pm by jens »

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #5 on: December 06, 2009, 10:23:53 pm »
Same thing happens with incremental search (but only one occurrence at a time).

I am using Gnome version 2.22.3 as supplied by Ubuntu.  I don't know anything about "composite effects" -- what they are or whether they are enabled.  Can you tell me what to look for?

As to your graphics driver idea -- I am using an Nvidia proprietary driver; after your comment I changed my xorg.conf to try the "nv" driver instead, but the same thing happened with that one.

I have not installed any scintilla package, so presumably I have only what is included in C::B's trunk.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #6 on: December 06, 2009, 11:03:43 pm »
Did you try to build C::B from a fresh svn-checkout ?
And did you remove all occurrences of older C::B versions on your system ?

I am using Gnome version 2.22.3 as supplied by Ubuntu.  I don't know anything about "composite effects" -- what they are or whether they are enabled.  Can you tell me what to look for?
Something like transparent windows while moving and/or transparent window decorations, but that should not harm C::B (at least not in this way).

I don't have ubuntu 8.04 and no (working) nvidia-card to test this behaviour.
I have several linux and windows systems (mostly on kvm-virtual machines) some of them with 32- and 64-bit (kubuntu 9.04, ubuntu 9.10, centos 5.4, openSUSE 11.2, w2k, winxp, vista, win7-64-bit-release-candidat), but no such issues on any of them.

So my idea is to remove everything below <prefix>/lib/codeblocks, <prefix>/share/codeblocks before installing a fresh build

I suggest to run make uninstall first, and then look if anything is left from former installs (the directory layout has changed a little bit, to move the binary parts of the plugins from the share-folder into the lib-folder, so there might be some files left).

Maybe that helps, I have no other idea at the moment.

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #7 on: December 07, 2009, 12:18:08 am »
Quote from: Jens
So my idea is to remove everything below <prefix>/lib/codeblocks, <prefix>/share/codeblocks before installing a fresh build
This does not apply to my setup.

I did build it from a fresh svn-checkout.  I checked it out into a new EMPTY directory and built it in that directory.   My build configuration used --prefix=/opt/codeblocks-svn to install it into a new EMPTY /opt/codeblocks-svn directory, and I changed my launcher so it runs the executable in the new /opt/codeblocks-svn/bin directory.  Presumably codeblocks is running entirely in that directory, so the older version that is sitting in a separate /opt/codeblocks2-svn directory should have no effect (unless there is something wrong with the configure script).

I don't have time to recompile now & will be away from this machine for almost 2 weeks.  I will see what's happening on another machine (also Ubuntu 8.04 with Nvidia graphics) there.  I built C::B on that one last Thursday but didn't try it out yet.  If I have time I'll also try building a new checkout on my old HP laptop (also Ubuntu 8.04 but ATI Radeon graphics); if the same thing happens on that one, it's probably an Ubuntu problem.  I'll post again when I have some news.  Thanks.

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #8 on: December 07, 2009, 04:12:31 pm »
Rev. 5945 is doing the same thing on my other desktop (also Ubuntu 8.04 with Nvidia graphics) -- Ctrl-F results and Contextual Search results are hidden by opaque highlighting.

So I did another fresh checkout on my laptop (Ubuntu 8.04 with ATI graphics), this time it's Rev. 5954, and I'm getting the same opaque highlighting there as well.

Any more ideas?  I'll try to find some help on Ubuntu's forum.  Out of curiosity, where is the code that produces this highlighting?

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #9 on: December 17, 2009, 05:13:36 pm »
I don't have ubuntu 8.04 and no (working) nvidia-card to test this behaviour.
I have several linux and windows systems (mostly on kvm-virtual machines) some of them with 32- and 64-bit (kubuntu 9.04, ubuntu 9.10, centos 5.4, openSUSE 11.2, w2k, winxp, vista, win7-64-bit-release-candidat), but no such issues on any of them.

So, Jens, it seems that I am very unlucky.  I just completed a new installation of Debian Lenny (with XFCE Desktop) on an old PC that has a Matrox graphics card.  I checked out C::B trunk (rev. 5980), built it to install in /opt/codeblocks-svn with-contrib-plugins=all, and guess what?  It looks exactly like the previous builds of rev. 5945 on my Ubuntu 8.04 machines: all occurrences of a search term entered in the Ctrl-F (search/find) window are completely hidden by an opaque block of color.  And Incremental Search also hides each occurrence of its search term.  If I de-select "Highlight occurrences", the problem goes away for Ctrl-F, but Incremental Search is still hiding each item that it finds.

So it seems this is not an Ubuntu issue or an Nvidia issue or a Gnome issue.  It surprises me that nobody else has observed this behavior.

Here are the exact steps that I took to build:
Code
mkdir codeblocks
cd codeblocks
svn co svn://svn.berlios.de/codeblocks/trunk
cd trunk
./bootstrap
./configure --prefix=/opt/codeblocks-svn --with-contrib-plugins=all
make
sudo make install
I don't see any room for error in that, do you?

Edited to correct the "exact steps".  Apparently there is always room for error. ;)
« Last Edit: December 17, 2009, 07:06:03 pm by r.stiltskin »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #10 on: December 17, 2009, 05:41:57 pm »
Here are the exact steps that I took to build:
Code
mkdir codeblocks
cd codeblocks
svn co svn://svn.berlios.de/codeblocks/trunk
cd trunk
./bootstrap
./configure --prefix=/opt/codeblocks-svn
make
sudo make install
I don't see any room for error in that, do you?

No.

You can try this patch for cbeditor.cpp:
Code
--- cbeditor.cpp	(Revision 5982)
+++ cbeditor.cpp (Arbeitskopie)
@@ -559,11 +559,13 @@
             {
                 m_pOwner->m_pControl->IndicatorSetStyle(theIndicator, wxSCI_INDIC_HIGHLIGHT);
                 m_pOwner->m_pControl->IndicatorSetForeground(theIndicator, highlightColour );
+                m_pOwner->m_pControl->IndicatorSetUnder(theIndicator,true);
             }
             if ( m_pOwner->m_pControl2 )
             {
                 m_pOwner->m_pControl2->IndicatorSetStyle(theIndicator, wxSCI_INDIC_HIGHLIGHT);
                 m_pOwner->m_pControl2->IndicatorSetForeground(theIndicator, highlightColour );
+                m_pOwner->m_pControl2->IndicatorSetUnder(theIndicator,true);
             }
 
             int flag = 0;

It does not fix the transparency-problem, but should put the indicators under the text, instead of on top of it.

I do not really like it, because it is less readable (in my opinion) than the other way round, but in your case it should enhance readability a lot  :wink: .

I really would be glad, if I could get the error on one of my machines.

Do you have any other apps using scintilla on your system ?
Which version of wxWidgets is used (output of wx-config --version).

Please post the output of ldd /opt/codeblocks-svn/bin/codeblocks and ldd /opt/codeblocks-svn/lib/libcodeblocks.so.

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #11 on: December 17, 2009, 06:42:07 pm »
Quote
Do you have any other apps using scintilla on your system ?
I don't think so.  So I just installed Geany  & tried it, but it doesn't seem to have a comparable feature.  Its ordinary  "find" highlights the next occurrence in gray, like CB with  "highlight occurrences" turned off.   And its "mark" feature just puts a '+' in the left margin of the editor.

Quote
Which version of wxWidgets is used (output of wx-config --version).
version 2.8.7

Quote
Please post the output of ldd /opt/codeblocks-svn/bin/codeblocks
Code
	linux-gate.so.1 =>  (0xb7f46000)
libcodeblocks.so.0 => /opt/codeblocks-svn/lib/libcodeblocks.so.0 (0xb7ad3000)
libwx_gtk2u_richtext-2.8.so.0 => /usr/lib/libwx_gtk2u_richtext-2.8.so.0 (0xb79df000)
libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0 (0xb7982000)
libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0 (0xb78f4000)
libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0xb78d5000)
libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0 (0xb783b000)
libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0 (0xb777d000)
libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0 (0xb7418000)
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0 (0xb740e000)
libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0 (0xb73e1000)
libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb728c000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7273000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb726f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7181000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb715b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb714e000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb6ff2000)
libz.so.1 => /usr/lib/libz.so.1 (0xb6fdd000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6c52000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6bcc000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6bb1000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6b98000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6b58000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6b1c000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb6b18000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6b13000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb6b0a000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6a54000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6a51000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb6a49000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6a25000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6a06000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb69b1000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb698a000)
/lib/ld-linux.so.2 (0xb7f47000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6980000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb6891000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb688d000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb688a000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6885000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6819000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb67ee000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb67df000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb67d6000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb67ce000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb67c8000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb67bf000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb6795000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb677e000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6757000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb66e2000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb66e0000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb66c7000)
libdirectfb-1.0.so.0 => /usr/lib/libdirectfb-1.0.so.0 (0xb6660000)
libfusion-1.0.so.0 => /usr/lib/libfusion-1.0.so.0 (0xb6658000)
libdirect-1.0.so.0 => /usr/lib/libdirect-1.0.so.0 (0xb6644000)
libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0xb6640000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb6638000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb660f000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb660c000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6607000)

Quote
...and ldd /opt/codeblocks-svn/lib/libcodeblocks.so.
Code
	linux-gate.so.1 =>  (0xb7f97000)
libwx_gtk2u_richtext-2.8.so.0 => /usr/lib/libwx_gtk2u_richtext-2.8.so.0 (0xb7a30000)
libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0 (0xb79d3000)
libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0 (0xb7945000)
libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0xb7926000)
libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0 (0xb788d000)
libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0 (0xb77ce000)
libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0 (0xb7469000)
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0 (0xb745f000)
libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0 (0xb7432000)
libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb72de000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb72c4000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb72c0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb71d2000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb71ac000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7051000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7044000)
libz.so.1 => /usr/lib/libz.so.1 (0xb702e000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6ca3000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6c1d000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6c02000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6bea000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6baa000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6b6d000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb6b69000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6b64000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb6b5b000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6aa6000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6aa2000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb6a9a000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6a76000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6a57000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6a02000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb69db000)
/lib/ld-linux.so.2 (0xb7f98000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb69d1000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb68e2000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb68df000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb68dc000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb68d6000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb686a000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb683f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb6831000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6828000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb681f000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6819000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6810000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb67e7000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb67d0000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb67a8000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6733000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb6731000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6719000)
libdirectfb-1.0.so.0 => /usr/lib/libdirectfb-1.0.so.0 (0xb66b2000)
libfusion-1.0.so.0 => /usr/lib/libfusion-1.0.so.0 (0xb66a9000)
libdirect-1.0.so.0 => /usr/lib/libdirect-1.0.so.0 (0xb6695000)
libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0xb6691000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb668a000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6661000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb665d000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6658000)

Note: I edited the "exact steps" in #9 above; I had omitted "--with-contrib-plugins=all".
« Last Edit: December 17, 2009, 07:04:54 pm by r.stiltskin »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #12 on: December 17, 2009, 10:34:53 pm »
The cause is most likely a wxWidgets build without having wxHAVE_RAW_BITMAP defined.

Did you test my patch ?

If it works, it can be applied to trunk into #ifdefs that check whether wxHAVE_RAW_BITMAP is defined or not.

Offline r.stiltskin

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Highlight occurrences hides the "highlighted" text
« Reply #13 on: December 18, 2009, 12:12:05 am »
Based on what you wrote, this will probably surprise you as much as it did me.  After applying your patch, "Highlight occurrences" now works correctly (I suppose) for ordinary search (Ctrl-F) -- the first occurrence following the cursor is highlighted gray and all other occurrences are highlighted red, and all of the highlighting is transparent.  NOT underlined, highlighted.

However, the problem persists for Incremental Search -- each occurrence is still covered by an opaque purple block.

The same is true on both machines that I patched -- one of the Ubuntu machines and the Debian Lenny one.

So, does IndicatorSetUnder() mean under as in underline, or under as in underlying plane?

Note, I did not 'make clean' and recompile everything.  I just patched in those two lines of code and ran 'make' and then 'make install'.
« Last Edit: December 18, 2009, 12:13:45 am by r.stiltskin »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Highlight occurrences hides the "highlighted" text
« Reply #14 on: December 18, 2009, 12:28:18 am »
Please surround the added lines with #ifndef wxHAVE_RAW_BITMAP and #endif, to see whether it is caused by wxWidgets not having  wxHAVE_RAW_BITMAP defined.

IndicatorSetUnder() means draw the indicator under the text (as underlying pane) and not on top of the text.
The patch does not change the behaviour of the IncrementalSearch-plugin.