Focusing editor window after running game

Previous topic - Next topic

Moru

I'm wondering if anyone else have troubles with the editor window not focusing after the game closed? There is no cursor but if you press up or down the view will scroll. Mouse wheel doesn't work until you click the editor window.

Also, when I click a certain position in a line and press arrow up I don't expect the cursor to jump to the first position of the previous line unless that line is empty.  It seems it's just a question of the old x position not getting updated when you click with the mouse.

I know it is small things but they are not intuitive. Mabe something for your list of "rainy day" tasks? :-)

FutureCow

I just discovered the problem with the focus on the editor window, though on using alt-tab to get back to the IDE rather than via running the game. The bug's still there.

Moru

Yes it is but we are the only ones bothered by, does everyone use the mouse all the time? :-)

Kitty Hello

I can't reproduce it. Can you tell me how to do that in detail? More than 1 file open?

FutureCow

I got it today when I was typing in the IDE (I had 2 files open from my project at the same time.) Alt-tab into another application, then alt-tab back in. The cursor is not visible. Typing does not result in anything being written in your file. Using the cursors does make your file scroll though.
Is that clear enough?

Moru

It doesn't happen everytime but the easiest way I get it right now is, start new project, write dummy code:

Code (glbasic) Select
WHILE 1
SHOWSCREEN
WEND


Run without debug mode, exit with escape, focus is returned to editor window.
Create new empty file, switch back to the main file and run again, exit with escape and focus is not returned.

Moru

Quote from: FutureCow on 2009-Oct-19
Typing does not result in anything being written in your file. Using the cursors does make your file scroll though.

Sometimes I'm able to type or delete characters also, not just scroll.

Kitty Hello

I can reproduce it, but I can't fix it quickly. Sorry. :(

Ian Price

Quote from: Moru on 2009-Oct-19
Yes it is but we are the only ones bothered by, does everyone use the mouse all the time? :-)

Yes it's something I've been aware of for a long, long time - I suppose I should have mentioned it earlier, but it's not that big a problem to me. One click with the mouse in the project and it's fine.
I came. I saw. I played.

MrTAToad

#9
The problem is the IDE cant easily find the running programs window handle.  It could search for it, but then you would need to know when its running, and hope that there is exactly one running program with the same window name...

Thats assuming something like ShellExecute is used to start the program.  You could get all the required information (allegedly) by using CreateProcess.  Unfortunately, you then run into Vista security problems...

Kitty Hello

No, the problem is I use some library for the edit control that has syntax highlighting. And that one does get the focus, but it won't show it then. It's a true shame.

Ah - I might simulate a mouse click - maybe that is a workaround...