|
Post by DARKNIGHT on Jul 24, 2023 19:39:46 GMT -5
Hello Everyone, I have an HP Laptop with a touch screen, is there a way to utilize the touch capability in LB? thank you in advance, Jim
|
|
|
Post by Rod on Jul 25, 2023 2:08:00 GMT -5
Touch has been designed to be backwards compatible with Windows. So most if not all of the touches and gestures can be read by Liberty. It acts pretty much like a mouse for most input . So touching a textbox moves focus there and then keyboard or touch keyboard input is recorded in the textbox.
Best read up on Windows Touch, then you will see how to integrate it into Liberty.
Overall it is very easy. Only multi touch and some gestures need API support.
Edit, a bit more detail. The touch screen issues new wm_touch and wm_gesture messages. Legacy applications like Liberty and a lot of other applications don't understand these messages. What Windows does is convert these messages to standard keyboard and mouse messages so that older applications can be driven by the touch screen. Liberty, because it can access the API can also register to receive these new messages directly and so can also handle the gesture actions like pan, zoom and pinch.
However you probably wont need any of that API. Anything you can do with the mouse or keyboard can be actioned by touch. So single click, double click, right click drag and drop, scroll etc all work normally in Liberty as is, or simply by using the standard "when event" command set in the graphics section.
|
|
|
Post by DARKNIGHT on Jul 25, 2023 12:59:10 GMT -5
Thanks Rod! I'll have to check in the LB Help Files and brush up on how to use the mouse function. and see if there is any sample code.
Jim
|
|