Preview

Event driven Programs Key Features - P1

Satisfactory Essays
Open Document
Open Document
280 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Event driven Programs Key Features - P1
Unit 14 - P1 – Event Driven Programming
Event driven Programs Key Features
Event driven programming is a programming in which the control flow of the programme is determined through events such as: Mouse clicks, key presses and timers. Some examples of this are: Visual Basic and Python.
Event driven programs are based around Event Handlers. Event handling means that the object name plus event name must be entered for the object to function. Some examples of this are: buttons and labels in visual basic.
Most event driven programs are time driven meaning that the code execution works accordingly with the computer clock.
A graphical user interface also plays a major part in event driven programs as a lot of event driven programs contain various controls each with its own events that enable the user to communicate and interact with the program.
All event driven programs use trigger functions to respond to events triggered by the user via mouse or keyboard. Each object has its own trigger functions that take place depending on the event assigned to it. Trigger functions can enable the user to change text or even change the colour of the programs or possibly open up a different form. Time triggers can also be set that work based on certain durations.
Additionally, event driven programs have even loops not all programmers take notice of this, event loops continuously tests the program to see if any thing has happened e.g. clicking on a button, typing into a textbox or pressing a key. When an event is detected, it’s passed on to the trigger function which than finds the right event handler to process the code.
*http://www.slideshare.net/nicky_walters/event-driventheory

You May Also Find These Documents Helpful

  • Powerful Essays

    Microsoft visual Basic 6.0 is a third-Generation event-driven programming language and integrated (IDE) from Microsoft for its COM programming model first released in 1991.…

    • 1214 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Events: A mechanism for communication between objects. Used in building loosely coupled applications and helps extending applications.…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Describe what an event is and how events and graphical user interfaces (GUI) are related.…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This is event-driven because you are enable to save a document or file if you don’t click the save button. For example, if you create a presentation using Microsoft PowerPoint and you don’t click save, the file will be completely lost and you would have to start again, whereas if you click on the save button, which is normally at the top, the file will be saved on your computer at the destination you saved it at. This means you can open that same file and the presentation will be there with all you work on it. This is event-driven because you are clicking save and the Windows operating system will respond by saving your…

    • 342 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    A compiler translates one computer language into another. It also pics up errors in the program being put together.…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Cis 210 Research Paper

    • 1323 Words
    • 6 Pages

    * The use case should include a graphical representation using Visio or equivalent software and a text description of the events.…

    • 1323 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    PRG 421 Week 1

    • 423 Words
    • 3 Pages

    What is an event? How are events and graphical user interfaces (GUIs) related? Provide an example of an event and relate it to a GUI.…

    • 423 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Unit 16 Ao1

    • 529 Words
    • 3 Pages

    Every program is made up of sets of algorithms. These are the individual chunks of code which each carry out a process. When the algorithms are combined the whole game is formed. A common algorithm in games creation is a game loop. This is code which controls the actions that are carried out when there is no input from the user. Ordinary programs like a word processor will not do anything when there is no user input; they will just wait for the next command, but a game must keep running constantly, therefore a game loop runs constantly in the background of a game and is established when there is a pause in the input. This could just be to keep the environment active, such as a waterfall that keeps flowing; some involve the character making a reminder movement to the user.…

    • 529 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Their main features will be the process carried out, for example if you wanted to save a file;…

    • 1346 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    o Explain some of the graphical user interfaces (GUIs) and communications messages that occur during the operation of a microwave.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    3. You are programming a modal dialog box (which is a form of pre-emptive dialog) in a notification-based programming paradigm. This…

    • 1508 Words
    • 7 Pages
    Good Essays
  • Good Essays

    The program is a graphical interface environment, which comes in many different types of programs in many different languages. The graphical interface environment allows…

    • 542 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IT Level 3

    • 1133 Words
    • 6 Pages

    These events include user input events in user interfaces, these can be resolute by events that you apply such as mouse click, messages from programs. Event driven programming is the example used in the interfaces e.g. could be JavaScript these actions have a response to the user input.…

    • 1133 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    References: Allen, J., O 'toole, W., Harris, R. & McDonnell, I., 2008. An overview of the event field. Milton: John Wiley & Sons Australia, Ltd.…

    • 1058 Words
    • 5 Pages
    Good Essays