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 DisplayMode property gets and changes:
  • WINDEV the display mode in a Word Processing control,
  • WINDEV the display mode in a PDF Reader control,
  • WINDEV the display mode in an HTML Editor control,
  • the display mode in a Kanban control.
Example
// [Web mode] button
WP_Doc.DisplayMode = displayModeWeb
IF ScreenType() = stTablet THEN
KANBAN_TASKS.DisplayMode = displayModeKanbanMultiList
END
Syntax

Getting the display mode of an Office control Hide the details

<Result> = <Control used>.DisplayMode
<Result>: Integer constant
Current display mode of the control:
displayModeContinuousThe white space between pages is hidden.
Remark: This constant is only available for HTML Editor controls.
displayModeHtmlSourceCodeThe HTML source code is displayed in the HTML Editor control.
Remark: This constant is only available for HTML Editor controls.
displayModeKanbanMultiListMultiple lists can be displayed simultaneously in the Kanban control. This constant corresponds to the "Multiple lists" option in the "Details" tab of the Kanban control description window.
Remark: This constant is only available for Kanban controls.
displayModeKanbanSingleListOnly one list will be displayed in the Kanban control. The other lists can be accessed by scrolling horizontally. This constant corresponds to the "Scrollable centered list" option in the "Details" tab of the Kanban control description window.
Remark: This constant is only available for Kanban controls.
displayModeOnePage
(Default value)
The document is displayed as it will be printed.
Remark: This constant is not available for HTML Editor controls.
displayModeTwoPagesThe document pages are displayed side by side.
Remark: This constant is not available for HTML Editor controls.
displayModeTwoPagesWithCoverThe document pages are displayed side by side. The first page is set as cover page. The first page is displayed on the right.
Remark: This constant is not available for Word Processing or HTML Editor controls.
displayModeWebThe document is displayed as a Web page.
Remark: This constant is not available for PDF Reader controls.
<Control used>: Control name
Name of the control to be used:
  • Word Processing control.
  • PDF Reader control to use.
  • HTML Editor control.
  • Kanban control.

Changing the display mode of an Office control Hide the details

<Control used>.DisplayMode = <New mode>
<Control used>: Control name
Name of the control to be used:
  • Word Processing control.
  • PDF Reader control to use.
  • HTML Editor control.
  • Kanban control.
<New mode>: Integer constant
Display mode to apply to the control:
displayModeContinuousThe white space between pages is hidden.
Remark: This constant is only available for HTML Editor controls.
displayModeHtmlSourceCodeThe HTML source code is displayed in the HTML Editor control.
Remark: This constant is only available for HTML Editor controls.
displayModeKanbanMultiListMultiple lists can be displayed simultaneously in the Kanban control. This constant corresponds to the "Multiple lists" option in the "Details" tab of the Kanban control description window.
Remark: This constant is only available for Kanban controls.
displayModeKanbanSingleListOnly one list will be displayed in the Kanban control. The other lists can be accessed by scrolling horizontally. This constant corresponds to the "Scrollable centered list" option in the "Details" tab of the Kanban control description window.
Remark: This constant is only available for Kanban controls.
displayModeOnePage
(Default value)
The document is displayed as it will be printed.
Remark: This constant is not available for HTML Editor controls.
displayModeTwoPagesThe document pages are displayed side by side.
Remark: This constant is not available for HTML Editor controls.
displayModeTwoPagesWithCoverThe document pages are displayed side by side. The first page is set as cover page and is displayed on the right.
Remarks:
  • Using this constant changes the display mode but it does not change the document zoom in the PDF Reader control. To change the zoom, use the Zoom property.
  • This constant is not available for Word Processing or HTML Editor controls.
displayModeWebThe document is displayed as a Web page.
Remark: This constant is not available for PDF Reader controls.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/03/2024

Send a report | Local help