Questions tagged [focusmanager]

63 questions
2
votes
2 answers

How to set keyboard focus to a textbox inside a user control in WPF?

When I open the window MyWindow, I want to have the cursor of my keyboard pointing to the textbox contained in a user control that is contained in the window. Usually, you would set FocusManager.FocusedElement={Binding…
Larry
  • 27
  • 2
2
votes
1 answer

ExtJS 4: Problem using text input in a Toolbar (focusmanager i think)

I've been looking everywhere, but I can't find an answer to my problem maybe someone out here can help me. I have a panel with a toolbar The toolbar has 3 items (Button, Textfield, Button) This works fine, I can press buttons, I can't write, edit,…
figus
  • 307
  • 2
  • 15
2
votes
2 answers

WPF FocusNavigationDirection, MoveFocus and Arrow keys

I have a simple application (a grid with 6 buttons - 2 rows of 3 - on it for testing) and am handling left and right arrow keys as follows private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { FocusNavigationDirection…
Martin Smith
  • 213
  • 3
  • 10
2
votes
1 answer

WPF FocusManager interferring with focus

I have a grid, and in the grid I am setting my first element to be focused: When the window opens, the correct control is focused. But if I tab through the whole form, when…
SetiSeeker
  • 6,482
  • 9
  • 42
  • 64
2
votes
1 answer

Using Tab Focus Manager In A Title Window Flex

I'm struggling to get around an error that is constantly thrown in my application when I press the tab key. I have a modal dialog box that contains a form with 3 form items. Whenever I press the tab button flex throws an error saying…
dubbeat
  • 7,706
  • 18
  • 70
  • 122
2
votes
3 answers

How to create multiple tab loops in AS3 by using fl.managers.FocusManager?

I want to create a tab-enabled popup window in an AS3 Air project. Currently, when I press tab several times, the focus goes through all the components in my popup window and then starts focusing the buttons and TextFields from the components that…
stralsi
  • 988
  • 1
  • 10
  • 17
2
votes
2 answers

Instable focus of WPF apps

If I have problems with WPF, then it always concerns the Focus-Management. There are cases, my App loses totally focus so that another application gains the focus and my app goes in the background. This happens mainly if some windows in my app will…
HCL
  • 36,053
  • 27
  • 163
  • 213
2
votes
1 answer

Focus navigation in keyBinding

In my form, when i press ENTER button in my keyboard, the okAction() method should be invoke (and invoke perfectly). My problem is in focus state, When i fill the text fields and then press the ENTER button, the okAction() didn't invoked, because…
Sajad
  • 2,273
  • 11
  • 49
  • 92
2
votes
1 answer

Starting my app when USB device connected

I need to starting my app when our USB device connected. My first attempt at this is a background application that pays attention to when USB devices are plugged in. When it notices our device connected, it calls ShellExecute( ) and starts our…
X-Ray
  • 2,816
  • 1
  • 37
  • 66
2
votes
1 answer

How to remove focus from control when window does not have focus?(otherwise it will be restored when window gains focus again)

I need to remove focus from TextInput while Adobe Air window does not have focus. But I can't find normal way to do this. Here is a sample app:
user1875642
  • 1,303
  • 9
  • 18
2
votes
2 answers

Change Dynamically FocusManager.FocusedElement

I have WPF xaml code like below:
oliver
  • 362
  • 2
  • 5
  • 13
2
votes
1 answer

JTable not losing focus on ENTER and TAB

table.changeSelection(table.getRowCount()-1, 3, false, false); after setting the cell selection like above, the cell is selected and if i enter the value in to the cell, the cell goes to editing mode. But, after the value is entered, if i press…
Sanjeev
  • 397
  • 1
  • 8
  • 20
2
votes
0 answers

MainWindow steals Keyboard focus from floating windows when clicked

I have some problems with focus on WPF. Even though focus is a common problem I couldn't find a solution that works for my problem. Here is the situation: I have an Editor Software where I can drag documents floating (like in Visual studio). The…
m00ni
  • 113
  • 1
  • 8
1
vote
1 answer

Can't make WPF pass focus from a child control of UserControl

I've defined a UserControl called TouchTextBox. I've gotten the TouchTextBox to give focus to the TextBox when it receives focus. Now I need the TouchTextBox to give up focus when the user clicks in another control or when they press tab. Here's…
Tony Vitabile
  • 8,298
  • 15
  • 67
  • 123
1
vote
1 answer

cycle focus issue -

I'm rewrite default template of ListBoxItems & ListBox. Here MainWindow.xaml
stukselbax
  • 5,855
  • 3
  • 32
  • 54