Multiple-Document-Interface (MDI) Windows MDI programs enable users to edit multiple documents at once. MDI programs enable users to edit multiple documents.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

14-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Dreamweaver MX 2004 “Viewing the Workspace” Mrs. Wilson.
Intro To Cascading Style Sheets By Mario Yannakakis.
1 Lesson 9 Using JavaScript with Frames HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
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.
MDI windows Single-document-interface (SDI)
Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
Multiple Document Interface (MDI) application
SiS Technical Training Development Track Day 3 & Day 4.
1 Multiple Document Interface (MDI) Windows. Single Document Interface (SDI) A program that can only support one open window or a document For Example,
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab8 Working with Forms Forms Collection Multiple Forms.
The Objection Icon Last Updated The Objection Icon The Objection icon was introduced as part of the Response Redesign in SERFF v5.6. This.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
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.
1 Graphical User Interfaces Part 2 Outline Multiple Document Interface (MDI) Windows Visual Inheritance User-Defined Controls.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 6 Multiple Forms.
MDI vs. SDI MDI – Multiple Document Interface SDI – Single Document Interface In an SDI application, each form acts independently of the others. A MDI.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Lập trình trên Windows với Microsoft®.NET Giảng viên : Hồ Hoàn Kiếm.
1 Module 4. Page Management Creating New Pages Child pages can be created by clicking on the "New Page” button. CLICK HERE.
Visual Basic 101.
Review for Mid-term! October 26, Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
© 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.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
VB.NET Additional Topics
Properties of the Real Number System. FOR ADDITION: The order in which any two numbers are added does not change the sum. FOR MULTIPLICATION: The order.
1 HTML Frames
XP Tutorial 6 New Perspectives on JavaScript, Comprehensive1 Working with Windows and Frames Enhancing a Web Site with Interactive Windows.
This eCPIC Quick Guide has been developed to assist System Administrators with creating Hierarchy Grids in eCPIC. The Hierarchy Grid functionality allows.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
XP Tutorial 8 Adding Interactivity with ActionScript.
CSCI 6962: Server-side Design and Programming Master Pages.
Dr Dat Tran - Week 2 Lecture Notes 1 Forms Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences & Engineering.
PowerBuilder Online Courses - by Prasad Bodepudi MDI Applications Single Document Interface Multiple Document Interface.
Cascading Style Sheets CSS. Source W3Schools
Lesson 3 — Menus, MDIs, and Simple Loops Microsoft Visual Basic.NET, Introduction to Programming.
Page Designer Storyboard J. A. Fitzpatrick December 2004.
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.
Visual Basic.NET BASICS Lesson 11 List Boxes, For Next Loops, and Label Settings.
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.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Word & Windows Terminology Review. 1. Provides one-click access to common commands you use frequently. In the Business Lab some of the commands you will.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Debugger By: Engr. Faisal ur Rehman CE-105 Spring 2007.
Windows 7 Ultimate
Document/View Architecture
Graphical User Interface
Multiple document interface (MDI)
SDI & MDI SDI -> Single Document Interface
1. Introduction to Visual Basic
Understand Windows Forms Applications and Console-based Applications
MDI Picture Viewer Application
Multiple Document Interface (MDI)
Chapter 13 Additional Topics in Visual Basic
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Multiple-Document-Interface (MDI) Windows MDI programs enable users to edit multiple documents at once. MDI programs enable users to edit multiple documents at once. Parent window: the application window of an MDI program Parent window: the application window of an MDI program Child window: each window inside the application Child window: each window inside the application To create an MDI form, set its IsMdiContainer property to true To create an MDI form, set its IsMdiContainer property to true

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

To create an MDI form Create a new form Create a new form Set its IsMdiContainer property to true Set its IsMdiContainer property to true ( when you do that, the form changes appearance) ( when you do that, the form changes appearance) Next create a child form class to be added to the form Next create a child form class to be added to the form

Code needed in the parent Write the following code in the parent form class ( at proper place, will explain) Write the following code in the parent form class ( at proper place, will explain) ChildFormClass *frmChild = new ChildFormClass(); ChildFormClass *frmChild = new ChildFormClass(); frmChild->MdiParent = this; frmChild->MdiParent = this; frmChild->Show(); frmChild->Show(); Where ChildFormClass is the name of the child Where ChildFormClass is the name of the child frmChild is a object name frmChild is a object name This is pointer that always point the current object, in this case, the parent form This is pointer that always point the current object, in this case, the parent form

Layout format Common method: Common method: LayoutMdi ; determines the display of child forms on an MDI parent. Takes as a parameter an MdiLayout LayoutMdi ; determines the display of child forms on an MDI parent. Takes as a parameter an MdiLayout MdiLayout::Cascade MdiLayout::Cascade MdiLayout::TileHorizontal MdiLayout::TileHorizontal MdiLayout::TileVertical MdiLayout::TileVertical

code to set layout In anywhere when you need to set the format In anywhere when you need to set the format this->LayoutMdi( MdiLayout::Cascade); this->LayoutMdi( MdiLayout::Cascade);