Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Delphi's focus after Alt+Tab
Mon, Sep 22 2008 2:26 PMPermanent Link

"David Cornelius"
I like keeping my hands on the keyboard as much as possible.  Moving my
hand off the keyboard to the mouse, then repositioning back on the
keyboard is counter-productive while coding.  I'm not complaining that
I a mouse, it's just that when I'm writing code and not designing
forms, I use hot keys as much as possible.

So when I have a PDF or web page or even EDB Manager up for reference
on something and I have to switch away from the Delphi 2007 code editor
to scroll up or down in the reference document, I want to simply use
Alt+Tab to switch to the other program, use arrow keys or PgUp/PgDn,
then Alt+Tab back to my code editor in Delphi.

The problem is that when I switch back to Delphi, the focus is no
longer in the code editor, but somewhere else, like on the Desktop
Layout selector combobox in the toolbar.  In order to keep from using
the mouse, I must hit F12 twice (if I'm editing a form or data module),
once to switch it to design mode (since it was in edit mode), and then
again back to code edit mode.

Does anyone else experience frustration with this?  Is there anything
that can be done (an option I missed, a plug-in, a GExperts setting?)

(I tried posting to CodeGear's IDE newsgroup, but they are inaccessible
to me--again!)

--
David Cornelius
CorneliusConcepts.com
Tue, Sep 23 2008 2:16 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

David


I'm using D2006 and I get the same effect, generally I forget until I find that typing does nothing and then click into the editor and off I go.

Roy Lambert
Tue, Sep 23 2008 11:57 AMPermanent Link

"David Cornelius"
> I'm using D2006 and I get the same effect, generally I forget until I
> find that typing does nothing and then click into the editor and off
> I go.

Yeah, sometimes the focus is left in the desktop layout combo box in
the tool bar.  I just start typing and hit enter, only to watch my
whole layout switch around.  When it dawns on my what happened, I
switch the layout back and click in the editor.  At first, I had a
chuckle, then it got frustrating.  Now, I finally remember to click.
But I sure wish there was a hot key.

--
David Cornelius
CorneliusConcepts.com
Tue, Sep 23 2008 2:12 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

David


>Yeah, sometimes the focus is left in the desktop layout combo box in
>the tool bar. I just start typing and hit enter, only to watch my
>whole layout switch around.

That's the beastie

>But I sure wish there was a hot key.

My wish is that it didn't happen <vbg>

Roy Lambert
Tue, Sep 23 2008 2:41 PMPermanent Link

"David Cornelius"
> My wish is that it didn't happen <vbg>

Yeah--that too!

--
David Cornelius
CorneliusConcepts.com
Fri, Sep 26 2008 3:13 PMPermanent Link

Uli Becker
David,

I cannot reproduce that with my Delphi2007. The focus stays in the
editor window here when coming back from another app.

Nevertheless I can recommend 2 fantastic tools for programming:

1. Autohotkey (www.autohotkey.com). It allows to write scripts triggered
by any hotkey that can do nearly everything you want (e.g. looking for a
window with a certain class name.

2. G15 keyboard by Logitech with a lot of programmable keys in 3 layers.

The combination of these two is really great.

Regards Uli
Fri, Sep 26 2008 5:26 PMPermanent Link

"David Cornelius"
> I cannot reproduce that with my Delphi2007. The focus stays in the
> editor window here when coming back from another app.

After reading this, a thought struck me and I tried something: with a
"docked" layout, it works fine, but with an “undocked” layout, the
focus gets returned to the main form, which is the form containing the
title, menu, and toolbar.  That makes sense!


> Nevertheless I can recommend 2 fantastic tools for programming:
>
> 1. Autohotkey (www.autohotkey.com). It allows to write scripts
> triggered by any hotkey that can do nearly everything you want (e.g.
> looking for a window with a certain class name.
>
> 2. G15 keyboard by Logitech with a lot of programmable keys in 3
> layers.

Thanks--I’ll check them out!


--
David Cornelius
CorneliusConcepts.com
Image