P1 – Explain the features of event driven programs.
Introduction: In this task, I will explain all the important features of event driven
programme which are event handlers, trigger function, event e.g. mouse, keyboard, HTML
object, user interface, event loop etc. Event driven programming is an application which can
be controlled by the computer users and it’s a list of event. It can be used for GUI (Graphical
User Interface) and mostly used for different kind of programming. You need different kind
of features in event driven program in order to run the software's.
Event Handler: Event handler is an application which processes a lot of different activity
such as keyboard buttons and mouse operations. There are lots of different examples of
mouse movement such as dragging the “Radio Button” from the toolbox into the “form Box”.
Similarly there is an example of keyboard performs such as typing numbers or words and
also use tools that allows you to type on it.
Trigger function: Trigger is a function in every event programming language. It is used to
choose the event handler that which event you like to run in your programme. Every object in
an event driven programme has own dimension of trigger function. Most of the object in a
programming use one trigger function with only one possible event to run it. There are lots of
different event driven programming area such as VB.Net which include the toolbox in an
application displaying the various objects and it also allow the users to add them onto form.
Service oriented: In an event driven programming, service oriented is a main aspect which
takes only limited computer power capability/power and it helps your computer to not to get
slow down. It performs in the background of your operating system. The main purpose of this
service is to make computer users attentive. There are lot of different programme application
which uses service oriented facility in order to reuse the code fundamental of various apps. It
also removed the service application from a programme network which are using this
application to support their own programme. There are lots of different examples of service
oriented such as when you plug in an USB flash drive or any other external drive, a service is
start performs through the OS to install the important driver so that you can use this external
drive into your computer system and it only performs this way once.
Time driven: In an event driven programming, time driven performs in a limited time on a
timely basis. You can select the time like one hour, one day and so on. It's a pre-set to
achieve a function done on a time trigger. Code execution can be composed through your
computer system clock. An application is split into different action in order to switch on the
programme routinely. Example of time driven is when your computer anti-virus scan the
whole or some files of computer system automatically once in a day, week or month etc.
Events: In programming, events is an application which performs on a user’s instruction.
Every event can be old by the programme. There are lots of event which can produce event
handlers to operate. There are lots of event examples in a computer system such as mouse,
keyboard, HTML object and user interface etc. An example of a mouse event can be double
click, right/left click and moving the mouse arrow. Similarly, keyboard event carry key up/
Page 2
, Unit 14- Event driven programming. P1/M1/D1
down, key press and typing. Another event example is HTML object which allows the user to
clicking on an object and then connected with the webpage link.
Form: In event driven programming language, Form are a most important characteristics
which users can see when they run any programme. A form is an object which holds the
various programming control so that a user will be able to connect lots of programme in
various ways. There are a lot of control and a selection of event that can be used in through
the applications. Examplesof form events are load and activated. Load is an event of a form
which appears when a user use a form object in an event driven programme. This event is
functional for different coding which requires placing variables and values. Another form of
event is activating which develop all the time whenever a form collects the focus. This event
is applicable for updating a form. It also helps the user to return back to form from one form
to another.
User Interface: User interface is an event based on everything in a computer system which a
user does it with Graphical User Interface operating system. It is very crucial because users
will be able to see their activity and efficiently connect with different functions. A user
interface has to be clear. It also allows you to control the software's applications.
Event Loops: In event driven programming language, event loop is a programme which
collects events and process them into computer system to run the programme efficiently. The
purpose of an event loop is to remain checking the user interface so that it can notice if
anything happened such as the typing in a text form. If anything notify at the same time as
event is processing then it will process all the information the trigger task and it will all the
appropriate any event handler to perform a task in a programme. It searches for an event in an
application.
Flexibility: Flexibility is one of the biggest benefit in an event driven programming because
it allows the user to take control over the certain programme in order to place a code and how
to start it. Object can choose an event in order to run a programme. It also shows you the user
activity on a programme whenever user performs in an event programme. It also give you the
good control over the programme and applications. An example of a flexibility is a text box
where you can write text in programming. It's a wide area of application which can be built to
execute various function.
Suitability for graphical interfaces:In an event driven programme, it is very acceptable to
use a graphical user interface because they both are linked together in a way because of a
variety of event programme. There are a lot of event command which are compatible running
with graphical user interface. A graphical user interface shows a lot of different options
which can be performed by using the mouse and keyboard. A user have a variation of control
which a user can get it through the approach of graphical user interface. Each control acts to
event by using the code which is acceptable for each and every even in a programming
language.
Simplicity for programming: It is very simple to write a programme in an event driven
programming language. A user can simply select a button and place it onto a form box from a
Page 3
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller John1998. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $5.79. You're not tied to anything after your purchase.