Sash XB for Linux
Home |  Documentation  ... Contact

Using the Linux Extension

1. Sash.Linux

Sash.Linux exposes command-line arguments and additional UI input boxes.
Properties
string array Arguments
An array of strings containing the command line arguments passed to the weblication. To specify command-line arguments when running a weblication, pass the --args flag to sash-runtime. For example, if you run
% sash-runtime MyWeblication --args arg1 arg2 arg3
Sash.Linux.Arguments will be [arg1,arg2,arg3]
Methods
string FileDialog(string default_name)
Pops up a file dialog (allowing the user to select a file). Returns the name of the file selected. Returns an empty string if 'Cancel' is clicked or the dialog is destroyed. default_name is the file that will be selected initially.
long Dialog(string title, string prompt, array buttons [, long default_button, long icon])
Presents an arbitrary dialog with title title containing prompt and buttons. The number of buttons and button text are determined by buttons, which contains an array of strings. default_button specifies the index of the default button, and icon determines the icon that should be displayed (0: Information, 1: Warning, 2: Error). Returns the index of the button pressed or -1 if the window is destroyed (with the 'x' button).


Wing Yung
Last modified: Fri Mar 22 14:17:48 EST 2002

  
© Copyright 2002, All Rights Reserved. Contact