Gui

26
Intrinsic and Intrinsic and Active X Active X Control Control

Transcript of Gui

Page 1: Gui

Intrinsic and Intrinsic and Active X Active X ControlControl

Page 2: Gui

Controls are reusable predefined components used for visual programming.

Two kinds of Visual Basic Two kinds of Visual Basic ControlControl

Intrinsic and ActiveX

Page 3: Gui

Also called standard controls.

The default controls that found in the Visual Basic Toolbox.

Page 4: Gui

The controls that is loaded into the Visual Basic project with the use of the Components.

Page 5: Gui

The Drive List Box

Page 6: Gui

The Drive List Box Drive List Box is a control object that lets you browse the valid drives in your computer system.

Page 7: Gui

The Directory List Box

Page 8: Gui

The Directory List Directory List Box Box lets you navigate folders on the particular drive.

Page 9: Gui
Page 10: Gui

The File List Box File List Box lets you select a specific file in a folder.

Page 11: Gui

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.

Page 12: Gui

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.

Page 13: Gui

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.

Page 14: Gui

1. Click on tools from the menu bar and choose menu editor.

2. Press Ctrl+E

Page 15: Gui
Page 16: Gui

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

Page 17: Gui

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.

Page 18: Gui

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

Page 19: Gui

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.

Page 20: Gui
Page 21: Gui

Pop-up menus are menus that are activated when you click on the right mouse button.

Page 22: Gui

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.

Page 23: Gui

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.

Page 24: Gui

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.

Page 25: Gui

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.

Page 26: Gui

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.