ViSi-Genie Magic: Slide to Unlock
Details
Number | 4D-AN-00151 |
Difficulty | Medium |
Supported Processors | PICASO, DIABLO-16, PIXXI-28, PIXXI-44 |
Supported Environments | ViSi-Genie |
Description
When designing GUIs (Graphic User Interfaces), it is often desirable to have a slide-to-unlock feature. This feature is commonly found in smart phones. In the standard version of Workshop 4, a stand-alone application having a slide-to-unlock feature is not possible. A host would be needed to decide when the “unlock” action is triggered, which will occur only when the slider knob is moved to the right. The new objects under the Genie Magic pane in Workshop 4 give the user more control of the program. In this application note for example, the user will learn how to create a stand-alone ViSi-Genie application with a slide-to-unlock feature in Workshop Pro. This application note shows how to use the Magic Event object to implement a slide-to-unlock functionality. The Magic Event object is under the Genie Magic pane in Workshop 4 Pro. It contains a 4DGL code and it can be linked to standard Genie objects such as a winbutton, such that any time that the button is touched, the Magic Event object is called (or the 4DGL code is executed).
Prerequisites
- General: How to Update the PmmC for DIABLO-16
- General: How to Update the PmmC for PICASO
- General: How to Update PmmC for PIXXI
- General: Partitioning a micro-SD into FAT and RAW Components
- ViSi-Genie: Getting Started with PICASO Displays
- ViSi-Genie: onChanging and onChanged Events
- ViSi-Genie: Getting Started with DIABLO-16 Displays
- ViSi-Genie: How to Add Magic Objects
- ViSi-Genie: Inputs
- ViSi-Genie: Advanced Buttons
- ViSi-Genie: Labels, Texts, and Strings