home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
kpwdemo.zip
/
DEVELOP.SRC
< prev
next >
Wrap
Text File
|
1990-06-28
|
8KB
|
197 lines
:dWin is window (,7.5,2,79.28,11,,[popup,DialogFrame,showChildren,siblings]).
text ('
The window below shows the menu of the development environment. The
development environment includes a multi-document editor and a set of
debugging tools. Applications can be run from a text file, compiled
file or directly from an edit window.
#x15Select any menu item for a description of its function. ').
button ('Return to the Top Screen',return,25,9,).
:menuWin is window (,1,13.5,first (system_info ()),15,,
[popup,showChildren,siblings,TitleBar,thickFrame]).
:m2 is menu ( [
[&File, &New, '&Open...', C&lose, &Save, 'Save &As...', &Print,
[ ], '&Compile...', '&Run...', [ ], E&xit, 'A&bout KnowledgePro...'],
[&Edit,'&Undo Alt+Bksp',[ ],'Cu&t Shift+Del','Copy Ctrl+Ins', '&Paste Shift+Ins',
'&Delete Del', [ ], '&Select All',[],'&Word Wrap', &Include],
[&Search,&Find,'Find &Next F3', '&Change...', [ ], '&Go To Line... F4' ],
[&Go], [&Clear], [&Window,'&Arrange All', [ ] ],
[&Debug,&Topics,&Evaluate, 'T&race...', &Calls],
[&Options,&Shrink, '&Create Backups', '&Remote Requests'],
[&Help] ], menuselect).
disable_menu_item (?m2,[&New, C&lose, &Save, 'Save &As...', &Print,
E&xit, 'A&bout KnowledgePro...','&Undo Alt+Bksp',
'Cu&t Shift+Del','Copy Ctrl+Ins', '&Paste Shift+Ins',
'&Delete Del', '&Select All','&Word Wrap', &Include,
&Find,'Find &Next F3', '&Change...', '&Go To Line... F4']).
show_window ([?dWin,?menuWin]).
topic menuSelect (item).
if ?item is '&Open...'
then set_title (?menuWin, 'Windows Standards') and
standard ( )
else set_title (?menuWin, string_replace (?item,'&','')) and
do (?item).
topic '&Compile...'.
text ('#e
Completed applications are compiled using this option. Compiled
applications load quicker and can be distributed with the #mruntime system#m.').
end.
topic '&Run...'.
text ('#e
Applications can be run either from a text file or from a compiled file.
When Run is selected, any application currently in memory is removed.').
end.
topic &Clear.
text ('#e
This option clears any knowledge base currently in memory. Memory is
automatically cleared when Run or Go are selected. It can also be cleared
under knowledge base control using the function CLEAR.').
end.
topic &Go.
text ('#e
This option clears memory then compiles and executes the knowledge base in
the currently selected editor window.').
end.
topic '&Arrange All'.
text ( '#e
A standard Windows multi-document interface allows you to edit many files
at the same time. Edit windows can be tiled, overlapped, or fill the
screen. Each open text file is listed on the sub-menu under Arrange All
for easy selection.').
end.
topic &Topics.
text ('#e The topic is the basic program unit in the KnowledgePro
language. One of the ways topics are used is to organize the contents of
the application. This option displays all of the topics in the application
currently in memory. Since topics can be nested inside others, the list is
indented to show the topic hierarchy.
With a mouse click, any topic can be expanded to show its properties,
values and commands. These can be changed dynamically from this display.
#mSelect here to see the topic display for this application#m then close
the window from the control menu to continue. ').
topic 'Select here to see the topic display for this application'.
make_topic_list ().
end.
end. (*&Topics*)
topic &Evaluate.
text ('#e
When Evaluate is selected, the text in the currently active edit window is
compiled and run without first clearing the current knowledge base. This
is very useful for debugging and testing purposes.').
end.
topic 'T&race...'.
text ('#e
Trace lets you produce a detailed record of the actions of your program.
Each topic call and information passed to it is listed. The trace can be
sent to a file, display window or the printer. Trace is used to track down
those hard-to-find programming problems. ').
end.
topic &Calls.
text ('#e
Calls provides you with a list of which topics have been called and not
yet executed. It provides a record of the current state of the knowledge
base. ').
end.
topic &Shrink.
text ('#e
When Shrink is checked, the development environment is shrunken to an
icon whenever an application is run using either RUN or GO. Unchecked,
applications run on top of the development environment. You can move
between your running application and the development environment by
pressing ALT F6 or, with a point and a double click of the mouse on the
KnowledgePro icon. ').
end.
topic '&Create Backups'.
text ('#e
When Create Backups is selected, a backup file with a .BAK extension is
made every time you copy over a file.').
end.
topic '&Remote Requests'.
text ('#e Remote Requests allows KnowledgePro to respond to DDE requests from other
applications. Any KnowledgePro command or list of commands can be
executed via DDE.
Please keep in mind that, while the runtime can freely be distributed,
tools which themselves have the capacity to create other applications or
which transmit a subset of KnowledgePro''s functionality may require
special arrangements.
If you are unsure of whether your project falls into this category,
please contact Knowledge Garden.').
end.
topic &Help.
text ('#e
The help system gives you access to the complete syntax of all
KnowledgePro functions. Syntax can be copied to the clipboard
and pasted into your application. Help contains information about
converting from KnowledgePro (DOS) and event handling. All of the
Help source code and text files are included, allowing you to customize
Help.
#mSelect here to call the KnowledgePro Help System#m').
topic 'Select here to call the KnowledgePro Help System'.
load ('kphelp.hkb',temp2).
'!helpdir' is current_directory ( ).
hide_window ( [?dWin,?menuWin] ).
temp2 ( ).
remove_topic (temp2).
hyper_display (?hyperColor,,?hyperFont).
use_font (system_font).
show_window ( [?dWin,?menuWin] ).
end.
end.(* &Help *)
topic standard.
text ('#e
KnowledgePro (Windows) uses standard Windows menu items for loading,
saving, editing, using the clipboard, and printing text files. A
multi-document interface allows many edit windows to be opened on screen
at the same time. We use the following file naming conventions:
. KB - a text file for a stand alone program (knowledge base)
.SRC - a text file for a program used as part of a larger application
.CKB - a compiled .KB
.HKB - a compiled .SRC
.HYP - a hypertext file').
end. (*standard*)
end. (*menuSelect*)
topic 'Runtime system'.
text (#e,' KnowledgePro includes a free runtime which can be distributed
with your applications.
The only limitation to this free runtime is on applications which
are themselves application development tools. In this case
you must contact Knowledge Garden regarding distribution of
the runtime.').
end.
topic return.
close_window ([?dWin,?menuWin]).
continue ().
end. (*return*)