I'm using the following code to make my form entirely transparent so that clicks can go "through" it to other windows.
SetWindowPos( handle, HWND_TOPMOST, 0, 0, 0,0,
SWP_NOSIZE or SWP_NOMOVE );
SetWindowLong(form1.handle,GWL_EXSTYLE,WS_EX_TOPMOST or WS_EX_LAYERED);
SetLayeredWindowAttributes(form1.handle,RGB(0,0,0),2...
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...
I was wondering if it is possible to receive key input to a form that is out of focus. For example, I have my C# form to be top-most of all windows; I want to get all the keys I type on other applications like for example browser to kinda get a history of all the keys I typed while my computer was on.?
Is there a way to do this?
...
Hi, I'm testing TagDragon jQuery plugin, it's exactly what I need, but is has one annoying "feature", when I click the scrollbar in the suggestion list, it hides it's results. On the other hand jQuery autocomplete plugin doesn't lose the focus on the input field and that's why it doesn't hide its results. But that plugin doesn't provide ...
I have written an advanced text editor component (fixed-width, syntax highlighting, etc.) in Delphi, using Windows API combined with the TCanvas element, and it works great, except for one thing: If I set focus to another control inside the same application that displays a caret as well, such as a TEdit, stealing focus from my editor com...
Looking for some assistance with my jQuery code.
I am creating a modal box, using the simplemodal plugin
I am managing to create a modal box on the click of an element, which contains a form....I would like the form to have focus on the textarea field when it appears, but am unsure of how to achieve this..
Here is my current code..
...
I found that I can set a tooltip on a QLineEdit as such:
equation = new QLineEdit();
equation->setToolTip("Example: a*b+c+~c");
However, I would like the tooltip to be displayed when that QLineEdit is focused.
How do I do that?
Thanks in advance.
...
I am trying to use the focusout(http://api.jquery.com/focusout/) function in jQuery, to perform a function after the user focus away from an input form field, but it's not working.
Here is my code:
$("#employee_id").focusout(function(){
var employeeId = $("#employee_id").val();
if(employeeId == '') {
$("#employee_id").after('<d...
I have a Windows Forms application in C# .NET. It contains a user-drawn control that also handles the keyboard focus. If a part of the control has the focus, a focus highlight border is painted around it. When the form that contains the control is deactivated, the focus border must disappear from the control, obviously. But the control d...
I have a Java JApplet embedded in a web page.
The JApplet window contains a single instance of a class that extends JPanel - same size as the JApplet.
The applet can spawn pop-up windows (JFrames) when the user clicks a button that's in the panel.
Every time I click on a button to pop-up a window, my applet flickers as it repaints. It ...
I'm trying to get a UserControl to tab properly and am baffled. The logical tree looks like this.
|-Window
-Grid
-TabControl
-TabItem
-StackPanel
-MyUserControl
|-StackPanel
-GroupBox
-Grid
-ComboBox
-Textbox1
...
I am creating a custom JDialog. I need to hide the JDialog (without removing it from memory) so that its parent can call a method on the JDialog (getResults()).
JDialog dialog = new JDialog(.....);
///Code WITHIN JDialog:
{
//JDialog opens and its actions are performed
this.setVisible(false); //Does this allow the parent to gain focu...
I've got a WPF window where I have a column of buttons on the left side. On the right side I am show/hiding UserControls as the left hand buttons are clicked.
I have created the UserControls once and then just switch between them with the buttons. As I switch I would like to retain the keyboard focus where it was when that UserControl w...
Ok, I'm trying to use the FaceBox() plugin for jQuery along with the jQuery UI datepicker().
I've got it to bind to the lightbox'd inputs on the first appearance of the lightbox, but it's not working afterwards.
I'm doing the following:
$(function() {
$('.jQueryCalendar').live('click', function () {
$(this).datepicker...
Hi,
I'd like to implement a ListView that will have a list of SelectedItems as it has now,
but it will also have a separate item that is under cursor (movable with mouse/keyboard).
Item selecting will be done with special action (for example the space key).
In other words, I'd like to suppress selection on the ListView and only change...
Hi all,
I try to explain my problem, because I really need your help.
I have a <div contenteditable=true> where I define by a WYSIWYG some elements. For example <p>,<h1>, etc. I would like to put directly the focus on one of this elements.
For example on <p id="p_test">. But it seems that focus() function doesn't work on <div> eleme...
hey in my screen there is a an edit field and 2 custom button fields as "OK" and "CANCEL"
Below buttonfield there are some more focussable label fields
when i write a name in edit field and press enter then focus comes to "OK" button but how to set focus on "CANCEL" button.
Moreover while scrolling the focus does not automatically mov...
*Nevermind. I figured it out. *
I did it like this:
$("#accordion").accordion({
header:'h3',
active: '#section1',
autoheight: false,
clearstyle: true,
}).bind("change.ui-accordion", function(event,ui) {
$("#text1").focus();
});
I've got an accordion all set up, and each div has a form within it. ...
Hi,
I am trying to open the combobox popup when it is focused using Style/Event Trigger
I used the following code in my Combobox control Template:
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
<Grid >
<ToggleButton Grid.Column="2" Template="{DynamicResource ComboBoxToggleButton}" x:Name="...
I have a very small form where a user can enter their zip code into an input field and either hit enter, or click the submit button to submit their zip code to our database which returns search results to the page. Everything works fine using the Enter key. Things don't work so well when the user clicks on the Submit button...
The rea...