ConditionalFocus - cBaseLocalControlHost
Gives the control the focus but only if the browser platform is not a mobile device (tablet / phone)
Type: Procedure
Syntax
Procedure ConditionalFocus
Call Example
Send ConditionalFocus
Description
This message acts just like the Focus message, to give the recipient control the focus, except in the case where the web application's pbIsMobile property returns True. In this case the message will be ignored.
This is useful when you are developing a web application that runs on multiple target devices. When a view loads on a small mobile device, you often do not want to give any control the focus, because it would cause the virtual keyboard to appear and disrupt the visual interface.