Lecture one
Peter Obiria
, Window-based programming
• Most modern desktop systems are window-based.
What location do I use to set this pixel?
Non-window based environment Window based environment
, Event-based Programming
• Window-based GUI’s are typically
comprised of many independent
processes.
• These processes sit and wait for the
user to do something, to which it can
respond.
• Moreover, a simple application may be
waiting for any of a number of things.
, Programming forms
Procedural programming
code is executed in sequential order. statement 1
statement 2
statement 3
--------
--------
Event-driven programming statement n
code is executed upon activation of events.
method 1
method 2 Do
Do method 3 method 2
then
method 1
then
-------- method 1
method 3 -------- then
method 3
method n