ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
RightClick (Property)
In french: ClicDroit
The RightClick property gets and sets the name of the Button control that will be executed when an object is right-clicked.
You can define the name of the Button control executed when right-clicking the window editor in the control description ("UI" tab).
Remark: If the "Right click" and "Context menu" options are specified for the same control, only the right-click action will be executed.
Example
// Change the button associated with a right click on BTN_New
BTN_New.RightClick = "Btn_Wizard"
Syntax

Getting the Button control associated with the right click Hide the details

<Button control> = <Control used>.RightClick
<Button control>: Character string
  • Name of the Button control whose code will be executed when right-clicking the specified control,
  • Empty string ("") if no Button control is associated with the right click.
<Control used>: Control name
Name of the control for which you want to get the name of the Button control associated with the right click.

Changing the Button control associated with the right click Hide the details

<Control used>.RightClick = <New Button control>
<Control used>: Control name
Name of the control for which you want to change the Button control associated with the right click.
<New Button control>: Control name
  • Name of the Button control whose code will be executed when right-clicking the specified control,
  • Empty string ("") if no button is associated with the right click.
Remarks
The RightClick property applies only to windows and controls (including the columns of a Table control). This property cannot be used with menus, etc.
This property is not available for the following controls:
  • ActiveX control,
  • Shape control,
  • Non-clickable Image control,
  • Progress Bar control,
  • Static control.
Java The RightClick property can only be used with the following elements:
  • Button control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Window.
  • Table control.
  • Table column.
  • Supercontrol.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/11/2023

Send a report | Local help