T.R | Title | User | Personal Name | Date | Lines |
---|
1467.1 | close...but... | GSRC::WEST | Variables don't, Constants aren't | Thu Sep 21 1989 01:19 | 24 |
|
Well the first thing to do is to identify the resource names to be used,
and yes, case matters.
Normally it is just the Session Manager that loads the resources. Not sure
offhand (no notes) what are all the files the session manager reads, I know of
two and they are DECW$SM_GENERAL.DAT and DECW$XDEFAULTS.DAT. It looks in the
dir's pointed to by the logicals DECW$SYSTEM_DEFAULTS and then
DECW$USER_DEFAULTS.
Unless the invidual apps are looking for particular resource files they will
reley on 'default' values, some of which are provided via the Session Manager.
Chances are the files you created are never being read simply for the fact that
no one is looking for them.
I don't know any of the resource names for the products/apps that you
mentioned, but it would probably be best if in your top level directory you
used the file DECW$XDEFAULTS.DAT. I think you will get the best results
from there.
-=> Jim <=-
|
1467.2 | onwards... | SEEYOU::HUTTON | Jim | Thu Sep 21 1989 11:04 | 16 |
|
I tried putting things in xdefaults as you said, no luck. However I
reread 181.* and around the end replies came across a pointer to
sys$library:*.dat where i found cms$dw_defaults, lse$defaults and
notes$defaults (all .dat).
copying them to, and changing them in, sys$login gave me what i
wanted. All except the lse intialstate 3. I tried
Tpu.initialState: 3
Tpu.Tpu$MainWindow.initialState: 3
but no luck here, still i suppose most is better than none.
I'm still looking for a bookreader setup though ?
|
1467.3 | How to find what you need to know... | LBDUCK::SCHOELLER | Who's on first? | Thu Sep 21 1989 11:18 | 40 |
| .1 is correct but is worded so as to be difficult to understand.
All toolkit applications (which includes all or most DECwindows applications)
make use of Xrm (the X resource manager). These applications will take
resource information from several places, DECW$XDEFAULTS.DAT,
DECW$SYSTEM_DEFAULTS:<appl-class>.DAT and DECW$USER_DEFAULTS:<appl-class>.DAT.
Some applications may explicitly open other resource information as well.
The information in DECW$XDEFAULTS.DAT is not read directly by the application.
Instead it is put into a property on the root window by the session manager.
<appl-class> which is used for determining the name of the resource files
is set by the application in the call to XtInitialize (or one of the related
initialization routines). This name is not necessarily the same as the name
of the executable. For example, NOTES$MAIN.EXE uses the class name
NOTES$DEFAULTS (ergo NOTES$DEFAULTS.DAT).
The names of the resources that the application deals with begin with
either <appl-class> or <appl-name> (another name provided at initialization).
This is how you can distinguish among applications with resources in
DECW$XDEFAULTS.DAT. Within <appl-class>.DAT the <appl-class> or <appl-name>
can usually be replaced with * (the wildcard character).
Now we come around to the tough part, how to determine what <appl-class> is
for an application that does not provide DECW$SYSTEM_DEFAULTS:<appl-class>.DAT.
I have an executable (untested for V2 but working for V1) which I hacked
from treewalk.c which walks the first levels of window heirarchy and reports
resource class (rc) and resource name (rn) among other information. You can
find it at:
GVRIEL::DUA1:[SCHOELLER.C.TREEWALK]MYTREE.EXE
GVRIEL::DUA1 is also accessible through DFS as
.eng.les.ecad.sim.gvriel_user
I hope this was clearer than mud 8^{).
Dick
|
1467.4 | a little of this, a little of that, the mud gets thicker... | SEEYOU::HUTTON | Jim | Thu Sep 21 1989 13:05 | 18 |
| re .3
I copied MYWALK.exe (as you almost said) but this only picks up on
some things, mainly 'none' with some cms & mail, no lse or bookreader,
whereas treewalk itself did find more...
Its looking like I'm gonna have to search the codes, read the books
to get any further...just a user, not a decw programmer, yet.
As a ps, I can get bookreader to initstate 3 using
Bookreader.initialState: 3 in xdefaults.dat, but no x or y positions.
I did try bookreader*.x: out of curiosity, that gave some VERY strange
results cos the frames stayed put but the text moved...
regards
jim
|
1467.5 | | MELTIN::dick | Who's on first? | Thu Sep 21 1989 16:33 | 27 |
| Sorry for the typo...
treewalk will display information about more windows but displays less
useful information for customizing applications. The window name should
match the text in the banner. The resource name and resource class are
useful for customizing. Anything which lists the resource name or class
as "none" has no resoures name or class. mywalk refrains from traversing
too deep in the tree simply because there is rarely (in my experience never)
any resource name or class data further down.
As to Bookreader. Try:
Bookreader.geometry: WIDTHxHEIGHT�X�Y
or
Bookreader.geometry: �X�Y
instead of .x and .y. This will only affect the main window.
Bookreader*geometry: �X�Y
should affect all Bookreader windows.
I have not been able to make the main window come up iconified and not
the others. Anybody know how to do this?
Dick
|
1467.6 | I use *Bookreader.initialState: 3 | VMSNET::M_HYDE | From the laboratory of Dr. Jekyll | Thu Sep 21 1989 16:45 | 2 |
|
|
1467.7 | I don't get out much... | GSRC::WEST | Variables don't, Constants aren't | Thu Sep 21 1989 23:00 | 13 |
| RE: <<< Note 1467.3 by LBDUCK::SCHOELLER "Who's on first?" >>>
-< How to find what you need to know... >-
>> .1 is correct but is worded so as to be difficult to understand.
sorry...
-=> Jim <=-
|
1467.8 | Just watch it try. | TALK::COTTAY | Jan 89: US tops 13K total warheads | Fri Sep 22 1989 06:52 | 4 |
|
I use $set watch file/cla=all & then run the application & catch it
trying to open the <appl-class>.dat file.
|
1467.9 | Case sensitive class names | MELTIN::dick | Who's on first? | Fri Sep 22 1989 10:11 | 7 |
| .8
That lets you know which file to edit/create. It does not help on capitaliztion
of class names.
Dick
|
1467.10 | set watch is nifty | SEEYOU::HUTTON | Jim | Fri Sep 22 1989 10:13 | 18 |
|
Set watch shows bookreader opening Bookreader.dat, but only some of
the params in .5 work, ie
Bookreader*geometry: �X�Y is ok for the read window,
whereas
Bookreader.geometry: �X�Y doesnt position the main window.
As for only the main window being iconified, use
Bookreader.initialState: 3
How do you turn set watch off ? there's no help set watch... (what else
can it do)
Still cant startup lse iconified either, all else now works...
feelin better
jim
|
1467.11 | Magic incantation to start LSE iconified | TLE::D_SMITH | | Fri Sep 22 1989 14:03 | 20 |
| RE: Starting LSE and/or EVE iconified
Here is an answer that I gave to a customer reporting an LSE QAR.
I have figured out a way for you to start the editor iconified, but
this method will not be supported. In other words, it may break in a
future release of the editor or in a future release of DECwindows. We
do not commit to fixing any problems that you may encounter.
Edit the file DECW$USER_DEFAULTS:DECW$XDEFAULTS.DAT. If this file
doesn't already exist, then create it. Add the following line to that
file:
Tpu.initialState: 3
You will have to log out and log back into the session to have this new
setting take effect. Note that this will also make DECwindows EVE
start iconified also.
|