home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
BUER
/
PULL245.ZIP
/
ADVANCED.DEF
next >
Wrap
Text File
|
1991-01-03
|
5KB
|
155 lines
MAXDEFS=3
' ADVANCED.DEF - Demonstrates the most advanced features of PullDown v2.40
' Heavily commented source courtesy of Sam Horton, MicroDynamics
' Last update Jan. 1, 1990
DEF
%Prompt Samples
'012345678901234567890
%Sample User-Defined Full Custom HELP Menu
HI=7
' This one is particularly slick... and useful.
' An entire tutorial/online reference could be defined using
' this system with these commands!
SCROLLBOX=SAMPLE.HLP,Sample Help
ABORT
' Returns to menu instead of exiting to execute TEMPPULL.BAT
' Syntax is SCROLLBOX=HelpFile,HeaderString
' Where: HelpFile is a valid DOS file containing only ASCII
' HeaderString is a unique header found in the help file,
' and the help is ended by ### ... see PULL215.DOC
'012345678901234567890
%Build Your Own Batch (Variable Handling Demo)
' NOTE: This is fundamentally different from v2.01
' with all standard batch facilities available. See documentation.
' In v2.17, not v2.15, the REQUIRED and NOTREQUIRED keywords are
' present..........
HI=6
OKBOX=You will now interactively build a unique batch file.
?Enter Drive as D: [Enter]=Default
?Enter Full CD\Path.. command: [Enter]=Default
REQUIRED
?Enter Program Execution Command (e.g. 123): [Required]
OKBOX=You will now select the file to load on startup.
LOADFILE=*.*
+echo off
+cls
+%1
+%2
+%3 %4
+PULLDWN
'01234567890123456789012345
%Setting up PullDown on a LAN
HI=25
' You could literally have entire menu subsystems
' set up in separate directories this way!
' Commented out here so that it does not screw up during your
' demo run.
OKBOX=Examine PULL245.DOC APPENDIX F: to see how this is done.
ABORT
' The solo "-" on a %TitleLine defines an UNSELECTABLE bar.
%-
'012345678901234567890
%Sample Dialogs
' For you REAL power users, here they are all in one.
' NOTREQUIRED is the default status of input boxes.
HI=7
YORN=Are you sure you want to use this option?
REQUIRED
?Sample of Prompting for REQUIRED input:
NOTREQUIRED
?Sample of Prompting for Input that can be NUL (Nothing):
OKBOX=Now you will see the powerful file load dialog box.
REQUIRED
LOADFILE=*.*
OKBOX=This option requires a password. [Esc]=Quit
SCROLLBOX=SAMPLE.HLP,Red Herring
PASS=YouCannotKnowThis
ABORT
' Password failures ABORT execution. Since you did not know
' that password, you never got to this option.
' Used ABORT as this is only a demo file.
'012345678901234567890
%Sample Dialogs 2
HI=15
REQUIRED
?Sample of Prompting for REQUIRED input 1/2:
?Sample of Prompting for Required Input #2:
OKBOX=You may wish to use this method to prevent any NUL inputs.
ABORT
' As you can see, REQUIRED sticks until toggled OFF with NOTREQUIRED
%-
'012345678901
%Automatic Execution of Commands
HI=11
@AUTOEX.DEF
%-
'012345678901234567890
%About PullDown...
HI=0
SCROLLBOX=SAMPLE.HLP,About PullDown...
ABORT
DEF
% Nest Sample
%Return to Main Menu
OKBOX=You could have done this by mouse clicking on "PullDown"
@PULLDWN.DEF
' The PATH for an @ command is dictated by the pathing options
' you select. See APPENDIX F: in PULL240.DOC for detail.
%Circle back to this menu
@ADVANCED.DEF
%Enter WINDOWS menu
@WINDOWS.DEF
DEF
%Exit
%Return to the Main Menu
' NOTICE that this is *not* exactly the same string as above ^^
' if it was, then the FIRST occurence would be executed. This
' small limitation will disappear upon release of the compiler.
OKBOX=You could have done this by mouse clicking on "PullDown"
@PULLDWN.DEF
'012345678901234567890
%Exit to DOS
HI=1
YORN=Are you sure?
OKBOX=Thank you for evaluating PullDown! Enjoy!
+echo off
+cls
+echo Type PULLDWN [ENTER] to return to PullDown.
+echo.
' End of ADVANCED.DEF file.
' SLH 12/90-1/91
' Please consider supporting shareware! Thank you.