[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
|
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
2201.0. "Customizing Fileview menus" by JANUS::CWALSH (If it's wind, I'll call it Shaw) Mon Feb 05 1990 11:02
As a technical writer, I naturally use DOCUMENT a good deal, and I'd like to
make it available via my Fileview Utilities menu. Not only do I want DOCUMENT
available, but the nature of the work that I do means that I nearly always use
the same small set of design types and destinations. What I would like to be
able to do is:
1. Click on the name of an SDML file.
2. Pick one of several DOCU commands from the Utilities menu, according to the
particular combination of design and destination that I'm using.
3. Sit back and think profoundly about virtually anything except DOCUMENT.
I tried to add DOCU to my Utilities menu, associating with it the DCL command
that included a particular design and destination. The one thing that I didn't
specify, of course, was the name of the SDML file to be compiled, since I
assumed that having selected this, DECwindows would know which file I was
talking about. Well, in the words of the old song, it ain't necessarily so. When
I tried to run DOCU from my Utilities menu in this way, the task output window
came up with a message from DOCU to the effect that I hadn't specified all the
necessary parameters. The only thing I hadn't specified, as I've said, is the
file name, because I selected that before using the menu. I had assumed that,
since all the stuff in the Files menu works like that, the Utilities menu would
be the same. I tried adding my DOCU command to the Files menu instead, but the
problem remains.
How can I get this to work?
Chris
T.R | Title | User | Personal Name | Date | Lines |
---|
2201.1 | Two choices | DECWIN::KLEIN | | Mon Feb 05 1990 11:56 | 16 |
| You have two options.
In the DCL command for any verb, FileView substitutes the name of the selected
file (if any) for the string 'vue$current_file, for example:
DOCUMENT 'vue$current_file
However, you might be better off using .COM file for the command. The command
file could even look at the filetype and do different things based on it.
Look at the files in VUE$LIBRARY:*.COM for lots of examples. Pick one
that is close to what you want and start with that.
All menus behave the same way. There are no special rules for any of
the menus (except the "Views" menu which contains saved views, not verbs).
-steve-
|
2201.2 | Thanks | JANUS::CWALSH | If it's wind, I'll call it Shaw | Tue Feb 06 1990 05:56 | 6 |
| Steve,
Many thanks for the information and the prompt reply.
Chris
|
2201.3 | Document command procedure | DRMVAX::TWOMEY_TIM | Tim Twomey | Wed Feb 07 1990 08:53 | 66 |
| Hi,
A while ago I wrote a command procedure to use document under Fileview. Maybe
you can use this as a base for what you need...
Tim
$!*************************************************************************
$! Copyright (c) 1988 Digital Equipment Corporation. All rights reserved.
$!
$! Command procedure to run Vax Document
$!************************************************************************
$!
$ on warning then goto doc_error
$!
$! Set defaults
$!
$ vue$set_symbol "DOC_TYPE SOFTWARE.GUIDE"
$ vue$set_symbol "DOC_DEST POST"
$!
$! how many selected?, read in number
$!
$ vue$get_selection_count
$ vue$read count
$ if count .ne. 0 then goto get_file
$!
$ vue$inquire_symbol "selection Filename:"
$ vue$read selection
$ goto doc_loop
$!
$get_file:
$!
$ vue$get_next_selection
$ vue$read selection
$!
$doc_loop:
$!
$! Get the Document type
$!
$ if "''doc_type'" .eqs. "" then doc_type = "SOFTWARE.GUIDE"
$ vue$inquire """Document Type:"" ""''DOC_TYPE'"""
$ vue$read doc_type
$!
$! Get the Document destination
$!
$ if "''doc_dest'" .eqs. "" then doc_dest = "POST"
$ vue$inquire """Document Dest:"" ""''DOC_DEST'"""
$ vue$read doc_dest
$!
$! Run Doc
$!
$ Document/contents 'selection' 'doc_type' 'doc_dest'
$!
$! get next file selected
$!
$ vue$get_next_selection
$ vue$read selection
$ if "''selection'" .NES. "" then goto doc_loop
$!
$doc_exit:
$ exit
$!
$doc_error:
$!
$ vue$set_error_status
$ exit
|