ph_setmode PowerHome formula function
Description
Sets the operating mode of PowerHome.
Syntax
ph_setmode ( n )
Argument |
Description |
n
|
The mode to set PowerHome to. use 0 for "Normal" mode, 1 thru 3 for "Kiosk" mode. A value of 1 places PowerHome in Kiosk mode with the main window being the Control Center. A value of 2 is Kiosk mode with the main window being the X10 Status screen. A value of 3 is Kiosk mode with the main screen being the Web Center.
|
Return value
Integer. Returns a 0.
Usage
While in "Kiosk" mode, PowerHome is maximized and can't be closed or minimized. The menu is also restricted to just macros and PowerHome cannot be used for any database maintenance, etc. You will be able to programmatically affect aspects of PowerHome such as using ph_windowstate to minimize PowerHome while in Kiosk mode however. Once placing PowerHome in Kiosk mode, be sure you have a way to get back to "Normal" mode either through a trigger, macro, or similar.