Displaying a Button to Close a Window

<< Click to Display Table of Contents >>

 

Displaying a Button to Close a Window

The Faceplate Screen window can have its style configured to hide the button to close the window or to hide the title bar. On the next figure, the flagShowCloseButton, flagShowMaximizeButton, and flagShowMinimizeButton properties are configured to False.

Hidden or inactive titlebar buttons

Hidden or inactive titlebar buttons

On the next figure, the flagShowWindowTitle property is configured to False.

Hidden titlebar

Hidden titlebar

In this case, users must configure the HorizontalOffset property of the ~hpXFaceplateConfig object to a value different from 0 (zero), as shown on the next figure, to display a Close button on the window's body.

Close button instantiated on a window

Close button instantiated on a window

To keep this button invisible, configure the HorizontalOffset property with the value 0 (zero).

Was this page useful?