Optimize the PDFViewerApp for a touch device
- Last UpdatedJul 18, 2024
- 1 minute read
The visual icons shown within the viewer window of the PDFViewerApp can be enlarged to make them easier to select on touch screens or portable devices.
The following screen captures show the default size of the PDFViewerApp's visual icons and their size after they have been enlarged for touch. AVEVA OMI includes the OptimizeForTouch Boolean attribute that belongs to the MyViewApp.Settings namespace. The default value of OptimizeForTouch is false. When OptimizeForTouch is set to true, the size of the visual icons is enlarged.
|
OptimizeForTouch Attribute Value |
Example Icons |
|---|---|
|
MyViewApp.Settings.OptimizeForTouch= |
Regular Size (Non-Touch)
|
|
MyViewApp.Settings.OptimizeForTouch= |
Optimized for Touch
|
A common way to dynamically adjust the size of the visual icons in a running ViewApp is to place a graphic element like a button on a pane and then associate user input animation to toggle the state of the OptimizeForTouch attribute.

