focus

How Do You Focus The Android Developer Emulator?

I made an image button in eclipse and I tested it out (ran it) with the emulator in the android sdk package. <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_pressed="true" android:drawable="@drawable/cat1" /> <!-- pressed --> <item android:state_focused="true" android:drawable="@drawabl...

MDI child form is not allowing other child forms to get focus

The application is an MDI container app. A specific child form (Form1) when loaded gets focus and will not release the focus. If another form is opened up, the user is not able to select any field within that form if the Form1 form is open. Also, within the Form1, the focus will not leave a combobox even to set focus to another field o...

jQuery plugin issue: focus not working

This is the plugin: ( function($) { $.fn.foo=function() { $(this).focus() return $(this) } } )(jQuery) Now, $('input#foo').foo() does not get focus. Any idea why? ...

Returning a JTextField to editing after a warning dialog

In my application I have a JTextField that will only allow the user to fill it with input formatted in a certain way. I have a method that checks if input into the field is valid and if not it displays a dialog. After this occurs I would like the focus to return to the text field so that the user can correct there mistake and type in t...

how to set the focus to a text field of an application employed in i-pad ?

how to set the focus to a text field of an application employed in i-pad after getting sending request to the server? is it possible by using javascript? (this thing is working in normal browsers like safari ,firefox, I.E etc.,) i dont know how to do this possible in i-pad? thanks in advance!!! ...

Python window focus

I would like to find out if a window has focus. I am using pyGTK and would be helpful to us that but have got some Xlib in my script aswell. I've used: self.window.add_events( gdk.FOCUS_CHANGE_MASK ) # It took me ages to research this self.window.connect("focus-in-event", self.helloworld) but this gives me the event every time the win...

[Qt4] Prevent focus from leaving field if value is invalid

Hi, I've got an issue with Qt4 focus handling. Since QDateEdit does not support NULL values, I've tried to emulate such a widget by using a QLineEdit with an inputMask. But event with the inputMask the user is still able to enter an invalid date (e.g. 44/44/4444). In that case I want to display an error messagebox when the user leaves t...

Active class on page load of menu item

Hi all, I have a hardcoded li menu that is using filterable.js to filter a list of items, based on hash tags. I can get focus to work if the item is selected, however, I want the all tag to be selected on page load. I added the class "current" to the "all" menu item, however this did not work. see: http://thinquetanque.com/portfolio ...

Controling popup open and close focus

Hi I have a popup which contains multiple elements, a list view, a text box and a button. These are operating fine, and if you use the button to close the popup it works as well, but when i tried to make the popup close when it lost focus, it closed when i clicked an element in the listview. Is there any way around this? Is the FocusMana...

How to 'get at' the WPF combobox PART_EditableTextbox because combobox not getting highlighted?

Hi, My WPF combobox is populated with a different set of strings each click of a button. There are other controls on the window as well. The combobox is the 'first' (top) in the window, but the text doesn't get highlighted. When the user tabs through the controls, the text DOES get highlighted, but when it's the first on the window, it ...

wxPython: How do I find out which widget has the focus?

How do I find out which widget in my wx.Frame has the focus? ...

Control tab focus (choose next element to focus) with GTK / PyGTK

How can I force the Tab to focus the element I want, is it possible to give my software a list of elements to cycle focus ? I remember once using a property called tabindex, but I can't find it anymore. Maybe, preventing Tab to focus an element could also work ? ...

How to automatically switch focus of input elements on html form?

I have a html form with three inputs for phone number input. I want a cursor to move to next input after the current one is filled. Like you entered 3 digits in first box than cursor moves to second and after it is filled moves to 3rd. Is it possible to accomplish this without javascript? ...

How can I detect the user has clicked on the Page Tab where my html page is?

I'm developing a web chat and I need to raise an event when the conversation has changed so the page title changes so one user can know that the other user has written anything. So I tried the code: addEvent(window,'focus',function(){ alert(1); } ); and addEvent(document,'focus',function(){ alert(2); } ); but it does not work. ...

How to create component that does't give focus to the Window

I have JTextField with FocusListener that call textfield.grabFocus() every time when textfield lose focus. But unfortunetly, it allow parent Window to react on user action. Is there any way to don't give the focus to the Window using only JTextField methods? ...

.Net WinForms TabControl Steals Focus on form activation

Hi Guys, I wonder if there is anyone who can help me? The issue I have is a windows form TabPage stealing focus upon form re-activation. The form has a TabControl with four or five TabPages. Each tab page has many various controls. The scenario is as follows: A user tabs through a few controls on the first TabPage and a new form is sp...

Scrolling to an item in a list

I have a list of elements I would like to be able to have brought into focus when the user is selecting items. I've tried calling .focus() with Jquery on these objects to no avail. Is there anything I'm missing? :) EDIT: I have a list (ul) of elements. I shift click on a starting item and and press the arrow keys to continue selecting. ...

Dragging Out of a Table and Responder Chain

Hello everyone, I'm trying to build something where I can drag a person object from a UITableView into another UITableView. What I've got working so far is that when I select the item in the table to drag (UICustomTableViewCell), in the touchesMoved method, I pop the person object out of the cell and attach it to the superview. The p...

Tutorial on How to drag and drop item from UITableView to UITableView

I've been banging my head on this one for a while and I figured it out. I want to give back to the community since I've gotten a lot of help from this website :). I'm trying to copy an item from one UITableView to another UITableView and information I've seen on the web regarding how to do this has been sketchy at best. I figured it out...

How to focus modal dialog clicking the notify icon in C#?

My application's notification icon shows and hides the main application window accordingly. However, when a modal dialog is opened (this can be the About dialog or Settings dialog, to name a few) I want to the modal dialog to gain focus instead of showing/hiding the main application window. The modal dialogs are opened with form.ShowDia...