To understand this codebase example more quickly, the reader is advised to read and understand first the codebase example 4D-CD-00019 ViSi-Genie Magic Custom Slider.

4D-CD-00019 ViSi-Genie Magic Custom Slider presents a custom slider implementation using the Magic Move and Magic Code objects.

This codebase example, on the other hand, is an improved version of the project in 4D-CD-00019 ViSi-Genie Magic Custom Slider, where in the program sends a REPORT_EVENT message to the serial port every time that a touch release action is detected on the custom slider object. A REPORT_EVENT message is also sent to the serial port every time that touch goes out of the area covered by the custom slider.

To implement the above, the function "SendReport(...)" was used. SendReport(...) is a callable function defined in the ViSi-Genie Communications Protocol. This function sends a REPORT_EVENT or REPORT_OBJ message to the serial port.

In addition to the Magic Code object, the Magic Move object, and the SendReport(...) function, the Magic Release object was also needed to fully implement this project.

The GTX tool was then used to print the messages received from the display module during runtime.

Attached Files