Preview

Graphical User Interface and Common Dialog

Good Essays
Open Document
Open Document
1542 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Graphical User Interface and Common Dialog
7/31/2014

Objectives




Chapter 5




• Menus, Common
Dialog Boxes, Sub
Procedures, and
Function
Procedures

McGraw-Hill

5-2

Copyr ight © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Defining Menus (1 of 2)

Menus





Menu Bar

• Contains menus which drop down to display list of menu items

– Can be used in place of or in addition to buttons




Create menus and submenus for program control.
Display and use the Window s common dialog boxes. Create context menus for controls and the form.
Write reusable code in sub procedures and function procedures and call the procedures from other locations.

to execute a procedure
– Menu items are controls with properties and events.



Easy to create menus for a Window s form using the Visual Studio environment’s Menu Designer
Menus w ill look and behave like standard
Window s menus.

MenuStrip component is added to a form.
MenuStrip is a container to w hich ToolStripMenuItems,
ToolStripComboBoxes,
ToolStripSeparators, and
ToolStripTextBoxes can be added. 5-3

5-4

The Text Property

Defining Menus (2 of 2)




Holds the words that appear on the screen — like the
Text property of a button or label
To conform to Windows standards, the first menu’s Text property should be File, with a keyboard access key.

• Use the ampersand (&) in the text to specif y the key

The MenuStrip component appears in the component tray below the f orm and the Menu
Designer allows y ou to begin ty ping the text for the menu items. •

5-5

to use f or key board access.

Enter and change the Text property for each menu and menu item using the Menu Designer or make the changes in the Text property using the Properties window. 5-6

1

7/31/2014

The Name Property




The MenuStrip Items Collection



The File menu item that is added is automatically named FileToolStripMenuItem.
The items are named so w ell that there w on’t be a need to change the Name property of any menu component. • If the Text property is

You May Also Find These Documents Helpful

  • Satisfactory Essays

    3. When you get another small box with something to type in, type in "explorer.exe" (without the ")…

    • 338 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The double jeopardy claim can be supported by facts in the sense that Falkowsi had entered a plea which was unconditional in nature on November, 1992.The case on October,1992 which stated that the Government had taken action in the property seizure of the illegal marijuana plantation. The civil case was taken up at Fairbanks. Also on the charge of possession of marijuana a criminal case was lodged Anchorage. So Falkowski was tried on the same case both the times and so this was a case of double jeopardy.…

    • 333 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    6. What is the displayed in the inventory > network map tab of the SpiceWorks interface?…

    • 203 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Before starting VBScript Input/Output lab, you should practice using NotePad++ to run and debug VBScript programs.…

    • 2429 Words
    • 10 Pages
    Good Essays
  • Good Essays

    I have a high performing direct report who recently told me she feels like she is “climbing the walls”. I used the coaching model in our 1:1 meeting to dig deeper into her comment.…

    • 782 Words
    • 4 Pages
    Good Essays
  • Good Essays

    multi modal

    • 614 Words
    • 3 Pages

    The world has changed greatly over the years. The language has evolved and culture has changed. Due to the large increase in the number of people who use mobile phones and social networking sites, people, especially young ones developed a new, non-standard form of English which we have called text speak. There are some good things and a few bad things about it. I will explain it further now.…

    • 614 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Ui vs Bonifacio

    • 4399 Words
    • 18 Pages

    Before us is an administrative complaint for disbarment against Atty. Iris Bonifacio for allegedly carrying on an immoral relationship with Carlos L. Ui, husband of complainant, Leslie Ui.…

    • 4399 Words
    • 18 Pages
    Powerful Essays
  • Powerful Essays

    •I/O requiring minimal human interaction •Inputs captured automatically by some devices such as scanners. •Outputs – reports produced for external agents (other systems)…

    • 2841 Words
    • 12 Pages
    Powerful Essays
  • Best Essays

    Information Kiosk

    • 1021 Words
    • 5 Pages

    The general objective of the study is to develop a Database Management System for Pajanostan Dental Clinic.…

    • 1021 Words
    • 5 Pages
    Best Essays
  • Satisfactory Essays

    Ui vs Bonifacio

    • 509 Words
    • 3 Pages

    FACTS: A complaint for disbarment was filed against Bonifacio on the ground of immorality for having illicit…

    • 509 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Computer Graphics Menus

    • 760 Words
    • 10 Pages

    CSC 706 Computer Graphics • Drawing Polylines Stored in a File • Parameterizing Figures • Menus 1 Drawing Polylines Drawing polyline from vertices in a file • • • • # polylines # vertices in first polyline Coordinates of vertices, x y, one pair per line Repeat last 2 lines as necessary File for dinosaur available from theWeb site Code to draw polylines/polygons in Fig. 2.24.…

    • 760 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Dialog in the Dark

    • 761 Words
    • 4 Pages

    I’ve always wondered what it would be like to be visually impaired, but never knew I’d get a small taste of it. Dialog in the Dark is an exhibit located in as many as twenty- two countries throughout the world. I was able to take part in this exhibit in Atlanta, Georgia this past November. This exhibit is one that awakens your senses, challenges your prejudices, and give you a deepen self-awareness for the visually impaired community. It was designed to bring awareness to the visually impaired community. During Dialog in the Dark, visually impaired guides lead the guest through a series of darkened galleries, which were made to replicate everyday experiences which the visually impaired deal with on a regular basis. Without sight, the guests have to adjust and learn to “see” in a completely new way with their non-visual senses. The darkened galleries included a park, grocery store, ship/boat, grocery store, and bar-type area. Although all of the galleries were very challenging and amazing, my favorite one was the bar. During this gallery, guests were able to buy a coke from the bar. After that, we were moved to a table and given the opportunity to ask our guide any question we wanted. The best part about this was that he was open and shared his life and experiences from before he was visually impaired, when he found out he was visually impaired, and how he got to where he was now. It amazed me, how regardless of everything he went through, he still woke up everyday and thanked God for what he has. This experience made me think about the visually impaired community in a completely different way. It also made me question areas of my life, and realize how lucky I am to have everything I have.…

    • 761 Words
    • 4 Pages
    Good Essays
  • Good Essays

    To define the meaning of user-friendly interface, we first look at the meaning of “user-interface” and “user-friendly “. According to TechTerms.com, a user interface is" the means in which a person…

    • 777 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Information Data that is (1) accurate and timely, (2) specific and organized for a purpose, (3) presented within a context that gives it meaning and relevance, and (4) can lead to an increase in understanding and decrease in uncertainty.…

    • 22116 Words
    • 89 Pages
    Better Essays
  • Satisfactory Essays

    Introduction System

    • 336 Words
    • 2 Pages

    An information system (IS) is any combination of information technology and people's activities using that technology to support operations, management, and decision-making. In a very broad sense, the term information system is frequently used to refer to the interaction between people, algorithmic processes, data and technology. In this sense, the term is used to refer not only to the information and communication technology (ICT) an organization uses, but also to the way in which people interact with this technology in support of business processes. Some make a clear distinction between information systems, ICT, and business processes. Information systems are distinct from information technology in that an information system is typically seen as having an ICT component. Information systems are also different from business processes. Information systems help to control the performance of business processes. Alter argues for an information system as a special type of work system.…

    • 336 Words
    • 2 Pages
    Satisfactory Essays