ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The UseMode property is used to determine or change how the PDF Reader control reacts to mouse input. The mouse is used to select text in the document or to move within the document pages.
The PDF Reader is in selection mode by default.
Example
// Passe le champ en mode déplacement
PDF_MonPDF.ModeManipulation = useModeMovement
Syntax

Finding out how the PDF Reader control reacts to mouse input Hide the details

<Result> = <PDF Reader control>.UseMode
<Result>: Integer constant
Current PDF document handling mode:
useModeMovementThe field is in displacement mode:
  • the left mouse button allows you to move within the document.
  • the mouse cursor turns into a hand.
  • if the ribbon is displayed, the "Move" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseMovement.
useModeOCRThe field is in selection mode:
  • the left mouse button allows you to select the document elements.
  • the cursor changes to a lasso.
  • if the ribbon is displayed, the "OCR" option is selected ("Display" tab, "Mode" group).
useModeSelectionThe field is in selection mode:
  • the left mouse button allows you to select the document elements.
  • the mouse cursor turns into an input cursor.
  • if the ribbon is displayed, the "Selection" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseSelection.
<PDF Reader control>: Control name
Name of PDF Reader control to use.

Changing how the PDF Reader control reacts to mouse input Hide the details

<PDF Reader control>.UseMode = <New mode>
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<New mode>: Integer constant
New mode for using the PDF document:
useModeMovementThe field is in displacement mode:
  • the left mouse button allows you to move within the document.
  • the mouse cursor turns into a hand.
  • if the ribbon is displayed, the "Move" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseMovement.
useModeOCRThe field is in selection mode:
  • the left mouse button allows you to select the document elements.
  • the cursor changes to a lasso.
  • if the ribbon is displayed, the "OCR" option is selected ("Display" tab, "Mode" group).
useModeSelectionThe field is in selection mode:
  • the left mouse button allows you to select the document elements.
  • the mouse cursor turns into an input cursor.
  • if the ribbon is displayed, the "Selection" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseSelection.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help