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

Conference bulova::decw_jan-89_to_nov-90

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

373.0. "x,y location of terminal windows" by ROCK::PERSELS () Thu Mar 09 1989 20:38

    How do I get set the default x,y location of the terminal windows
    created by the session manager?????????
    
    
    					Shawn

T.RTitleUserPersonal
Name
DateLines
373.1bugs me tooCADSYS::YOSTFri Mar 10 1989 09:299
    
     I find this annoying too. It is not configurable from the session
    manager. I think the session manager just utilizes its own 'best fit' 
    for the size of terminal window(s). There may be an undocumented parameter
    for sys$library:decw$terminal.dat or decw$terminal.uil (note, we don't get
    the source *.uil , just the compiled *.uid) or something else.
    
    clay

373.2VWSENG::KLEINSORGEToys 'R' UsFri Mar 10 1989 09:478
    
    I don't get the impression that any "best fit" is done, since I
    consistantly get terminal windows created partially offscreen
    (hardly a best fit).  It looks like the windows always start at
    a specific location and each additional one is slightly lower and
    to the right of the previous one.
    

373.3You can't do it from the session managerPRNSYS::LOMICKAJJeff LomickaFri Mar 10 1989 12:187
Start them from DECW$LOGIN.COM using the command:

$ CHILD/X=x-coord/Y=y-coord/IMAGE=SYS$SYSTEM:LOGINOUT.EXE/NOPASS/DETACH

Get CHILD from PRNSYS::RELEASED_TOOLS:[CHILD]*.*, read CHILD.TXT.


373.4There's no increment resource eitherREVEAL::LEEWook... Like 'Book' with a 'W'Fri Mar 10 1989 16:5312
I asked this question in the DECterm conference and was told that the x and y
increments were hard coded at 10 pixels each if my memory isn't fried.

Now I use Child and my own setup files which I can edit if I want to change
anything rather than have to edit my login everytime.

BTW: CHILD doesn't seem to be translating my process-level logicals that I pass
as part of the setup file specification.  I ended up parsing it myself using the
f$parse lexical with the noconceal argument.

Wook

373.5CHILD/SETUP parsing contextPRNSYS::LOMICKAJJeff LomickaMon Mar 13 1989 10:478
The set-up file name in CHILD is parsed in the context of the DECTerm
process.

I suppose I should SYS$PARSE this before I send it on to DECTerm, but
for now, your workaround is the correct procedure.



373.6Resources will work, but not as expectedOIWS20::BRYSONMon Mar 13 1989 12:3569
You can set the X and Y position of your DECterms through resources, but not
as you would think.  It is true that the increment for the offsets are set
at 30 and that the default x and y position is 100,100; however, the following
resources will affect these if used in selected ways:

	DECW$TERMINAL.x:	<some x pixel location>
	DECW$TERMINAL.y:	<some y pixel location>

Now for the kludgy part!

You could create a special customization file for EACH of your expected
DECterm terminals. To make it easy to use, call them

		SYS$LOGIN:DECW$TERMINAL_<unique name>.DAT

In this file, place the above lines with the desired positions. Select
the "Use Last Saved Settings From..." under Customize menu.  Select the
appropriate customization file.  WARNING: this will probably reset
some parameters, so the customization file may need to have more resources
to specify the characteristics you desire.  The terminal will move to
the requested location.

A little bit nicer change is to the way that DECterms are created on the 
display which does not involve going to each DECterm.  These modification are
to the file SYS$LOGIN:DECW$TERMINAL_DEFAULT.DAT.  I use 0 here in the
examples but you can specify whatever position you like.

1.  All DECterms to appear on top of one another (same as ultrix)

	DECW$TERMINAL.x:	0
	DECW$TERMINAL.y:	0

    Not extremely nice, but...

2.  DECterms appear vertically when created.

	DECW$TERMINAL.x:	0

    Looks like

		-------------------
		|     DECterm 1   |
		-------------------
		|     DECterm 2   |
		-------------------
		|     DECterm 3   |
		|                 |
                -------------------

3.  DECterms appear horizontally when created.

	DECW$TERMINAL.y:	0

    Looks like

		----------------------------
		|  |  |  |    DECterm 4    |
		|  |  |  |                 |
		----------------------------

    Not quite as usable, but...

Remember, the increment CANNOT be changed, so in 2 and 3 the offset is always
30 pixels.


David