[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2086.0. "EDIT Function and Initialization Files " by AIMTEC::BUTLER_T () Thu Jan 14 1993 22:14

    Hello:
    
    edit function, 2nd parameter - editor initialization file.
    
    I am trying to edit a text file with the wpsplus editor and
    I have no idea what wpsplus initialization file it is using,
    system, 0, or the user default.  Even when I specify a .wpl
    on the input file, I am still not sure.
    
    Note: the edit functions tried below were not the first time
    for the session.  I wanted to see what the oa$edit_****
    symbols would look like.
    
    When I do the following it *works out* as I wanted a
    right margin of 80.
    
    	edit test.wpl,wpsdef.wpl,,wpsplus  
    	(I used full pathname for my default init file)
    
    oa$edit_init_file is never set according to the trace.
    
    When I do it this way:
    
    	edit test.txt,wpsdef.wpl,,wpsplus
    
    I get no right margin.  Again oa$edit_init_file is not set.
    
    Now, the questions:
    
    1) How can I pass the initialization file I want when using
    the editor function?  Can I?
    
    2) Can this init file be created to be used by an application
    or must it be used by all users on the system?
    
    3) Without going to the wpsplus conference can someone tell
    us which point wps takes over and what it does?
    
    Thanks,
    
    Tim
                                             
T.RTitleUserPersonal
Name
DateLines
2086.3WPS-PLUS does not have init-filesIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Fri Jan 15 1993 18:016
I've talked to a WPS-PLUS engineer and the WPS-PLUS editor does not support
an initialization file.  If the EDIT function is used to call the WPS-PLUS
editor the init-file parameter will be ignored. 


Richard
2086.4Use a UDPBRUMMY::MARTIN::BELLMartin Bell, TCC, Birmingham UKMon Jan 18 1993 11:2925
Tim,

if you want to perform some "initialisation" when activating the WPS-PLUS
editor, try calling a UDP before the EDIT function, This can then contain
the keystrokes to set rulers, enter text, position the cursor etc.

eg.

udp somewhere:wpsinit
edit test.wpl

where the WPSINIT file could contain

{gold t}{gold r}5{return}{gold b}

to automatically include ruler number 5.


I am sure that someone more knowledgeable than me can explain the
various script stacks that make this work, and any possible side
effects.

Cheers,

mb