home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
pstry106.zip
/
PASTRY.DOC
< prev
next >
Wrap
Text File
|
1996-02-28
|
6KB
|
153 lines
The Pastry Box - version 1.06
This version of the utility has been recompiled to take advantage of
new Warp compile options. This means that this version will not
run under OS/2 2.0, OS/2 2.1, or OS/2 2.11.
This utility allows the user to load a file or text from the
clipboard into a listbox and then select multiple noncontiguous lines
to be pasted to the clipboard in one operation. I use it with an
offline mail reader to select lines from other sources to paste into
replies. It could also be used to select multiple names from an
organization list to form a distribution list. It could also be used
to make a subset of a list of items and copy the subset to the clipboard.
Because of the nature of a multiple selection listbox, each line to
be marked must be selected by a mouse click or key press. You cannot
mark multiple lines by dragging the mouse cursor.
The utility is WPS aware, so you may also select a file by dragging a
copy of it onto the icon object. It will not accept a file or text
dropped onto the open application.
There is no online help, but the utility is simple to use and the
menu selections are similar to other OS/2 PM applications.
The file INSTALL.CMD will install the utility on the desktop if you
have installed REXX. The files will be installed on the boot drive
under \OS2\APPS. If you want the utility to be installed on another
drive, you must modify the INSTALL.CMD file, or use the Drive object
to move the files PASTRY.EXE, PASTRY.ICO, and PASTRY.INI to the desired
location. If you use the Drives object move the files after the running
the INSTALL.CMD, the program object on the desktop will be updated.
The unmodified distribution ZIP file may be uploaded to other
bulletin board systems and on-line services.
This utility is not public domain, the author retains the copyright.
It may not be distributed with any commercial product without permission
from the author. Inclusion in CDROM collections of public domain and
shareware programs is acceptable and the author's permission is not
needed. This version of the utility is free for use on home
systems. A commercial site license for the program is available for $50
or $100 with the company name added to the application. Contact the
author via email for further information.
The author may be contacted via internet email as
don.hawkinson@twsubbs.twsu.edu or dwhawk@.southwind.net
The following is a simple description of the items on the Menu Bar.
File
This selection opens a standard OS/2 file dialog box and allows the
user to select a file to be loaded. The source file is loaded via a
thread, and all other functions are accessable while the file is loading.
The utility opens the source as read only so it will not modify the source
file. The utility will read up to 2048 character lines, lines longer will
be wrapped to the next line.
Search
This selection opens a menu that has five entries:
From Top
From Top Ignore Case
From Current
From Current Ignore Case
Enter Search Text
The search stops at the first match that is found
The search function will move the line that contains the matched text to
the top of the listbox, unless the last line of the file is already on
screen. The line will also be marked.
Global
This selection opens a menu that has three entries:
Select All
Deselect All
Clear All
Select All will mark all of the lines in the listbox, Deselect All
will unmark all of the lines. The standard shortcut key combnation
Ctrl+/ will mark all of the lines and the key combination Ctrl+\ will
unmark all of the lines. Clear All will remove all of the lines from
the listbox. They are not moved to the clipboard.
Copy
This selection opens a menu line that has one entry - Copy. This
will copy the marked line or lines to the OS/2 clipboard. The standard
shortcut key combination of Ctrl+Ins will also copy the marked lines
into the OS/2 clipboard. When the marked lines are copied from the
listbox, the trailing blanks are removed from the line. This was added
to eliminate the trailing blanks that were present in some of the OS/2
announcements and were causing line wrap problems when I posted the
messages on my local BBS.
Paste
This selection opens a menu line that has one entry - Paste. This will
paste text from the clipboard into the listbox. The standard shortcut
key combination of Ctrl+Ins will also paste text from the clipboard
into the listbox.
This version has an additional option for inserting text from the
clipboard when there is already text loaded in the application's
listbox. If a line of text is marked, the text from the clipboard
will inserted above the marked text. If no text is marked, the text
from the clipboard will be appended at the end of listbox.
The Copy and Paste menu selections now have a submenu and the
"standard" WPS shortcut keystrokes are now active. The Control
Insert key combination will copy marked lines to the clipboard and
the Shift Insert key combination will paste text from the clipboard
into the listbox.
Time
This selection opens a menu line that has one entry - Stamp. This
will paste the system time and date into the listbox. No particular
reason, I saw the IDate and ITime classes and wanted to try them. The
time stamp is handled like the text pasted from the clipboard. If
there is a marked line, the time stamp will be inserted above that line.
Exit
This selection opens a menu line that has two entries.
Save Settings
Exit
The font, text color, background color used in the listbox may be
configured via the drag & drop method. Configuration changes may be
saved by using the save settings option which is under Exit. Included
in the saved configuration information is the size and position of the
application's window on the desktop, the file selected, and the
search string.
The configuration is saved in the file PASTRY.INI. The .INI
file is read from the working directory, so you can have multiple
.INI files by changing the working directory entry in the settings
notebook for the program object. You can also have multiple copies
of the application open at one time if you desire.
About
This entry brings up a box with the copyright info and my name and
email addresses.
Don Hawkinson