ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Preset cursors
  • Limitations
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
The MouseCursor property is used to identify and change the hover cursor defined for a control, window or page.
Reminder: You can define:
  • the hover cursor used by a window control or window in the "UI" tab of the control or window description.
  • the hover cursor used by a page control or page in the "Details" tab of the control or page description window.
Example
// Modify the cursor of the BTN_Validate button
BTN_Validate.MouseCursor = curHelp
Syntax
WINDEVJavaUser code (UMC)

Identifying the hover cursor used for a window or window control Hide the details

<Cursor name> = <Element used>.MouseCursor
<Cursor name>: Character string or integer constant
Name of the cursor used for the specified control or window. Can correspond to:
  • A specific cursor name (file with a .CUR or .ANI extension):
    • name of the cursor if the file is found in the current directory,
    • name and full path of the cursor if the file is found in a directory other than the current directory.
      Java ".CUR" or ".ANI" custom mouse cursors are not supported in Java.
  • A preset cursor identified by one of the following constants:
    curArrowStandard arrow
    curCrossStandard cross
    curForbiddenSign not allowed
    curHandHand
    curHelpHelp on an object
    curIbeamInput cursor
    curSizeCross arrow cursor
    curSizeNESWNorth East/South West arrow
    curSizeNSNorth/South arrow
    curSizeNWSENorth West/South East arrow
    curSizeWEEast/West arrow
    curSystemHandSystem hand Java Cursor identical to curHand.
    curUpArrowUp arrow
    curWaitHourglass
<Element used>: Control name or window name
Name of the control or window whose associated cursor must be found.
WINDEVWindowsJavaUser code (UMC)

Changing the hover cursor defined for a window control or window Hide the details

<Element used>.MouseCursor = <Cursor name>
<Element used>: Control name or window name
Name of the control or window whose cursor must be modified
<Cursor name>: Character string or integer constant
Name of the cursor to use. Can correspond to:
  • A specific cursor name (file with a .CUR or .ANI extension):
    • name of the cursor if the file is found in the current directory,
    • name and full path of the cursor if the file is found in a directory other than the current directory.
      Java ".CUR" or ".ANI" custom mouse cursors are not supported in Java.
  • A preset cursor identified by one of the following constants:
    curArrowStandard arrow
    curCrossStandard cross
    curForbiddenSign not allowed
    curHandHand
    curHelpHelp on an object
    curIbeamInput cursor
    curSizeCross arrow cursor
    curSizeNESWNorth East/South West arrow
    curSizeNSNorth/South arrow
    curSizeNWSENorth West/South East arrow
    curSizeWEEast/West arrow
    curSystemHandSystem hand Java Cursor identical to curHand.
    curUpArrowUp arrow
    curWaitHourglass
Remarks
WINDEVWindowsJava

Preset cursors

The preset cursors correspond to the Windows cursors and they can be modified via the control panel (or the desktop themes). The illustrations correspond to the default values and they can change according to the user preferences.
WINDEVJava

Limitations

WINDEV The MouseCursor property applies only to:
  • Window controls.
  • Windows.
  • Control templates.
This property cannot be used with:
  • Menus,
  • Rows in a Table or TreeView Table control,
  • Columns in a Table or TreeView Table control.
  • Map controls.
Java The MouseCursor property can only be used with the following elements:
  • Button control.
  • Static control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
  • Column of Table control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/29/2024

Send a report | Local help