levo

Graphical User Interface Objects and Events

Button, mouse and keyboard triggers

  • 3 things to know
  • AS Unit 2

Overview

Trigger in an event driven application, three kinds of user action that commonly act as triggers and trigger that does not come from the user.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

Describe the sequence of mouse events raised by one complete click on a button.

Key term

Name three kinds of user action that commonly act as triggers.

Key term

Give two examples of a trigger that does not come from the user.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a trigger in an event driven application?

    Model answer

    A trigger is the user action or system occurrence that causes an event to be raised, such as operating a button or moving the mouse.

  2. 2

    Name three kinds of user action that commonly act as triggers.

    Model answer

    Three common triggers are button presses, mouse clicks and key presses.

  3. 3

    Give two examples of a trigger that does not come from the user.

    Model answer

    A timer reaching its interval raises an event with no user involved, and so does the arrival of data on a network connection.

  4. 4

    Describe the sequence of mouse events raised by one complete click on a button.

    Model answer

    The pointer enters the button, a press event fires as the mouse button goes down, a release event fires as it comes up, and a click event follows.

  5. 5

    Why does a button's click event fire on release rather than on press?

    Model answer

    Firing on release lets the user press the button, move the pointer off it and let go to cancel, so a mis-click is corrected before it acts.

  6. 6

    What is a mouse over or hover event used for?

    Model answer

    A hover event is used to show a tooltip or highlight the control under the pointer, which tells the user what that control will do.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A null is the of one.
absencepresencetype

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Graphical User Interface Objects and Events, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.