Chapter 17 GUI Programming - Component Layout, Additional GUI Components
Gui
-
Upload
eyelean-xilef -
Category
Technology
-
view
357 -
download
4
Transcript of Gui
Intrinsic and Intrinsic and Active X Active X ControlControl
Controls are reusable predefined components used for visual programming.
Two kinds of Visual Basic Two kinds of Visual Basic ControlControl
Intrinsic and ActiveX
Also called standard controls.
The default controls that found in the Visual Basic Toolbox.
The controls that is loaded into the Visual Basic project with the use of the Components.
The Drive List Box
The Drive List Box Drive List Box is a control object that lets you browse the valid drives in your computer system.
The Directory List Box
The Directory List Directory List Box Box lets you navigate folders on the particular drive.
The File List Box File List Box lets you select a specific file in a folder.
Timer is an invisible stopwatch that can be put in a program to enable to access the internal clock of the computer.
It can be use to delay or repeat an action at prescribe intervals.
The menu bar is one of the most important feature of a program.
It provides the user with easy access to many of the commands by using the keyboard or mouse.
It provides an easy way to create menus to be used in a program. It has several uses:
1.It lets you add new menus.2.It modifies and reorders existing menus.3.It deletes old menus.4.It adds special effects such as access
keys, check marks, and keyboard shortcuts.
5.It creates pop-up menus.
1. Click on tools from the menu bar and choose menu editor.
2. Press Ctrl+E
CaptionCaption The visible text you see on the
menu item NameName The name used in code to refer to
the menu control CheckedChecked Determines whether a small check
mark is displayed to the left of the menu control
VisibleVisible Determines whether a menu control
can be seen EnabledEnabled If False, the text is grayed out and
cannot be selected IndexIndex If you create a menu control array
rather than name individual menu items uniquely, this property specifies the menu items subscript within the control array.
ShortcutShortcutA key sequence that will invoke the menu
HelpContextIDHelpContextIDDetermines which topic in the help file will be displayed
NegotiatePositionNegotiatePositionWorks in conjunction with OLE embedment to determine which menu controls are displayed
WindowListWindowListDetermines whether a menu control maintains a list of the current MDI child windows
Indent Arrows Indent Arrows Sets the status of a menu as top level or sublevel.A top menutop menu is the one you initially see on the menu bar of a form. A submenusubmenu level resides under a top-level menu.
Pop-up menus are menus that are activated when you click on the right mouse button.
1. The controls that is loaded into the Visual Basic project with the use of the Components.
2. Menus that are activated when you click on the right mouse button.
3. The visible text you see on the menu item.
4. lets you select a specific file in a folder.
5. The default controls that found in the Visual Basic Toolbox.
6. It provides the user with easy access to many of the commands by using the keyboard or mouse.
7. Reusable predefined components used for visual programming.
8. lets you navigate folders on the particular drive.
9. Determines whether a menu control can be seen.
10.a control object that lets you browse the valid drives in your computer system.
1. ActiveX controls are also called Standard controls.
2. You can open the menu by Pressing Ctrl+M shortcut.
3. A timer can be use to delay or repeat an action at prescribe intervals.
4. Move arrow sets the status of a menu as top level or sublevel.
5. The Caption is used in code to refer to or identify the menu control.
1. What is Menu Editor?2. How do you open the Menu
Editor dialog box?3. What is the function of the
Indent arrows?4. What are the different control
properties you can apply when creating a menu? Enumerate and explain at least 5.