Can get this to work:
$(document).ready(function(){
$('a#reason').click(function(){
$('div#reasonEntry').toggle();
setTimeout($('#reasonForChange').focus(),10);
return false;
})
});
But can't get it to work when using show('slow');
...
I have a small application that updates the contents of a JFrame very quickly (many times per second) and on each update (I remove a component and then add a new one, then set visibility true again) the JFrame flashes on the Taskbar (WinXp) to request focus. It's very annoying and I'm sure it can be disabled. I just cant find out where.
...
I have an OSX cocoa app that is called from my java like so:
String cmd = "/Users/mike/ASJPictureTaker.app/Contents/MacOS/ASJPictureTaker";
Runtime run = Runtime.getRuntime();
Process pr;
pr = run.exec(cmd);
pr.waitFor();
The ASJPictureTaker app loads and works fine but when the exec is called it does not take focu...
Hi,
I have a WPF UserControl (B) as a child of another UserControl (A). I have a situation where in some instances B requests focus but A actually gets the focus. Does anyone have any idea why this might be happening?
Code in B to get the focus:
log.Debug("Asked for focus.");
//We expect the user to do a button press and therefore ne...
I need to make a Panel focusable in WPF, so that it captures keyboard events just as any other focusable control:
The user clicks inside the Panel to give it focus
any KeyDown or KeyUp event is raised at panel level
if another focusable element outside the panel is clicked, the panel loses focus
I experimented FocusManager.IsFocusSco...
Hey there,
When I drag a file from the desktop to the browser, and I keep the browser in focus (Safari or FireFox for now), I know everything works right (dragging, having the app respond, etc.). I am also able to un-focus the browser, by clicking on my desktop for example (keeping the browser in view), and when I drag the file to the ...
I've built several user controls in WPF and they all get added to a canvas. I want to add a behaviour that keep tracks of the currently selected usercontrol. A usercontrol should be selected when:
The mouse clicks on it;
when it recieve focus;
when either of the two above happens to a subcontrol of the usercontrol.
Is there any way t...
Hi,
I'm getting some strange behaviour in the start-up of a Windows app and wondered if anyone could throw any light on what is happening and how to get around it.
The problem is with the start-up of the app - it should show a splash screen then a login form. The code for this is:
[STAThread]
static void Main()
{
A...
I'm trying to launch a popup window from a Javascript function and ensure it has focus using the following call:
window.open(popupUrl, popupName, "...").focus();
It works in every other browser, but IE8 leaves the new window in the background with the flashing orange taskbar notification. Apparently this is a feature of IE8:
http://ms...
I have a UserControl that incorporates a textbox. I want to set the keyboardfocus to this textbox programmatically when the user clicks a button.
I tried this:
private void Button_Click(object sender,EventArgs e)
{
Keyboard.Focus(MyUserControl);
}
no luck. Then I exposed the Textbox in the UserControl though a property of type TextB...
I have set a focus event on an input element. When there is a focus, jQuery searches for a div and displays it. That works. Wit the blur event on the same input element I make the div hide, which also works. But when I click on a link or want to select text in the shown div, it immediately disappears because of the blur event. How can i ...
I'm trying to create a custom UserControl that will mimic auto-complete as it works within Intellisense using WPF. I'm using a TextBox and a Popup containing a ListBox within my control.
I want to be able to keep keyboard focus set on the TextBox irrespective of whether or not the auto-completion popup is open so that a user can contin...
Hi,
I want to duplicate the behaviour of tool windows in OpenOfice. When the application loses focus, the tool windows (if they are not docked) are hidden.
So, I have a main window, and another utility window (win_dock). I want to hide win_dock when all the windows of the application loses focus and show it again if a window gain focus...
Hello,
I'm creating a custom UserControl to be used inside a DataGrid editing template.
It looks like this:
<UserControl
x:Class="HR.Controls.UserPicker"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:tk="http://schemas.microsoft.com/wpf/2008/toolkit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/...
Hi,
I am writing a simple calculator application(using absolute layout with 3 edit boxes and some buttons), which has two inputtext boxes and a output box.
input1 = (EditText) findViewById(R.id.input1);
input2 = (EditText) findViewById(R.id.input2);
now once user enters some numerics into input1 and presses '+', now i want to shift...
I have a checkbox control, and when it's clicked, the focus of the page changes to the top--the window scrolls to the top of the page.
Nowhere in the code am I specifying a change in focus, either in JavaScript on codebehind.
What could be causing this?
...
I'm trying to write an event handler that fires every time a node in a TreeView gets the focus. The problem I'm running into is that the event handler fires on the TreeViewItem (node) that I click on with the mouse, and then it continues to bubble up the control tree, even though I've set e.Handled = true on the RoutedEventArgs provided...
I am not fully sure about this, but I seem to be observing cases where focus shifts automatically from one control to another, even after I explicitly programmatically set the focus to control that I want to have focused. Maybe it has to do with the control in question being a panel, and it seems that WinForms is happier to have a textbo...
This is the code I have:
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtInsertComments" CssClass="expanding" runat="server" AutoPostBack="false" TextMode="MultiLine"></asp:TextBox>
</div>
<div id="commands">
<table cellpadding="0" cellspacing="0" width="400px" id="tblCommands">
...
For example, I want to make two textboxes have the same style when either is focused:
<div class="divTxt">
<input type="text" id="a" class="a" />
<input type="text" id="b" class="b" />
</div>
and the css would be:
.a:focus
{
background-color:Blue;
}
.b:focus
{
background-color:Yellow;
}
What I need is make a's bac...