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
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
// Switches the control to move mode
PDF_MyPDF.UseMode = 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 mode for using the PDF document:
useModeMovementThe control is in move mode:
  • the left mouse button allows you to move within the document.
  • the mouse cursor turns into hand.
  • if the ribbon is displayed, the "Move" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseMovement.
useModeOCRThe control 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 control 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 control is in move mode:
  • the left mouse button allows you to move within the document.
  • the mouse cursor turns into hand.
  • if the ribbon is displayed, the "Move" option is selected ("Display" pane, "Mode" group).
Until version 27, this constant was named modeUseMovement.
useModeOCRThe control 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 control 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: 04/04/2023

Send a report | Local help