4sight questions

Tony Facca fsfacca at AVELON.LERC.NASA.GOV
Tue Jun 12 23:58:40 AEST 1990


>
>Fact 1:
>I have found the appropriate places to hack and hew
>/usr/NeWS/lib/NeWS/sgiwin.ps so that the windows have borders and yet
>no title bars, provided I leave the edited file in /usr/NeWS/lib/NeWS.
>

This is true, but it isn't the "only" way to override the system sgiwin.ps as
evidenced by the 4Dgifts use of ~/.4sight

>Fact 2:
>If you examine user.ps, startup.ps and the .4sight directory from
>/usr/people/4Dgifts, you see how you can modify the way the title
>bar is drawn.
>
>Fact 3:
>If you copy over the 4Dgifts stuff, replace .4sight/window.ps
>by your own hacked and hewed version of sgiwin.ps, nothing is changed!

You must have done something wrong.  By design, your NEW version of window.ps
should override the system version (since it gets loaded AFTER the original
version, thus redefining the functions which draw windows).

>
>Finally, my question:
>Why is nothing changed when you replace .4sight/window.ps
>with (almost all of) sgiwin.ps?  And how can you get it to change?
>

I'm not sure that I understand all of what you are doing, but I know that I
have redefined the windows, background, startups, etc. for 4sight and that
if everything is done right it works.  Sometimes it is reassuring to know that
it CAN be done, which is why I mentioned it.

Here is a segment from user.ps in my home directory.

%
% This (between the "[]"'s) is the list of files which will be loaded
% from the ~/.4sight directory.
%

[
    (menu.ps) (mvpref.ps) (pref.ps) (icon.ps)
    (toolchest.ps) (window.ps) (wsh.ps)
    (console.ps) (my_tools.ps)
] {
    (.4sight/) exch append
    run
} forall

----
By creating a file menu.ps in my own .4sight directory, I can change the
way the SGI popup menu works.  Here is my ~/.4sight/menu.ps    

% Controls the title color on the pop-up menus

SGIMenu begin
%   /TitleFillColor		0.918 0.216 0.0 rgbcolor def    % Browns Orange
    /TitleFillColor		0.000 0.514 1.0 rgbcolor def    % Avelon Blue	
end

% Tells the cursor to pop-up over the first menu choice

UserProfile /MenuHome /overFirst put				% Gotta havit

------

All I do is redefine the color of the menu title fill, and then  the overFirst
tells the cursor to point to the first menu item when I click the right mouse
button.  I know that this works.  I've made modifications to window.ps and
that works too (but its kinda long to include here).  Another thing I've 
noticed is that if you do not code the changes correctly, the system 
ignores them (but doesn't tell you) and therefor does NOT override the defaults.

Well, I hope some of this helps.  Good luck.


>
>P.S.  This seems to be an apropriate time to point out how nice
>the 3130 is.  Remember the 3000 series, anyone?
>
>
Ahh yes, I seem to remember that the windowing was awfull on those machines.
You couldn't resize without screwing up the editor, you had to click twice 
to do almost anything, (and once just to activate the window).  Yes, those
certainly were the good ole days.. :-)

--
-----------------------------------------------------------------------------
Tony Facca   |   fsfacca at avelon.lerc.nasa.gov      |     phone: 216-433-8318
-----------------------------------------------------------------------------
      You are at Witt's end.  Passages lead off in *all* directions.



More information about the Comp.sys.sgi mailing list