lost-focus

Problem with WPF data binding and Access Keys

Please consider the following example. Note that in the real-word, the binding source will likely be a data object. I'm using a TextBlock for simplicity. <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height=...

Determine Where Activation Is Going When A Form Is Deactivated

Does anyone know of a way to determine which window is going to receive focus when a form is deactivated? ...

Bring form on top of others when clicked on taskbar button in Delphi.

Base question: http://stackoverflow.com/questions/1141544/tstatusbar-flickers-when-calling-update-procedure-ways-to-painlessly-fix-this The executed code is in the questions first posts first part ( you can see light grey separating line ) ... But - problem is that while this code is executed, form does not automatically activate and ...

ASP.NET TextBox LostFocus event

I need to trigger code on the server side to be called when a TextBox loses focus. I know there is the onblur client side event, and that there is no LostFocus event, so how can I cause a postback to occur when my TextBox loses focus? Update: I have found a blog which seems to give a pretty decent solution to this. It involves adding...

WPF: LostFocus event on a particular control/view/viewmodel

I'm working in WPF using the MVVM pattern, and generally things seem to be working pretty well, as I wrap my brain around the nuances of both WPF and MVVM. However, I'm currently stuck on a particular issue. My actual application is fairly complex, so to simplify, let's take Josh Smith's near-defining article on the pattern and use the...

In Qt4 is there a way to know from inside a widget if the focus has been lost ?

Hi, I am trying to design a couple of simple widgets in order to get a better knowledge of Qt 4. (This is my first attempt at desktop programming - coming from a background of web development) One of these widgets is formed from a label, and a tool window which pops up when the label is clicked. My question is related to a method for ...

Popups in WPF immediately lose focus and close

Hello, I've been beating my head against a WPF Popup issue, and am hoping someone can help me:) The outline goes like this: Our app stores a list of UIObjects - these represent elements that are displayed in a viewport 3d (via a member UIRenderObject, which is just a flat, square mesh with a bitmap on it) and in a treeview (via a membe...

how do i make that dang wpf popup go away?

when i use a popup, it seems to hang around. in the code below i attach a popup to a textBox using by overriding the control template, and make the popup appear when the TextBox has focus. When you tab to the next on screen element the popup goes away, but if you just alt-tab to a different application the popup stays there in the foregr...

jquery: LI w/ input inside, how to hide LI when focus leaves the LI and it's children completely.

I have a UL with an LI inside of it, when i click on the UL, the LI inside of it fades in. The Li has an input inside of it (search form), next to it i have a select input to select the section of the website you want to search.(both inside of the LI) I'm trying to get it so that when focus leaves the LI and everything inside of it(sel...

WinForms Web Browser control forcing refocus?

I'm trying to automate a web process where I need to click a button repeatedly. When my code "clicks" that button (an HtmlElement obtained from the WebBrowser control I have on my form) then it brings focus back to my application, more specifically the WebBrowser control. I wish to better automate this process so that the user can do oth...

C#/.NET: TextBox is not 'focused' after a process was initiated

Hi, I am having a problem after opening the notepad once I click the button "btnSearch". The idea is that once I clicked the button 'btnSearch', the textbox 'txtSearch' should be 'focused' even after a process was initiated/opened outside the main window. Here's my code: private void btnSearch_Click(object sender, RoutedEventArg...

How to re-focus to a text field when focus is lost on a HTML form?

There is only one text field on a HTML form. Users input some text, press Enter, submit the form, and the form is reloaded. The main use is barcode reading. I use the following code to set the focus to the text field: <script language="javascript"> <!-- document.getElementById("#{id}").focus() //--> </script> It w...

SWT: Proper handling of Lost/Gained Focus in Custom Controls

Hello Experts Our Control I have a Custom SWT implementation of a Combobox/DropDownList. This is implemented as a Composite containing a Text and a Button. When the list is showed, we use a List control that is placed on top of everything and positioned at the Text and Button. This works as expected. The Problem But we are having issu...

WPF: Putting focus back on textbox recursively calling Lost focus event.How to solve ?

I have a WPF form where a text box and label is present.In the "Lost Focus" event of text box, i am doing some validation and if the validation fails i will show an error message in the label and put focus back on the textbox. The problem is since i put the focus back on the text bos,the "Lost_Focus event s again fired and my validation ...

Ignoring focusLost(), SWT.Verify, or other SWT listeners in Java code.

Outside of the actual SWT listener, is there any way to ignore a listener via code? For example, I have a java program that implements SWT Text Widgets, and the widgets have: SWT.Verify listeners to filter out unwanted text input. ModifyListeners to wait for the correct number of valid input characters and automatically set focus (u...

How to correctly handle Android EditText input inside a ListView?

In my application I have an activity to add/remove/edit records inside a SortedMap. The activity is implemented as an extension of ListActivity. I have implemented custom ArrayAdapter for the collection items. Every ListView item (which corresponds to an underlying record) consists of TextViews, EditTexts, and a Button to delete the rec...