Page 1 of 1

Clicking a toolbar button does not bring XY into focus!

Posted: 01 Jun 2006 22:44
by John Bee
Hi

I just noticed an interesting thing. To reproduce:

XY is the focused window/program.

Click on the desktop, this takes the focus away from XY.

Now click on (it can be any toolbar button, but I'll use the GoHome (the little house icon)button as an example) the GoHome toolbar button. It does what it's suppose to do.

But, do you notice something strange?

Now, normally when you click say, the title bar, a button, etc. inside a window/program, it makes that window/program become focused or the selected/topmost.

Even if XY is not the topmost window, and you can click a toolbar icon while XY is behind another window/program, it still does not bring XY to the fore and focused!

John

Win2K
XY 0012

Re: Clicking a toolbar button does not bring XY into focus!

Posted: 02 Jun 2006 07:05
by admin
Hm, that's indeed very interesting. I did not know it was possible! It might become useful later/elsewhere.

Now for the toolbar: shall I fix it? I think (a) it's a rather rare situation, (b) it *might* even become handy in some equally rare situations.
It could be fixed using GetForegroundWindow/SetForegroundWindow but it's too much fix for a very small "problem".

Re: Clicking a toolbar button does not bring XY into focus!

Posted: 02 Jun 2006 16:05
by John Bee
admin wrote:Hm, that's indeed very interesting. I did not know it was possible! It might become useful later/elsewhere.

Now for the toolbar: shall I fix it? I think (a) it's a rather rare situation, (b) it *might* even become handy in some equally rare situations.
It could be fixed using GetForegroundWindow/SetForegroundWindow but it's too much fix for a very small "problem".
Hi
Well, the reason I mentioned it was "Hey I found a neat thing", but mostly I got caught when I clicked on the GoHome toolbar button and then tried to scroll down the listview but nothing was happening. Finally figured out that even tho I clicked in XY (via the toolbar), it did not focus XY. So I then had to click in the listview to make XY focused and then I could scroll down the list.

Just means an extra click to make XY focused if it is not.

John

Win2K
XY 0012