In object-oriented programming languages (such as C++, Lazarus Pascal or Visual Basic), visual objects (or components) can respond to *events* (usually) by the user. An event handler is the block of code that runs when an event occurs. Eg: *Onclick* event for a command button.
Questions tagged [eventhandler]
800 questions
-2
votes
1 answer
Sap ui5 : why attachEvent method doesnt work with "mouseenter" event?
I'm trying to add mouseenter handler to one of the control (PlanningCalendarAppointment).
Thats what i have tried already.
control.attachEvent("mouseenter", function () {
console.log("test"); // Fixed compilation error
});
but it doesnt give…

Michal333
- 65
- 1
- 9
-2
votes
1 answer
Triggering calculation for specific textfield when other textfields change
I'm new to JavaFX and I would like to do the following:
Whenever the value of one of my four textfields is changed, I would like a fifth textfield to calculate the sum of the values from the others. Lets assume the values come already as…

Remo
- 1,112
- 2
- 12
- 25
-2
votes
3 answers
Why is my event handler not always printing out a new random number?
class Run
{
public delegate void PrintRandomEvent();
public static event PrintRandomEvent print;
public void run()
{
while(true)
{
print();
}
}
}
class Print
{
…

bbymintdrop
- 17
- 5
-2
votes
2 answers
Handling javafx events
I have already built an interface with labels, buttons and text fields. I want to atleast handle an event on one button that will print a string or sentence to the console. I don't know how to use the event handler, any piece of relevant code will…

Marvin Nyalik
- 51
- 1
- 3
-2
votes
1 answer
System.Timers.Timer throwing an Exception
I am implementing a code using List<>. Each list has an Class Type item. One of the members of this class is a System.Timer.Timer variable called "TimeOut". The TimeOut.Interval value is 10 and TimeOut.Elapsed Event should be triggered every…

Mohammed Nafie
- 151
- 1
- 10
-2
votes
1 answer
How do i wire up events that is fired on a referenced solution
How can ConnectionManager get expiredRegistrationId that was captured in AndroidPush class?
Am I doing this the wrong way?
Any suggestions on how I may improve my solution?
Is there any pattern I could follow?
Solution : Managers
public class…

Hasta Tamang
- 2,205
- 1
- 18
- 17
-2
votes
1 answer
Can not access datagrid.itemsSource in event handler combobox_selectionChanged?
i am developing a wpf application , in which when the user performs selection changed action on a combobox , selection changed event is triggered, but in the event handler when i update datagrid.itemsSource, error is shown to use a new key word to…

Sabeen
- 53
- 5
-2
votes
1 answer
c# Event handler no overide
I have started a new job, where the last dev left they want a program he started to be finished .
I have got to this problem and have looked at it for half a day.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
logTimer = new…

Briggers123
- 13
- 4
-2
votes
1 answer
How do I access data from one buttonclick_event in the second buttonclick_event
Will I just have to store the data somewhere or can the second buttonclick take advantage of the current state of the program that the first buttonclick has generated? The first buttonclick has generated local variables that the second buttonclick…

Eric Booker
- 1
- 3
-2
votes
1 answer
How to make shape move while button is being pressed JavaFx
I'm trying to get a circle to move to the direction I've defined pixel by pixel while the button is being pressed. So far I've managed to make it move one pixel by each click with this part:
button1.addEventHandler(MouseEvent.MOUSE_PRESSED,
…

Stacker
- 1
-2
votes
2 answers
ActionPerformed & ActionListener & implementing
Getting error on line where HandlerClass implements ActionListener saying "Multiple markers at this line
- Syntax error on tokens, delete these
tokens
- Syntax error, insert '}' to complete Block"
What I've got wrong there ?
import…

Mark Alexa
- 125
- 2
- 9
-2
votes
2 answers
Windows Forms infinite loop exception
I quickly made a Windows Forms project which loads a GUI of different textboxes with float values. Some of them do have already a value initialized. All textboxes have to be updated after one of them is changed.
public Form1()
{
…

Kevin
- 229
- 2
- 10
- 19
-2
votes
6 answers
Create a Windows application that contains two textboxes and two buttons
I messed up my code when I tried to put in the font color yellow. Please help!!
Instructions:
Create a Windows application that contains two textboxes and two buttons. The textboxes should be used to allow the user to input two positive numeric…

Sandra
- 1
- 1
- 3
-2
votes
1 answer
Creating an EventHandler Bukkit
i'm trying to create a @EventHandler, but im not sure where im supposed to put it or create a new file? If you could sample some code. (Im new to this)

Dylan House
- 1
- 1
-3
votes
1 answer
C# Windows Forms CheckedChanged lags behind
I have the following problem with System.Windows.Forms (C#):
I have a CheckBox in my program and I defined an event handler for CheckedChanged. The problem is that when the user clicks the CheckBox, it may happen that it takes several seconds until…

Entwickler582
- 73
- 1
- 7