Author Topic: code completion does not get focus  (Read 32359 times)

pwuertz

  • Guest
code completion does not get focus
« on: October 18, 2005, 03:18:00 am »
hi there

its a little bit strange, but when requesting code completion, the code completion window does not get the focus, so I have to use the mouse to activate it.

i'm using the current cvs version. compiled with gtk 2.8.6, wxGTK 2.6.2

any ideas why this happens?

pwuertz

  • Guest
Re: code completion does not get focus
« Reply #1 on: October 29, 2005, 11:20:27 am »
this seems to be a window-manager issue...

the code completion window is working correctly using
gnome window-manager "metacity"
xfce window-manager "xfwm"

the code completion window does not get focus and closes when trying to move/resize
using kde's "kwin"

can anyone confirm that?

pwuertz

  • Guest
Re: code completion does not get focus
« Reply #2 on: October 31, 2005, 08:59:13 am »
yes? no? hello?
no kde users here?!

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: code completion does not get focus
« Reply #3 on: October 31, 2005, 04:25:31 pm »
Sorry, windows user here :(

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: code completion does not get focus
« Reply #4 on: October 31, 2005, 07:35:30 pm »
not yet, I am working on getting KDE to work ;)
So please hold on for a few days (I am not very fast :P)
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

pwuertz

  • Guest
Re: code completion does not get focus
« Reply #5 on: November 21, 2005, 12:07:05 pm »
*bump*

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: code completion does not get focus
« Reply #6 on: November 21, 2005, 12:56:36 pm »
I have got the same problems using enlightenment e16. The code-completion windows only gets the focus when the mouse is above it. In fact, that is the intended behavior for application windows (that means in order to switch between running applications I just move the mouse onto them), but this is definitely not good for code-completion. Is there a possibility to change this behavior from Code::Blocks or is changing the settings of the windowmanager or even the windowmanager itself the only solution to this problem?
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: code completion does not get focus
« Reply #7 on: November 21, 2005, 02:21:47 pm »
I have got the same problems using enlightenment e16. The code-completion windows only gets the focus when the mouse is above it. In fact, that is the intended behavior for application windows (that means in order to switch between running applications I just move the mouse onto them), but this is definitely not good for code-completion. Is there a possibility to change this behavior from Code::Blocks or is changing the settings of the windowmanager or even the windowmanager itself the only solution to this problem?

All we 're doing is display a window. What the window manager does with it, we don't know and there's not much we can do about it.
The only special thing about this window is that if you click outside it, it disappears...
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: code completion does not get focus
« Reply #8 on: November 21, 2005, 05:30:47 pm »
It would be good if you can make think other programs that its a combobox or another control but NOT a window.

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: code completion does not get focus
« Reply #9 on: November 21, 2005, 05:48:35 pm »
It would be good if you can make think other programs that its a combobox or another control but NOT a window.

Yeah, any chance of making it just another control that happens to be on top of the editor?

pwuertz

  • Guest
Re: code completion does not get focus
« Reply #10 on: November 21, 2005, 08:43:22 pm »
I don't know anything about WxWidgets, but in some other environments it would be sufficient to invoke some kind of "window->setFocus()" method. I haven't found such a method in the Wx documentation, but as i said i don't have any experience with that toolkit.

Does Wx allow some kind of floating combobox as described by Takeshi Miya or Urxae?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: code completion does not get focus
« Reply #11 on: November 21, 2005, 08:47:25 pm »
virtual void wxWindow::SetFocus()

This sets the window to receive keyboard input.

That one could do the trick...

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: code completion does not get focus
« Reply #12 on: November 21, 2005, 08:56:44 pm »
I'm not sure if I did it right but I have already tested this and at least on enlightenment e16 it didn't work (which seems quite logical). Maybe this is different on other window-managers but it seems that this is not overall solution.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

takeshimiya

  • Guest
Re: code completion does not get focus
« Reply #13 on: November 21, 2005, 09:02:37 pm »
The codecompletion should be a control, not a window.

Some window managers implements focus over the cursor.

sfeng

  • Guest
Re: code completion does not get focus
« Reply #14 on: November 22, 2005, 04:35:56 am »
my codecompletion can't work,too