T.R | Title | User | Personal Name | Date | Lines |
---|
1088.1 | | STAR::MFOLEY | Rebel without a Clue | Tue Jul 11 1989 15:24 | 8 |
|
This is probably better asked in one of the Imaging notesfiles..
I know of one, VISUAL::IMAGEING but I'd say the IMAGE_SERVICES
would be the better one.. Sorry, I don't know where that is.
mike
|
1088.2 | | EPIK::BUEHLER | An education teaches you why you need one | Tue Jul 11 1989 18:09 | 4 |
| It's VISUAL::IMAGING (Mike had a typo) and IMAGE_SERVICES is on EDWIN::
John
|
1088.3 | | VWSENG::KLEINSORGE | Toys 'R' Us | Tue Jul 11 1989 21:07 | 11 |
| 0-255, I hope it's in bytes instead of words.
By and large, unless you are using a Lynx or a Firefox, you will need
all of the colors on the system for the run of the mill 8 plane system.
In which case, you'll find you can't allocate the color cells so you
will need to create a color map, install it and then use it. You
can simply allocate all the colors and then load set the map up as
you wish with no data translation needed.
|
1088.4 | OK, but help again | RMPC07::NATI | Do you like Waterboys? | Thu Jul 13 1989 13:52 | 11 |
|
Thank for .3, we make as you said and all works fine.
Now we have the problem of making the new colormap active
without the need of a "click" on the window (we already use the
"XSetWindowColormap", "XSynchonize","XFlush").
The application performs only output
over the whole screen, so the usage of the mouse is not required.
Thanks again.
Tonino
|
1088.5 | XInstallColormap? | SITBUL::KLEINSORGE | Toys 'R' Us | Thu Jul 13 1989 18:48 | 8 |
|
How about: XInstallColormap
Xlib Routines Reference Manual: Part 2, Window and Session Manager
Routines. I think that this is what forces a colomap to be installed.
|
1088.6 | Don't XInstallColormap!!!!!!!!!!!!! | GVRIEL::SCHOELLER | Who's on first? | Fri Jul 14 1989 14:11 | 13 |
| Applications SHOULD NOT CALL XInstallColormap. That is a function provided for
window managers. What you should do is use one of the possible means to force
input focus to your window. With input focus, the window manager should install
your colormap. Clicking is currently necessary because your window doesn't
take focus at startup.
You should also not assume that you will get the whole screen (unless you are
using override redirect windows). Many window managers will not give you the
whole screen or, even if you get the whole screen, the user may shrink the
size of your window.
Dick
|
1088.7 | | VWSENG::KLEINSORGE | Toys 'R' Us | Fri Jul 14 1989 16:43 | 11 |
|
From .4:
"The application performs only output
over the whole screen, so the usage of the mouse is not required."
Sounds pretty silly to do it indirectly by getting the imput focus.
The fact that window managers typically do this function shouldn't
preclude it's use by other applications.
|
1088.8 | Anti-social behavior | GVRIEL::SCHOELLER | Who's on first? | Fri Jul 14 1989 17:17 | 17 |
| And what if the user chooses to push the application window behind or the
application is run under a window manager that does not let it take the
whole window? The only way that XInstallColormap can be used safely by
an application is if it is putting an override redirect window over the whole
screen. In that situation other windows would never have the opportunity to
try to become active. Of course, that situation is extremely anti-social and
violates the premise the the user is in control of the machine (rather than
the other way around). Another aspect of covering the whole screen with
an override redirect window is that it would not matter if input focus was
taken since you couldn't see other windows anyway.
Starting with R4 there will be colormap focus in addition to input focus and
the application could probably just take that rather than input focus. That is
how you would tell the window manager "use my colormap".
Dick
|
1088.9 | | SITBUL::KLEINSORGE | Toys 'R' Us | Sat Jul 15 1989 10:21 | 4 |
|
Depends on the society I guess.
|
1088.10 | Not anti-social, exclusive | ROM01::NATI | Do you like Waterboys? | Thu Jul 20 1989 09:00 | 16 |
|
Thanks for all the answers.
The application is not anti-social, because the need of the customer
was the following.
He must display continuosly upon the whole screen some recorded images,
for demo goals.
The people watching the demo (customer's customers) MUST ONLY SEE the
recorded images running on the screen, WITHOUT INTERFERENCES from
other applications.
The application runs on another terminal and directs his calls
on the VAXstation. The application's menu appears on
the terminal, so the application doesn't need the mouse.
Thanks again.
Tonino
|
1088.11 | | GVRIEL::SCHOELLER | Who's on first? | Thu Jul 20 1989 10:47 | 8 |
| Tonino,
Then, by all means, use an OverrideRedirect window and install the colormap
your self. You should probably reinstall the default colormap when your
application exits (just to be nice to the rest of the world).
Dick
|
1088.12 | Agree with .11 | ROM01::NATI | Do you like Waterboys? | Thu Jul 20 1989 12:17 | 7 |
|
Ok, that was our final solution (.11).
Thanks again.
Tonino
|