ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Image control
  • Overview
  • Using a clickable image
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV and WINDEV Mobile give you the ability to use clickable images. A clickable image is an image (displayed in an Image control) that can be clicked by the user. A specific process (click code of the image) is run.
Unlike a button, no pressed effect is seen when a clickable image is clicked.
Using a clickable image
To use a clickable image in an application:
  1. On the "Creation" tab, in the "Usual controls" group, click "Image".
  2. Open the control description ("Description" in the context menu of the image).
  3. In the "Details" tab, use the click settings:
    • The "This image is a clickable area" option makes the image clickable. The "Click" event is automatically added to the WLanguage events associated with the control.
    • WINDEVWindows "Priority for clicks" allows to intercept the click on the image, regardless of the Z-order of the Image control in the window. If this option is not checked, the Image control must be displayed in the foreground to intercept the mouse click.
    • Specify whether the image will be handled by the user. For more details, see Context menu of Image controls.
Android Click areas and multi-touch
If the image is considered as being a click area, you can:
  • manage the first touch on the image (default operating mode in the earlier versions). If several pointers (fingers) are used on the image, the different corresponding processes (pressed/left button down, click, etc.) are called only when the first pointer is used.
  • manage multi-touch on the image ("Recall processes for each pointer (multiple pointers)"): If several pointers (fingers) are used on the image, the different corresponding processes/events (pressed/left button down, click, etc.) are called on each additional pointer used.
For more details, see Multi-touch support.
Related Examples:
WD SharingMemory Training (WINDEV): WD SharingMemory
[ + ] This example explains how to use the function for sharing memory with WINDEV.

Several applications may share data when they are started at the same time. In this case, you may have to use a shared memory zone. This memory zone will allow all the started applications to share some information.
The Image control (map area) Unit examples (WINDEV): The Image control (map area)
[ + ] Using the Image control to manage map areas
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help