Download
graphical user interfaces n.
Skip this Video
Loading SlideShow in 5 Seconds..
Graphical User Interfaces PowerPoint Presentation
Download Presentation
Graphical User Interfaces

Graphical User Interfaces

204 Vues Download Presentation
Télécharger la présentation

Graphical User Interfaces

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Graphical User Interfaces Chapters 14-15 Dr. Abraham

  2. Windows Forms • Dialog • MDI (window multiple document Interface) Window • Controls and components are placed on the form. • Toolbox allows you to choose controls and components • A forms a container that holds the controls and components

  3. Event handling • Events drives the program to perform a task • Click • Change • Time • Event handler is what you write

  4. Visual studio generated code • Can give great insight into what is going on • See what is in the Designer.cs • It will have all controls and components you placed there. • Delegates and Event-Handling Mechanism • Event handlers are connected to a control’s events through objects called delegates. • Delegate object holds a reference to a method with a signature that is specified by the delates type’s declaration.

  5. Creating event handlers • Double click on a control and write code • Known as default event • You can use the properties window to create event handlers • Click on the events (looks like the lightning) in the properties window.

  6. Mouse handling • Show program

  7. Keyboard events • Show program

  8. Menus • Covered in class with program assignment • Choosing colors, calendar,etc. • Combobox – already coverd • Tab control – already covered

  9. Visual ineritance • Base form • Child form