EnableTouchScreen Procedure |
Version 6 |
Enables/Disables touch screen mode and returns previous setting.
[ bPrevSetting = ] EnableTouchScreen ( [bEnable], [lTouchScreenFontSize=16] )
The EnableTouchScreen procedure syntax has the following parts:
Name |
Type |
Description |
bPrevSetting |
Bool |
Previous touch screen setting |
bEnable |
[Val] Bool |
Optional. True to enable or False (Default Value) to disable |
lTouchScreenFontSize |
[Val] Long =16 |
v7.0. Optional. Touch panel font size in points. By default when touch panel mode is enabled a font with 16 points is used. You can reduce this number for smaller screen size (e.g. 800x600). |
In Touch Screen mode, scrollbars displayed in any window will resize
to a bigger size to allow the user to operate the scrollbar using a finger.
Windows dialogs such as File Open size are increased. To scale an ATEasy
form you can call this function in addition to using the Form.AutoScale
and the Form.Font that
can be used to scale an ATEasy forms.
You must create AVirtualKeyboard
to enable on-screen keyboard.
The following example enables touch screen mode based on two options being true:
! enable touch screen mode
EnableTouchScreen(GetOption(enOptionsModal)=True AND GetOption(enOptionsTouchPanelUI)=True)