I always struggle to keep all these macros straight in my head. Is there an easy way to remember them, and which to use in a given scenario?
Specifically, does one of these allow a dialog to intercept/detect messages to child control windows? e.g Can the dialog register an interest when IDC_MY_CONTROL gets a WM_PAINT message?
...
I have an image for a Squeak Morphic GUI that contains some transparent parts and thus should not accept any mouseevents etc. but just be visible, but it needs to be visible in front of other morphs.
That's why i thought it would be useful to propagate the appearing mouseevents to the underlying morphs. Does anyone know a solution for...
As the title suggests I have a program with a scrollbar interface. The problem is that the program uses the same three scrollbars for four sets of different numbers, once the change has been made to another set of numbers the scrollbar remains on the same values from the previous set of numbers
float RedAmount1 = lightDimmer1.g...
My app has a UITextField inside of a table cell. The table cell is build inside of a TableController class which is the table delegate as well. The TableController is a instance variable of a ViewController class.
What I'm trying to do is to send a message to the ViewController instance when the user touches inside the TextField.
This ...
I have a menu-like drop down container that hides via binding the "mouseleave" event.
<div id="container">
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
The problem I am having is when my container's child elements contain a SELECT object w...
I have an application that borrows code from the Apple event handling sample. It looks like:
InstallEventHandler(GetEventMonitorTarget(), MonitorHandler, GetEventTypeCount(kEvents), kEvents, 0, &sHandler );
GetEventMonitorTarget() is all about getting events for other applications. But from what I've read the event is sort of forked...
Here's the problem:
This is for a WPF app that uses C# and LINQ to SQL.
When a user wants to look at a list of customers, he/she begins entering the name in a textbox. The textchanged event uses the input text to define the where clause of a LINQ statement that filters the list.
I currently have two such text boxes that run essentiall...
Hi,
in my app I have a main form with a button.
Clicking this button, a form (not auto-created in dpr) is created and displayed; on this form, I placed a TApplicationEvents component and I defined its OnIdle event handler.
This event handler doesn't get called! May this depend because I derived this second form not from
TForm but from an...
Hey everyone, I'm a newbie and I have what I anticipate will be a pretty easy question to answer. In order to learn a bit about event handling and drawing, I'm attempting to write a program that draws a black rectangle that increases in length every time the user hits the 'c' key. So far it just draws a black rectangle on a blue backgr...
I gave up on the GUI Builders for Java and now I develop 'em completely in code (not really very hard, with a couple of hours of practice). Now I am tackling event handling.
But I find that when I try to use a class to implement a type of listener, e.g.
private class TextAction implements FocusListener
{
public void focusGained(Focu...
I have created a Java webapplication containing a tobago sheet. I am now trying to override the sorting mechanism of the sheet by using the sortActionListener attribute.
When I click on a column my sorting method is started. I can read out the column name and do some SQL stuff to get the data I would like to display now. The sorting is...
If the application I'm working on, is there any way to tell when users press the Logout button?
...
Dear All,
when ever i have make any changes in html elements which have an resize event, that resize event is not working after made any changes in element. i have post same query previously for some another issues that also not solved? can any buddy help me out please
i am using jquery for resizing the elements.
thanks in advance
...
I want to set an event handler only if this is not set:
If GetHandlers(MyWindow.Closed, AddressOf MyWindow_Closed).Length = 0 Then
AddHandler MyWindow.Closed, AddressOf MyWindow_Closed
EndIf
...
This works:
XAML:
<Window x:Class="Test239992.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<StackPanel>
<TextBlock Tag="1" Text="Customers" MouseDown="Handle_Click"/>
<TextBlock ...
I have a form in which I want to periodically refresh its values(mostly labels but 2 comboboxes and 1 spinboxe). I have done this before with a QThread but this time I would like to do it with a QTimer. Would that be ok or would it potentially create problems like freezing the GUI. There are a couple of fields in the form that are bo...
Hi !
1.st part of the quesion:
What is the difference between these 2 event registrations ?
_popUp.AddHandler(PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(PopUp_PreviewMouseLeftButtonDown));
_popUp.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(_popUp_PreviewMouseLeftButtonDown);
2.nd part of the question:...
Hi,
When I create buttons in c#, it creates private void button?_click(object sender,EventArgs e) method as well.
How do I call button1_click method from button2_click? Is it possible?
I am working with windows forms.
...
I have a GridView with dynamically created image buttons that should fire command events when clicked. The event handling basically works, except for the very first time a button is clicked. Then, the postback is processed, but the event is not fired.
I have tried to debug this, and it seems to me, that the code executed before and afte...
I am using jquery's datepicker where a list of items is populated from an ajax call whenever a date is picked from an inline datepicker object. The script works perfect except that I can't trigger an onSelect event to populate my initial list of items.
I could get around this problem by just populating the list initially using php but I...