Skip to main content

Questions tagged [focus]

Focus indicates the component of the graphical user interface which is currently selected to receive input.

242 votes
24 answers
124k views

Focus-follows-mouse (plus auto-raise) on Mac OS X

(I don't want to hear about how crazy I am to want that! :) Focus-follows-mouse is also known as point-to-focus, pointer focus, and (in some implementations) sloppy focus. [Add other terms that will ...
1 vote
5 answers
2k views

How to skip fields using javascript?

I have a form like this: <form name="mine"> <input type=text name=one> <input type=text name=two> <input type=text name=three> </form> When user types a ...
Milan Babuškov's user avatar
1 vote
5 answers
9k views

Possible to set tab focus in IE7 from JavaScript

Is it possible to launch a new window in JavaScript using the window.Open function, then set the focus to that tab? Here's what I'm doing today: var winRef = window.open(outUrl,wName,'...
Jay Mooney's user avatar
  • 2,246
7 votes
5 answers
9k views

In Applescript, how can I find out if a menu item is selected/focused?

I have a script for OS X 10.5 that focuses the Search box in the Help menu of any application. I have it on a key combination and, much like Spotlight, I want it to toggle when I run the script. So, ...
20 votes
1 answer
23k views

How do you set focus to the HTML5 canvas element?

I'm using the HTML5 <canvas> element in Firefox 2.0.0.16 and in Safari 3.1.2, both on my iMac. (I've tried this in Firefox 3.0 on Windows as well, also to no avail.) The tag looks like this: &...
Alan's user avatar
  • 3,865
2 votes
2 answers
752 views

How to create a non-interactive window in MFC

In my application I have a window which I popup with small messages on it (think similar to tooltip). This window uses the layered attributes to draw alpha backgrounds etc. If I have several of these ...
Mark Ingram's user avatar
  • 73.1k
20 votes
6 answers
46k views

Winforms c# - Set focus to first child control of TabPage

Say I have a Textbox nested within a TabControl. When the form loads, I would like to focus on that Textbox (by default the focus is set to the TabControl). Simply calling textbox1.focus() in the ...
Corin Blaikie's user avatar

15 30 50 per page
1
485 486 487 488
489