Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Auto-comp list selection color

<< < (3/4) > >>

MortenMacFly:

--- Quote from: Alpha on January 12, 2013, 03:05:26 pm ---Yes (at least on my testing on Linux).  From what I understand of the auto-comp box is that it never actually has focus; commands are intercepted by the parent stc, and act from there.

--- End quote ---
OK - so lets have some testing with other Linux people and maybe other Linux distros. (I'm not using Linux if I can avoid it.)

Alpha:
How much time do others want for testing?  When testing is complete, this is the patch I recommend:

--- Code: ---Index: src/sdk/wxscintilla/src/PlatWX.cpp
===================================================================
--- src/sdk/wxscintilla/src/PlatWX.cpp (revision 8787)
+++ src/sdk/wxscintilla/src/PlatWX.cpp (working copy)
@@ -951,7 +951,13 @@
         // can't receive focus then we have to pull a fast one and temporarily
         // parent the listctrl on the STC window and then call SetFocus and
         // then reparent it back to the popup.
+/* C::B begin */
+        // this focus hack makes the selection unreadable for Ubuntu themes,
+        // so do not attempt under GTK
+#ifndef __WXGTK__
         lv->SetFocus();
+#endif
+/* C::B end */
         lv->Reparent(this);
 #ifdef __WXMSW__
         lv->Show();

--- End code ---

oBFusCATed:
Alpha:
Have you tried to contact wx's developers?
I guess they might help in solving this or you can help them fix a bug in wxstc.

Alpha:

--- Quote from: oBFusCATed on January 14, 2013, 10:55:50 pm ---Have you tried to contact wx's developers?
I guess they might help in solving this or you can help them fix a bug in wxstc.

--- End quote ---
Reported now.

Alpha:
I have not received much response from the wxWidgets developers.  Is there any reason this patch should not be committed in the interim?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version