View Single Post
  #1 (permalink)  
Old 07-01-2007, 04:01 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 15,676
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Creating Kiosk applications

Sometimes there is a need to "protect" the user from itself and not allow him to quit your application.
These kind of applications are called kiosk applications.
There are three things you should do to create a kiosk application:
  1. The application should be full screen so the user will not be able to reach the Today menu.
  2. Override the hardware buttons functionality.
  3. Put a shortcut for your application under \Windows\StartUp
How it's done?
  1. Use FormLib.FullScreen method.
  2. Use the updated Hardware library. Read the keys values from the registry and catch all the keys.
  3. This can be done in the installation package.
    You need to change line 144 of the SetupBuilder from:
    if chkShortCut.Checked = true then FileWrite(c,AppName & ",0," & lstFiles.Item(e) & ",%CE11%")
    to:
    if chkShortCut.Checked = true then FileWrite(c,AppName & ",0," & lstFiles.Item(e) & ",%CE4%")
    This will create the shortcut under \Windows\StartUp instead of \Windows\Programs
See the attached source code for an example of a kiosk application.
Attached Files
File Type: zip Kiosk.zip (34.6 KB, 471 views)

Last edited by Erel : 01-14-2008 at 05:36 AM. Reason: Libraries were updated.
Reply With Quote