MDI windows Single-document-interface (SDI)

Slides:



Advertisements
Similar presentations
14-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Chapter 1: An Introduction to Visual Basic 2012
Using Macros and Visual Basic for Applications (VBA) with Excel
Microsoft Windows Vista Chapter 5 Personalize Your Work Environment.
Ch. 6 Web Page Design – Absolute Positioning, Image Maps, and Navigation Bars Mr. Ursone.
© by Pearson Education, Inc. All Rights Reserved.
CGS 1060 Introduction to MicroComputer Usage Chapter 1 Windows 7
Creating a Sample Multiple Document Interface (MDI) application.
Programming Based on Events
Multiple-Document-Interface (MDI) Windows MDI programs enable users to edit multiple documents at once. MDI programs enable users to edit multiple documents.
Graphical User Interface (GUI) A GUI allows user to interact with a program visually. GUIs are built from GUI components. A GUI component is an object.
Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.
Multiple Document Interface (MDI) application
1 Multiple Document Interface (MDI) Windows. Single Document Interface (SDI) A program that can only support one open window or a document For Example,
Creating Menu. Objectives Create a menu system for a form –Create a menu –Create a menu titles –Create a menu items –Create a submenu –Modify menu –Edit.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
InDesign CS3 Lessons 1 and 2. Work Area When First Opened.
Neal Stublen Practice Solution  Create a new solution  Add a WinForms project  Add a Class Library project  Reference the library.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Visual Basic Chapter 1 Mr. Wangler.
1 Graphical User Interfaces Part 2 Outline Multiple Document Interface (MDI) Windows Visual Inheritance User-Defined Controls.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
CSCI 3327 Visual Basic Chapter 10: Windows Forms GUI: A Deeper Look UTPA – Fall 2011.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
MDI vs. SDI MDI – Multiple Document Interface SDI – Single Document Interface In an SDI application, each form acts independently of the others. A MDI.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
Lập trình trên Windows với Microsoft®.NET Giảng viên : Hồ Hoàn Kiếm.
BIM313 – Advanced Programming Building Forms 1. Contents Building Forms – The Basics – Changing a form’s appearance – Changing a form’s background color.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
CST238 Week 4 Questions / Concerns? Announcements – Start thinking about project ideas – Test#1 next Monday, 4/28/14 Recap Check-off Take Home Lab#3 New.
Introduction To Microsoft Word C Apply intermediate skills in utilizing word processing software Word processing programs make the writing process.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 – Graphical User Interfaces Part 2 Outline.
Graphical User Interface Concepts - Part 2 Session 09 Mata kuliah: M0874 – Programming II Tahun: 2010.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
VB.NET Additional Topics
1 NORMA Lab. 7 Generating Reports More Display Options File: NORMA_Lab6.ppt. Author: T. Halpin. Last updated: 2009 June 9.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Configuring the User and Computer Environment Using Group Policy Lesson 8.
1 Chapter 12: Form Builder Objects and Flexible Code.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
PowerBuilder Online Courses - by Prasad Bodepudi MDI Applications Single Document Interface Multiple Document Interface.
Lesson 3 — Menus, MDIs, and Simple Loops Microsoft Visual Basic.NET, Introduction to Programming.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
CONTROL STATEMENTS. A conditional expression uses a comparison operator which results in true or false value. If the comparision is valid it results in.
Understanding Desktop Applications Lesson 5. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Forms Applications Understand.
Application software- programs that let you do things What are some computer programs that you or your parents use on the computer?
CECS 5020 Computers in Education Forms and Menus.
Compound Data Types Part13dbg. 2 Point A Point is a simple built-in struct that stores a pair of screen coordinates. Instantiate a Point: Point aPoint.
DateTime, Code Regions, and Multiple Form Applications Part13dbg.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
1 Lesson 6 Introducing JavaScript HTML and JavaScript BASICS, 4 th Edition.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Chapter 1: An Introduction to Visual Basic .NET
Visual Basic.NET Windows Programming
Graphical User Interface
SDI & MDI SDI -> Single Document Interface
Multiple Document Interface (MDI)
Chapter 13 Additional Topics in Visual Basic
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

MDI windows Single-document-interface (SDI) Multiple-document-interface windows (MDI) Enable users to edit multiple documents at once The application window of an MDI program is called the parent window Each window inside the application is referred to as child window MDI can have many child windows Each child window can only has one parent Child window cannot be parent themselves A maximum of one child can be active at once Child window cannot be moved outside their parent

To create an MDI form Create a new form Set its IsMDIContainer property to true( when you do that, the form changes appearance) Create a child form class to be added to the form Right-click the project in the Solution Explore Select Add Window Form . And name the file

Add child form to the parent Must create a new child object, set its MdiParent property to the parent form and call method Show. ChildFormClass *frmChild = new ChildFormClass(); frmChild->MdiParent = this; frmChild->Show(); Where ChildFormClass is the name of the child frmChild is an object name this pointer always point the current object, in this case, the parent form The code to create child usually appears in an event handler, which creates a new window in response to a user action. Menu selections (such as File followed by a submenu option New ) are commonly used to create new child windows

MDI form events and properties Common MDI child properties IsMdiChild – indicates whether the form is an MDI child Mdiparent – specifies the MDI parent form of the child Common MDI parent properties ActiveMdiChild – returns the form that is currently active MDI child(return null reference if no children are active) IsMdiContainer – indicates whether a form can be an MDI. Default is false.

Common Method and Event LayoutMdi – determines the display of child forms on an MDI parent. Takes as a parameter an Mdilayout enumeration with possible values ArrangeIcons, Cascade, TileHorizontal and TileVertical Common Event MdiChildActivate – generated when an MDI child is closed or activated

Parent and child window Child windows can be minimized, maximized and closed independently of each other and of the parent window When the parent is minimized or closed, the child windows are minimized or closed as well. When a child window is minimized or maximized, its title bar displays a restore icon, which returns the child window to its previous size (its size before it was minimized or maximized)