1 / 9

CECS 5020 Computers in Education

CECS 5020 Computers in Education. Forms and Menus. Types of Forms. Single Document Interface One document at a time Multiple Document Interface More than one document at a time “Child” forms on the MDI form are constrained to stay inside the MDI form. Experiment with SDI and MDI Forms.

riva
Download Presentation

CECS 5020 Computers in Education

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CECS 5020Computers in Education Forms and Menus

  2. Types of Forms • Single Document Interface • One document at a time • Multiple Document Interface • More than one document at a time • “Child” forms on the MDI form are constrained to stay inside the MDI form

  3. Experiment with SDI and MDI Forms • Create two forms, Form1 and Form2, both of which have their “MDI Child” properties set to False • Add a line to Form1’s Load event to show Form2 (“Form2.Show”)

  4. Creating a MDI Form • Add a new MDI form (Project/Add MDI Form) • Set the MDI Child property of Form 2 to “True” • Run the program and see how Form 2 behaves when you resize it and move it outside of the MDI form’s boundaries • Note how Form 1 behaves also

  5. Form Properties • Caption • Icon • Height, Width, Left, Top • Background Color • MouseIcon, MousePointer (99 for custom) • StartUp Position • WindowState

  6. Form Events • Resize • Use this event to re-size child controls or forms • Click • MouseMove • Load • Unload

  7. Code a Form Event • Create a new project with an MDI Form and a child form • Code the MDI Form’s Resize event to resize the child form to 1/2 the size of the MDIForm Private Sub MDIForm_Resize() Form1.Width = MDIForm1.Width / 2 Form1.Height = MDIForm1.Height / 2 End Sub

  8. Menus • Menu Editor • Creates hierarchical menus • Captions that are only - (hyphen) create separator bars • Shortcut keys are created by putting an ampersand before the letter that is the shortcut • &File • E&xit

  9. Creating a Menu for Your Project • Tools/Menu Editor • &File • &New • &Open • E&xit • &Edit • &Help

More Related