T.R | Title | User | Personal Name | Date | Lines |
---|
948.1 | | PSW::WINALSKI | Careful with that VAX, Eugene | Wed Jun 14 1989 18:06 | 12 |
| It doesn't look like it's possible to get the XUI Toolkit to use a visual other
than the default one. This seems to be a shortcoming in the Xt Intrinsics.
The visual is a parameter to the XtCreateWindow() routine that widgets use to
create their windows, but there is no resource to tell a widget which visual
to use. If you write your own widget as a subclass of an existing one, you can
supply your own realization routine and call XtCreateWindow() with an alternate
visual. Aside from that, the only ways I can think of to do it involve nasty
hacks that trick the Xt Intrinsics by making them think the visual you wish to
use is the default.
--PSW
|
948.2 | Here's a suggestion | 17305::WEST | I'm just visiting this planet. | Thu Jun 15 1989 12:37 | 23 |
|
You would still have to change to visual with Xlib calls. The way I see
it is that you can do this but you will not be able to do XtInitialize.
You would have to do all the calls involved with Xtinitialize and change
the visual after you get a display id. I believe the calls are something
like the following:
XtToolkitInitialize
XtCreateApplicationContext
XtOpenDisplay
XtAppCreateShell
-- Somewhere after the XtOpenDisplay you could possibly change the visual
-- Then create any widgets...
DwtMainWindow
I've never tried anything like this, but this seems like it might do the
trick.
-=> Jim <=-
|
948.3 | | PSW::WINALSKI | Careful with that VAX, Eugene | Fri Jun 16 1989 21:25 | 9 |
| RE: .2
You can't change the visual associated with a window. The visual is set at
window creation time and can't be changed after that. The problem is that
the Xt intrinsics don't provide any way for you to tell a widget that you want
it to use something other than the default visual.
--PSW
|
948.4 | Will be added to Intrinsics | LEOVAX::TREGGIARI | | Mon Jun 19 1989 07:04 | 6 |
| The Intrinsics plan to add a "visual" resource to shell widgets for
the MIT R4 release. I don't know yet when that means it will be
in the DECwindows Intrinsics (but not the currently frozen release...).
Leo
|
948.5 | Hmmmm... | 17305::WEST | I'm just visiting this planet. | Mon Jun 19 1989 09:45 | 9 |
|
Well, that's too bad. I thought that after the XtOpenDisplay you could
make Xlib calls to change the default visual. I made the assumption (probably
a bad thing to do) that when the widgets created windows that they would use
the visual that was set.
-=> Jim <=-
|