1 / 16

Menu & Clipboard

Menu & Clipboard. Menu Cut / Copy / Paste. Menus. Created in the Menu Editor Can contain menu titles, menu items, separator bars, submenu titles, and submenu items To avoid confusion, it is best to use one level of menus. Menu Elements in User Interface. Menu Elements in Menu Editor.

solada
Download Presentation

Menu & Clipboard

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Menu & Clipboard Menu Cut / Copy / Paste

  2. Menus • Created in the Menu Editor • Can contain menu titles, menu items, separator bars, submenu titles, and submenu items • To avoid confusion, it is best to use one level of menus

  3. Menu Elements in User Interface

  4. Menu Elements in Menu Editor

  5. Access Keys • Assign to each menu title and each menu item • Must be unique within a menu • Menu titles are accessed by pressing the Alt key and the access key • Menu items are accessed by pressing the access key when the menu is open

  6. Shortcut Keys • Assign to commonly used menu commands • Displayed to the right of the menu item • Can be used only when the menu is closed

  7. More on Menu Controls • You must provide a name and a caption for each menu control • Each menu title and each menu item is considered a separate control and it can have its own code • A menu control can recognize only the Click event

  8. Separator Bar • A separator bar is a horizontal line used to separate two groups of menu items • Created by entering a hyphen in the menu control’s Caption property • Even separator bars must have a name

  9. Clipboard Object • Provides access to the Windows clipboard • Allows you to include cut, copy, and paste capabilities in your application

  10. Methods of the Clipboard Object • SetText method • sends text to the clipboard • Clipboard.SetTextdata • GetText() method • retrieves text from the clipboard • Clipboard.GetText() • Clear method • clears the contents of the clipboard • object.Clear

  11. SelText Property • When a user selects text in a text box, Visual Basic records the text in the text box’s SelText property • This property contains a zero-length string if no text is selected • You also can use the SelLength property to determine if any text is selected in the text box

  12. Edit Menu Click Event

  13. Copy Command Click Event

  14. Cut Command Click Event

  15. Paste Command Click Event

More Related