KNOWLEDGE BASE

face-white

Terminal Programming

14.12.2006 11:05

KB050142 | CLOSE POPUP PAGE VIA PUSH BUTTON

INF

Product: Elvis
Version: 2.5
Stand: 2006-12-14

Summary

A Popup Page can be closed via the standard “Close”-Cross in the title bar. Especially for touch operation this might be too small.

This article describes how to alternatively close the popup page via a StateButton placed on a page.

Details

First place a StateButton on the page. It is sufficient if it has only one state. Assign the picture or text to the states “-” (unknown) and “0”.

Then add some code to be executed on mouse click via “Events..” (Context menu):

//CODE:vb:Sub NameOfTheControl_Click()
 Form.Document.Close
End Sub//CODE