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">
<item android:state_pressed="true"
android:drawable="@drawable/cat1" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@drawabl...
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...
This is the plugin:
(
function($)
{
$.fn.foo=function()
{
$(this).focus()
return $(this)
}
}
)(jQuery)
Now, $('input#foo').foo() does not get focus. Any idea why?
...
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 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!!!
...
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...
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...
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
...
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...
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 ...
How do I find out which widget in my wx.Frame has the focus?
...
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 ?
...
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?
...
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.
...
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?
...
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...
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. ...
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...
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...
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...