Overview
This example illustrates hidden menus that slide out from the edges of the screen.
Description
Every major computing platform, whether on a desktop, or a smartphone, now uses some form of sliding menu. Menus don't just appear, but rather slide from an edge at different rates. An ideal solution would have all user interface special effects separated from the main application in a modular Sub VI.
Requirements
- LabVIEW 2012 (or compatible).
Steps to Implement or Execute Code
- Run the program.
- Click on the Top Menu (located at the top edge of the panel).
- Notice the animated slide out menu.
- Click on one of the controls.
- Note the event being captured, via the LED indicator.
- Click on the Side Menu (located at the left edge of the panel).
- Press the Stop button to exit.
Additional Information or References
Block Diagram
The aim of this example was to use the simplest algorithm possible for creating the slide effect, with minimal CPU usage.
The Sub VI requires three inputs: The Close position, the Start position and the Splitter bar reference. Typically, the Close position is 1, and the Open position is greater than one.
**This document has been updated to meet the current required format for the NI Code Exchange.**
George T.
Senior Applications Engineer
National Instruments UK and Ireland