home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Millennium Time Capsule
/
AC2000.BIN
/
disks
/
ac11disk
/
ss130
/
geturl.sgs
< prev
next >
Wrap
Text File
|
1998-08-27
|
575b
|
17 lines
# GETURL.SGS
# Displays a dialog via the form plug-in where the user enters an
# URL which is then displayed by CAB. You could also add printing
# routines and more...
id=form.new(CAB-Loader,@OK|Cancel,37,3); # Create new dialog
form.add(id,Text,1,0,Enter an URL:); # Add text to dialog
editfield=form.add(id,Edit,1,2,http://,35); # Add editfield to dialog
waitfor(on);
form.do(id); # Wait for user input
waitfor(off);
page=form.get(id,editfield); # Get user text
cab.open(page); # Open page in CAB
form.delete(id); # Delete the dialog