12 Standard Dialogs

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:

Program 27: fileDialog.bet

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;
#)

Program 28: screendump
(Windows NT)

[23kb 354x185 GIF]


Lidskjalv: User Interface Framework - Tutorial
© 1995-2004 Mjølner Informatics
[Modified: Friday October 27th 2000 at 14:56]