PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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 takes focus during a click.
  • Modify the effect for taking focus during the click on a control.
Notes:
  • 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 the Android applications.
New in version 18
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Example
WINDEV
// Find out whether the Check Box control takes focus during a click
IF CBOX_Setting..FocusOnClick = 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 CBOX_Setting..FocusOnClick = True THEN
        CBOX_Setting..FocusOnClick = False
END
Syntax

Find out whether a control takes focus during a click Hide the details

<Result> = <Element name>..FocusOnClick
<Result>: Boolean
  • True if the specified element takes focus during a click,
  • False otherwise.
<Element name>: Character string (with or without quotes)
Name of element to use.

Modifying how a control takes focus Hide the details

<Element name>..FocusOnClick = <With focus/Without focus>
<Element name>: Character string (with or without quotes)
Name of control to use.
<With focus/Without focus>: Boolean
  • True if the element must take focus during a click,
  • False if the focus must be kept by the previous control.
Remarks

Special cases

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

Limits

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