Menu & Clipboard - PowerPoint PPT Presentation

menu clipboard n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Menu & Clipboard PowerPoint Presentation
Download Presentation
Menu & Clipboard

play fullscreen
1 / 16
Menu & Clipboard
131 Views
Download Presentation
solada
Download Presentation

Menu & Clipboard

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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