Tagged Questions
Event-driven programming refers to the programming technique where the flow of the program is driven by recognition and handling of events such as mouse clicks, key presses, etc.
0
votes
0answers
11 views
Listening For and Raising Events in the BLL
I'm working on a WinForms .Net Recording App and I have a RecordingMgr in my BLL to listen for new events captured by another class. I want to display the events in my UI and I'm stuck as to what's ...
2
votes
2answers
38 views
Attaching Events to Document Better Than Attaching Them to Elements?
While bouncing around StackOverflow, I've noticed a number of people attaching events (notably click events) to the document as opposed to the elements themselves.
Example:
Given this:
<button ...
9
votes
5answers
328 views
Is an event loop just a for/while loop with optimized polling?
I'm trying to understand what an event loop is. Often the explanation is that in the event loop, you do something until you're notified that an event occurred. You than handle the event and continue ...
-1
votes
0answers
30 views
Dynamic div loaded only after second click [migrated]
I've got an element in the DOM that's draggable and when it's clicked, I want to grab the x/y coordinates (not shown in this example, but for the future) and the height of tooltip that fades in. The ...
0
votes
3answers
134 views
Is it okay to call functions when event occurs, or after that?
So I was not sure how to structure this title, feel free to edit it.
My question is:
When I have a Game Loop, I have 3 main blocks. Handle Events, Update game state, and draw.
Let's say for example I ...
-5
votes
0answers
29 views
Making FB API sending invitation automatically [on hold]
I'd like to know if a Facebook API can manage automatically sending invitation ?
Or if it inevitably needs a user action. If it needs a user action, is it possible to automate and simplify it ?
...
0
votes
1answer
105 views
+500
How to cross-reference many character encodings with ASCII OR UTFx?
I'm working with a binary structure, the goal of which is to index the significance of specific bits for any character encoding so that we may trigger events while doing specific checks against the ...
0
votes
1answer
72 views
How QT Framework handles Events Coming from OS?
When we call QApplication::exec() at the end of our main() function, the application enters Qt's event loop. Conceptually, the event loop looks like this:
while (!exit_was_called) {
while ...
-5
votes
5answers
208 views
Can PHP handle mouse events? [closed]
I'm a newbie in php and i want to know if php can handle mouse events such as upon mouseCicked, mouseDoubleClicked, mouseMoved, mouseHovered etc..
And can events like button click , like displaying ...
2
votes
2answers
236 views
Am I doing events right?
My problem is with JavaScript in the browser but I guess it could apply to any event-driven environment.
I have coded up a widget in my app. The widget allows a user to select an item using 3 ...
3
votes
1answer
91 views
Assessing Relative Maintainability
We (a contractor, actually) are implementing an off the shelf system to replace a legacy homegrown system for the core domain of the company (designing widgets). Unfortunately both systems will have ...
0
votes
0answers
96 views
Push-Based Events in a Services Oriented Architecture
I have come to a point, in building a services oriented architecture (on top of Thrift), that I need to expose events and allow listeners.
My initial thought was, "create an EventService" to handle ...
7
votes
2answers
176 views
How to detect achievements in gaming?
I mistakenly posted this to stackoverflow and now posting here based on a suggestion in on that site ...
This is a very high level conceptual question. Say in a software application I have 4 ...
-2
votes
3answers
222 views
Do all programs run in a loop? [closed]
I was wondering whether all programs run in a Loop, checking for variable changes then acting upon said changes followed by another Loop. Or do they run in a While statement, waiting for a variable to ...
1
vote
2answers
121 views
Where is interface between button click and event raising defined
When I click on button, might be in windows apps, web apps, etc it has some animation to actually see it clicked and event is raised in background. I've knowledge of events and its attaching to button ...