Posts

ScreenType

Returns the type of screen on which the application is run: phone, tablet, computer or watch. Notes: ·        To find out the exact size of the diagonal of the screen, use ScreenSize . ·        In simulator mode, the type of screen corresponds to a computer screen. Example // If the application is displayed on a large screen (tablet or PC) IF ScreenType () IN ( ssTablet , ssComputer ) THEN ... END Syntax <Result> = ScreenType() <Result>: Integer constant Type of screen: teComputer Computer screen (diagonal greater than 13 inches). teWatch Watch screen (diagonal less than 2 inches). teTablet Tablet screen (diagonal included between 7 and 13 inches). tePhone Phone screen (diagonal included between 2 and 7 inches).

Toast Display

Image
Displays a "Toast" message. The Toast is a furtive message that appears during a few seconds on the screen before disappearing with a fade-in effect without any intervention from the user. A Toast message does not take focus, it is not modal and it does not interrupt the execution of the application. The display of Toasts is recommended to transmit information to the user without locking the execution of the application (example: displaying a message to indicate the end of a download operation). Example ToastDisplay ( "This is a Toast message." ) ToastDisplay ( "This is a Toast message." , toastLong , vaMiddle , haCenter , LightGreen )) Syntax ToastDisplay(<Message> [, <Display Duration> [, <Vertical Alignment> [, <Horizontal Alignment> [, <Background Color>]]]]) <Message>: Character string (with quotes) Message to display. This message can be...

Translation

Image
Overview WINDEV, WEBDEV and WINDEV Mobile allow you to support up to 64 languages in the same project: window, report, WLanguage... The translation of the different languages can be performed afterwards by using WDMSG or in the editors directly. To simplify this translation, the editors offer to call "Google Translation" to perform these translations. Caution: Of course you must comply with the Google service usage rules, which are subject to change over time. Implementation Using Google Translation in the editors To use Google Translation in the editors: 1.       Display the general options of the software used: on the "Home" pane, in the "Environment" group, expand "Options" and select "General options of WINDEV/WEBDEV/WINDEV Mobile". 2.       Display the "Translation" tab. 3.       Select the "Google Translation" engine. Specify the API key required to use Google Translation. 4. ...