Methods
The AppWindow object contains the following methods.
enterFullScreenMode Method
This method provides a programmatic way to change the application to full screen mode. This method may not work in some cases.
Syntax
appWindow.enterFullScreenMode();
Input Parameters
None
Return Values
None.
Remarks
This method does not have an effect in tablet mode.
Platform Availability
Windows 10.
Example
var appwindow = voltmx.application.getAppWindow();
appwindow.enterFullScreenMode();
exitFullScreenMode Method
This method provides a programmatic way to change the application to the normal resizeable view in desktop mode. This method does not have any effect in Tablet mode.
Syntax
appwindow.exitFullScreenMode ();
Input Parameters
None
Return Values
None.
Platform Availability
Windows 10.
Example
var appwindow = voltmx.application.getAppWindow();
appwindow.exitFullScreenMode();
navigateBack Method
This method provides a programmatic way to navigate back to a previously visited form. This method should not be called in form and application life cycle events.
Syntax
appWindow.navigateBack (); ```
<b>Input Parameters</b>
None
<b>Return Values</b>
None.
<b>Platform Availability</b>
Windows 10.
Example
var appwindow = voltmx.application.getAppWindow(); appwindow.navigateBack();
* * *
</details>
<details close markdown="block"><summary>resizeView Method</summary>
* * *
This method attempts to set the app window to the specified size.
<b>Syntax</b>
appWindow.resizeView(
windowprops);
<b>Input Parameters</b>
windowprops
Specifies the size of the app window.This parameter is a JSObject with the following keys. These keys are mandatory.
* height - \[double\] The minimum height of the window.
* width - \[double\] The minimum width of the window.
<b>Return Values</b>
None.
<b>Remarks</b>
The method may not work in all cases.This method does not have an effect in tablet mode.
<b>Platform Availability</b>
Windows 10.
Example
var appwindow = voltmx.application.getAppWindow(); appwindow.resizeView({'height' : 500, 'width' : 500});
* * *
</details>
<details close markdown="block"><summary>setPreferredMinSize Method</summary>
* * *
This method sets the smallest size allowed for the app window.
<b>Syntax</b>
appWindow.setPreferredMinSize (
windowprops); ```
Input Parameters
windowprops
Specifies the smallest size allowed for the app window, or null if no minimum size is set.This parameter is a JSObject with the following keys. These keys are mandatory or null if not set.
- height - [double] The minimum height of the window.
- width - [double] The minimum width of the window.
Return Values
None.
Remarks
This method does not have an effect in tablet mode.
Platform Availability
Windows 10.
Example
var appwindow = voltmx.application.getAppWindow();
appwindow.setPreferredMinSize({'height' : 100, 'width' : 200});