Thread View: comp.windows.news
3 messages
3 total messages
Started by Liam R. E. Quin
Thu, 20 Aug 1992 03:46
three NeWS / OpenWindows 3 questions
Author: Liam R. E. Quin
Date: Thu, 20 Aug 1992 03:46
Date: Thu, 20 Aug 1992 03:46
16 lines
912 bytes
912 bytes
[1] Can I access X Defaults from a NeWS-only program?
[2] I note that none of the NeWS demos seem to support -scale. And the
NeWS manual doesn't mention it. Why not?
[3] Why isn't ColorDict documented? At any rate it isn't in the index of
the NeWS programmer's Guide.
Lee
--
Liam Quin, lee@sq.com, SoftQuad, Toronto, 416 239-4801; the barefoot programmer
lq-text (Unix text retrieval package) mailing list: lq-text-request@sq.com
latest released version: 1.10; ftp: ftp.cs.toronto.edu in directory: pub
If Adultery is for Adults, is Juvenal for Juveniles?
Re: three NeWS / OpenWindows 3 questions
Author: Syst{ Kari
Date: Thu, 20 Aug 1992 14:15
Date: Thu, 20 Aug 1992 14:15
45 lines
1786 bytes
1786 bytes
In article <1992Aug20.034650.17692@sq.sq.com> lee@sq.sq.com (Liam R. E. Quin) writes:
[1] Can I access X Defaults from a NeWS-only program?
The followind code reads all DisCo.* resources and makes
/resource_name resource_value def
/DefineResources { % string string =>
(\n) alist
{
% stack
dup 2 index search {
pop
pop
(:) search {
% (% is %(%)\n) [ 2 index 5 index MakeValue dup type] sprintf =
dup cvn 3 index { MakeValue } stopped not {
def
} {
console (Syntax error on resource %\n) [ 3 index ] fprintf
} ifelse
pop pop
} if
pop pop
} {
pop pop
} ifelse
} forall
pop
} def
/GetRes { % string =>
/GetPropertyString DefaultsService send {
DefineResources
} if
} def
(DisCo.) GetRes
--
% This article represents my personal views.
% Kari Systa, Tampere Univ. Technology, Box 553, 33101 Tampere, Finland
% work: +358 31 162585 fax: +358 31 162913 home: +358 31 177412
% Internet: ks@cs.tut.fi X.400: C=fi ADMD=fumail O=TUT OU=CS S=ks
--
Re: three NeWS / OpenWindows 3 questions
Author: Liam R. E. Quin
Date: Thu, 20 Aug 1992 18:50
Date: Thu, 20 Aug 1992 18:50
18 lines
1130 bytes
1130 bytes
I'd like to thank Syst{ Kari for posting code to access X Defaults from
PostScript.
Can anyone at Sun tell me where
> /GetPropertyString DefaultsService send
is documented?
There is no entry for Defaults in the NeWS 3.0 Programmer's Guide (apart
from `Default class', not at all the same thing).
It's also not in the TNT 3.0 Referance Manual, the Desktop Integration Guide
or the OW3 Progammer's Guide!
Lee
--
Liam Quin, lee@sq.com, SoftQuad, Toronto, 416 239-4801; the barefoot programmer
lq-text (Unix text retrieval package) mailing list: lq-text-request@sq.com
latest released version: 1.10; ftp: ftp.cs.toronto.edu in directory: pub
If Adultery is for Adults, is Juvenal for Juveniles?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads