Author Topic: Lost the code-completion window border  (Read 7037 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Lost the code-completion window border
« on: September 16, 2010, 05:29:26 am »
After merged with trunk (scintilla branch to trunk).
Any comment?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Lost the code-completion window border
« Reply #1 on: September 16, 2010, 07:04:11 am »
Any comment?
This is true... I didn't realise this so far... However, the modifications are actually not related to the CC Kick-In Windows at all?! Weired...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Lost the code-completion window border
« Reply #2 on: September 16, 2010, 01:12:34 pm »
This patch fixes it for me, but this code was not changed in the update, so I don't know what has happened.

Code
--- tmp/tmpFZA7Cp-meld/PlatWX.cpp 
+++ home/jens/codeblocks-build/codeblocks.pure.trunk/src/sdk/wxscintilla/src/PlatWX.cpp
@@ -828,7 +828,7 @@
         SetBackgroundColour(*wxBLACK);  // for our simple border
 
         lv = new wxSCIListBox(parent, id, wxDefaultPosition, wxDefaultSize,
-                              wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER | wxBORDER_NONE);
+                              wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER | wxSIMPLE_BORDER);
         lv->SetCursor(wxCursor(wxCURSOR_ARROW));
         lv->InsertColumn(0, wxEmptyString);
         lv->InsertColumn(1, wxEmptyString);
@@ -954,7 +954,7 @@
     {
 
         lv = new wxSCIListBox(this, id, wxDefaultPosition, wxDefaultSize,
-                              wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER | wxNO_BORDER);
+                              wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_NO_HEADER | wxSIMPLE_BORDER);
         lv->SetCursor(wxCursor(wxCURSOR_ARROW));
         lv->InsertColumn(0, wxEmptyString);
         lv->InsertColumn(1, wxEmptyString);

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Lost the code-completion window border
« Reply #3 on: September 16, 2010, 06:56:13 pm »
This patch fixes it for me, but this code was not changed in the update, so I don't know what has happened.
Jens, you are the hero. I was looking inside the lower-level Scintilla code for long, but found nothing. Then I had to skip. I'll look into the changes again to see why this is needed suddenly... Please commit! :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Lost the code-completion window border
« Reply #4 on: September 16, 2010, 10:26:11 pm »
This patch fixes it for me, but this code was not changed in the update, so I don't know what has happened.
Jens, you are the hero. I was looking inside the lower-level Scintilla code for long, but found nothing. Then I had to skip. I'll look into the changes again to see why this is needed suddenly... Please commit! :-)
Done (trunk r6601), I also added the ability to change fore- and background-color of CallTips ("stolen" from ScintillaBase and slightly modified).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Lost the code-completion window border
« Reply #5 on: September 17, 2010, 06:51:49 am »
Done (trunk r6601), I also added the ability to change fore- and background-color of CallTips ("stolen" from ScintillaBase and slightly modified).
Thanks. I had a look again at your changes. In fact, isn't it weird that the border had been there until now? I mean: If I got your changes right, then it was set implicitly to wxBORDER_NONE, was it?! So the actual question is why this was visible in the past... :shock:

However, it's back to "normal" now luckily.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Lost the code-completion window border
« Reply #6 on: September 17, 2010, 07:12:23 am »
Nice! works well now.( I just merged from trunk to cc branch manual. )
@Morten, could you merge the changes from trunk to cc branch?
Thanks!