Interaction Models II
Today
Event-based Interactions
Windowing Systems are …
Widgets
Root Windows
Window System Support for Widgets
Role of Window Manager
Callbacks
How the Window System Dispatches the Events
Event Dispatching
Running GUI Applications over the Network
Examples using Tcl/TK
Create, display, and destroy a window containing a label
Create a row of buttons, each with a different kind of border relief
Create a top-level window, make some frames, insert a label and an entry form
Add two buttons and do the layout(the commands attribute is the callback function)
Place the mouse focus in the entry label. Force the user to attend to the dialog box before doing anything else
Tell the system to print the name if the user enters one and presses Ok. Otherwise don’t print anything.
Add Keyboard Shortcuts
Using the Canvas
Question
Five Primary Interaction Styles(Shneiderman 98)
Direct Manipulation
Menu Selection
Menus
Form Fillin
Command Language
Natural Language
Questions
Summary
Email: hearst@sims.berkeley.edu
Download presentation source