PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Special cases
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FocusOnClick is used to:
  • Find out whether a control gains focus during a click.
  • Modify the effect for taking focus during the click on a control.
Remarks:
  • The controls without the "focus on click" do not keep the focus. After a click, the focus is given back to the control that was previously used. The exit code of these controls is not run.
  • By default, all the controls have the "focus on click" except for the Interruption buttons.
  • Android This property is available for the Button controls only.
Versions 18 and later
Android This property is now available for Android applications.
New in version 18
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Example
WINDEV
// Find out whether the Check Box control gains focus during a click
IF INT_Parameterization.FocusAuClic = True THEN
Info("After a click, the check box keeps focus.")
ELSE
Info("After a click, the check box gives focus back to the previous control.")
END
WINDEV
// Removes the focus when "CBOX_Setting" is clicked if this control keeps focus
IF INT_Parameterization.FocusAuClic = True THEN
INT_Parameterization.FocusAuClic = False
END
Syntax

Finding out whether a control gains focus during a click Hide the details

<Result> = <Control used>.FocusOnClick
<Result>: Boolean
  • True if the element gains focus when clicked,
  • False otherwise.
<Control used>: Control name
Name of control used.

Modifying how a control gains focus Hide the details

<Control used>.FocusOnClick = <With focus/Without focus>
<Control used>: Control name
Name of control used.
<With focus/Without focus>: Boolean
  • True if the control must gain focus when clicked,
  • False if the previous control must keep the focus.
Remarks

Special cases

  • Whatever the value of Property FocusOnClick, the focus can be given to control by programming with one of the following functions:
  • Whatever the value of the Property FocusOnClick, if the control is accessible by the Tab key, it will be able to take the focus during the navigation.

Limits

WINDEVUser code (UMC) The Property FocusOnClick only applies to the following fields:
  • Buttons.
  • Check boxes.
  • List boxes.
  • Images.
  • Tabs.
  • Tables.
  • Treeview tables.
Android The Property FocusOnClick applies only to the Button fields.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment