Running in Kiosk Mode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

Running in Kiosk Mode

Post by saratogacoach » Sat Jun 13, 2009 1:54 pm

Hi,

If I want to run an 800X600 stack's window in Kiosk mode, with the screen around the window black (or another color), how would I create this?

In the dictionary, I found "backdrop" and the sample:

Code: Select all

set the backdrop to "black"
But, I am not sure, as a beginner, where to place this code to produce a window running in this Kiosk mode. (Also, how could I change the backdrop's color?)

Any help would be appreciated.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jun 13, 2009 5:55 pm

Hi Coach,

put it into the script of your stack:

Code: Select all

on preopenstack
  set the loc of me to the screenloc
  ## So this window will appear in the middle of the screen

  set backdrop to 255,0,0
  ## Set it to any color as RGB triplet or use the colors name
  ## Check "colornames" in the docs to see what names are supported
end preopenstack
Et voily, Kiosk Mode :-)


Best

Klaus

saratogacoach
Posts: 87
Joined: Thu Jul 17, 2008 8:42 pm

Post by saratogacoach » Sat Jun 13, 2009 6:03 pm

Hi Klaus,

Yes, that worked nicely. :)

Thanks.

Kind Regards,
saratogacoach
LiveCode 4.6.0, Windows 7 Home Premium 64 bit, Core i7 2.80, 8G RAM, ATI Radeon HD5770

Post Reply