Page 1 of 1

Running in Kiosk Mode

Posted: Sat Jun 13, 2009 1:54 pm
by saratogacoach
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,

Posted: Sat Jun 13, 2009 5:55 pm
by Klaus
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

Posted: Sat Jun 13, 2009 6:03 pm
by saratogacoach
Hi Klaus,

Yes, that worked nicely. :)

Thanks.

Kind Regards,