Lidskjalv contains a number of standard dialogs, including file selection dialogs. The attribute fileSelectionDialog will activate the standard file dialog and return the path name of the selected file:
ORIGIN '~beta/guienv/guienv'; INCLUDE '~beta/guienv/stddialogs'; --- program: descriptor --- guienv (# name: ^text; do fileSelectionDialog(# do 'fileDialog'->Title[] #)->name[]; (if name[]=NONE then 'Selected Cancel' -> putline; else name[] -> putline; if); terminate; #)
Lidskjalv: User Interface Framework - Tutorial | © 1995-2004 Mjølner Informatics |
[Modified: Friday October 27th 2000 at 14:56]
|