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 |
I'm trying to get a toolkit created window to use an 8 plane pseudo-color colormap on a 24 plane Firefox. I haven't been having much luck. I've been trying to no avail to get my DECpaint picture window to use a a pseudocolor colormap on a 24 plane Firefox. I can get the pseudocolor visual and create the colormap without any problems. It's getting the window to use the colormap that's the problem. I understand how Burns Fisher's cmap program creates a window from scratch which uses the pseudocolor visual and colormap, But I can't do this since the window I want to use the colormap is the [Xt]Window of a window widget in my widget hierarchy. I tried setting the depth, colormap, background pixel, background pixmap, border pixel and border pixmap attributes on the window widget before realizing it - hoping that the [Xt]Window would pick these up - but in this case, a good window is not created at all (only garbage in its place). Or, I could create a window from scratch. But then, could I get the window widget to use it as its window? Or, if you know of anyone who has had any luck in this area, they might be of great help. Thanks. -Jonathan
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2150.1 | Create but not Install | ALEXWS::ALEX | Bugs Are Coming In Triplets ... | Mon Feb 05 1990 06:28 | 32 |
> >I'm trying to get a toolkit created window to use an 8 plane pseudo-color >colormap on a 24 plane Firefox. >I haven't been having much luck. > >I've been trying to no avail to get my DECpaint picture window to use a >a pseudocolor colormap on a 24 plane Firefox. I can get the pseudocolor visual >and create the colormap without any problems. It's getting the window to use >the colormap that's the problem. > >I tried setting the depth, colormap, background pixel, >background pixmap, border pixel and border pixmap attributes on the window >widget before realizing it - hoping that the [Xt]Window would pick these up >- but in this case, a good window is not created at all (only garbage in its >place). > I've managed to create the pseudo-color window widget on FireFox, but none of my attempts to install the colormap succeded. The trick is to create the colormap of the needed visual and then MANUALLY set it to the specific windows. As Leo stated the current R3 intrinsics does not deal with colormap resource. And don't forget to specify the border pixel for this window for it is a MUST to specify border pixel for any non-default visual window. If you succed in installing your colormap, notify us... Good Luck Alex |