focus

Android: To ensure none of the Views are focused when an Activity opens?

Hi, I have 2 activities, A1 and A2. My application opens in Activity A1. None of the views in A1 are focused at startup, until I use the arrow keys to navigate through the views. A button press in A1 launches activity A2. When A2 opens, the first Button in A2 is focused by default. I do not want this happen. What I want is when A2 o...

Set selected WPF DataGridCell to focused and editable upon event

Woot, first Stack Overflow post! I've been asked to work on a desktop application to improve an inventory process for my company. I dabbled with WPF in school and I figured I'd start there. After researching some, I learned about MVVM, put a design together, and forged ahead. Finally, I'm stuck and looking for some help and also a sanity...

Android layout - ImageView focused, but doesn't show anything on screen (no highlight)

If I set my ImageView to be both clickable and focusable, it works, but I have no way to tell which image is focused. What's the best way to get it to draw an orange border around the view so the user knows it's currently in focus? I tried dropping it in a LinearLayout and setting that to be focusable and clickable instead, but didn't ...

set back the focus in GWT

I have four text boxes and one ListBox placed in a FlexTable. I make a request to server to get the list of data to populate the ListBox. When the response comes back, I populate the ListBox. This is stealing focus from the TextBox where I am giving input. What I want is after populating the ListBox, return the focus back to the exact ...

Flash Actionscript 3 SimpleButton doesn't have focusEnabled property?

This is driving me insane. I am working in Flash (not Flex) with Actionscript 3. I have an instance of the class SimpleButton. I have a TextField that I don't want to lose focus when the user clicks my SimpleButton. It is my understanding that both Actionscript 2 as well as the Flex class 'Button' both have a settable/gettable proper...

JTable with a CellEditor containing a JComboBox on a JPanel

Hello, you can reference this question for the initial problem: http://stackoverflow.com/q/3826264 . This table consists of cells that are both editable and not editable. For some reason, clicking on the cell editor that contains the JPanel with the JComboBox after clicking on a non-editable cell does not bring the cell into edit mode....

Splash screen does not return focus to main form.

I everyone. I currently have a problem with my focus when using a splash screen. I am using VS2008, with .NET framework 2.0. Also, I have linked my project with the VisualBasic.dll since I use the ApplicationServices to manage my single instance app and splash screen. Here is a code snippet simplified of what I tried debugging. namespa...

Detecting the clicked links after ajax load in Chrome using $("a:focus")

I have a page which has a list item, and each item has a delete button. Clicking the delete button loads the child page (delete.asp?id=123) in a hidden div. delete.asp has a javascript alert (on document ready) which successfully fires when the button is clicked. It also has $("a:focus").hide(); which removes clicked link. I can't seem...

How can I move the cursor to the end of the text (Delphi)?

Hello! This is my code to fill a TextBox using the SendMessage function: C := 'Hey there'; SendMessage(h1, WM_SETTEXT, 1, Integer(PChar(C))); Now, how can I move the cursor to the end of the text? ...

Android:To set an item as selected when the ListView opens?

Hi, An activity has a Button and a ListView. Initially, only the Button is visible. When the button is pressed, the ListView is displayed. When displayed, is it possible for me to show one particular item as selected/focussed? A use case could be that suppose it is a list of language settings and when the list opens, the currently sel...

Debugging issues : detect where my focus is with jQuery ?

Forcing focus() on an element is easy, but after having debug issues, I realize trying to determine where is my focus gone is a lot harder. thing is I'm generating a modal window using jq.UI, and from time to time, while focus is supposed to be set on first input of the form inckuded in the modal, cursor just disappears, to never show ag...

Losing focus after focusing using jQuery

jQuery('.CommentFormTextarea').focus(function (e) { jQuery(e.target).animate({ height: '7em' }, 300, function () { jQuery(e.target).nextAll('.CommentFormSubmit:first').show(); }); jQuery(e.target).prev('label').hide(); }) .blur(function (e) { if (jQuery(e.target).val().length <= 0) { jQuery(e.t...

Handle key presses using draw2d and swt.

Hi! Every org.eclipse.draw2d.Figure class has addKeyListener() method. But when key presses not every Figure handle it. What kind of figure handles key-events? Thanks. ...

box shadow on an ipad / safari

Hi Guys, I'm having trouble adding the nice shadow on focus for an input box on my ipad for safari. Here's my code /* remember to define focus styles! */ :focus { outline: 0; } input[type=text]{ width: 494px; height: 44px; line-height: 44px; font-size: 24px; border: 2px solid #666666; ...

wpf problem with setting focus

Hi I'm not able to set focus on parent of control. I have a control which is placed on canvas. If I click that control I need to set focus on canvas in order to handle some keyboard events. However despite the fact that I was trying to set focus like that protected override void OnPreviewMouseDown(MouseButtonEventArgs e) { ...

Losing screen object auto-focus

I have a GridView displaying buttons to different screens of my app. When this grid screen, the first cell is selected. Is there a way to programmatically have no cells selected when the screen launches? Or do I have to hide the selector? ...

Stop jQuery autocomplete from focussing the input field after choosen from the dropdown

Hi folks I'm using the jQuery autocomplete plugin from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ When a user selects a result from the dropdown, the input field gets focused. How can I stop the plugin from doing that? I made it work using the tip from this post: http://stackoverflow.com/questions/609362/jquery-aut...

Controls.add -> Controls.clear -> Controls.add automatically set focus the last added control?

I have code like below. When the form is loaded, the textBox2 appears automatically selected and in focus. The calling sequence has to be like below. It would not be reproduced otherwise. Why's that? this.Controls.Add(this.textBox1); this.Controls.Clear(); this.Controls.Add(this.textBox2); The code is just an example of the real ...

jqGrid Focus invalid cell after cell edit?

Hi, I'm trying to validate a celledit with ,editrules: { custom: true ,custom_func: myCustomFunc } But when error message is accepted, focus gone to another cell. How can retain focus on the invalid cell? Thanks in advance :-) ...

WPF ComboBox: how to set focus on it's togglebutton

I'm trying to get a combobox to match a visual design, so its togglebutton has a blue border when the combobox has focus. I can't figure out how to do this and can't find an example. When the combobox gets focus, the textbox inside gets the dashed focus visual. How do I pass the combobox focus state down to the togglebutton, so that it'...