Bulldozer: Menu Bar: Insert Menu Help!
- Before
- Sets the insert mode to insert before the current element.
- After
- Sets the insert mode to insert after the current element.
Note: For more information on these function see the
text insertion
page.
The user insert menu
The remaining options on the insert menu are user options. User options are
set withing the app-defaults file which is name Dozer.ad in the $BULLDOZERLIB
directory. They may also be set in any X resource file that is merged with the
resource database such as a .Xdefaults file in a home directory. The user
option functions take the standard out of a program and inserts it into the
current page, at the cursor location, as if you typed the text from the
keyboard.
There may ba a total of six user functions set within a resource file for
dozer. Each user functions had two resources. A label for the menu option
which will appear under the Insert menu and the program to execute. So the
total resources are:
*userFunction1Label:
*userFunction1Function:
*userFunction2Label:
*userFunction2Function:
*userFunction3Label:
*userFunction3Function:
*userFunction4Label:
*userFunction4Function:
*userFunction5Label:
*userFunction5Function:
*userFunction6Label:
*userFunction6Function:
If a function resource is set to NULL it's corresponding label resource will
not be put into the menu. The default Insert menu comes with two user
functions added by default. Thay are userFunction1 and userFunction2 and
provide a means to enter the current time and date respectfully. They are set
as follows.
*userFunction1Label: Time
*userFunction1Function: date '+TIME: %H:%M:%S'
*userFunction2Label: Date
*userFunction2Function: date '+DATE: %m/%d/%y'
Plese see the man pages for date for an explanation of the function resource
values.
If you add a user function a resource database other than the Dozer.ad file
you will want to prepend the string Dozer to the resources given above...
Dozer*userFunction1Label: Time
Dozer*userFunction1Function: date '+TIME: %H:%M:%S'