[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
704.0. "Icons, colors and HPWM" by MELTIN::dick (Schoeller - Xperimenting with XNotes) Mon May 01 1989 10:54
It seems like there are a wide variety of icon behaviors when clients run
in an HPWM environment. Calendar, notepad, dxmail, cardfiler, banner and the
bookreader all come up with there normal icons and pay attention to the
iconImageForeground and iconImageBackground resources.
Notes, xrn, the session manager and my application (sedan) get their normal icons
but do not pay attention to the colors.
XNotes seems to always get the default X Window System icon and DECW$MAIL
comes up with a blank icon.
What is the difference in the way these applications program there icons that
causes these differences. The code for how sedan does it follows. I would
have put this in DECWINDOWS_PROGRAMMING but it has been unavailable for awhile
(AGAIN).
Dick
---------------
Widget shell_widget;
Display *disp;
Screen *scrn;
Drawable drwbl;
Pixmap ipix;
Pixmap spix;
Arg al[40];
int count;
disp = XtDisplay (toplevel_widget);
scrn = XtScreen (toplevel_widget);
drwbl = RootWindowOfScreen (scrn);
ipix = XCreateBitmapFromData
(disp, drwbl, sedan_bits, sedan_width, sedan_height);
spix = XCreateBitmapFromData
(disp, drwbl, sm_sedan_bits, sm_sedan_width, sm_sedan_height);
count = 0;
XtSetArg (al[count], XtNiconPixmap, ipix); count++;
XtSetArg (al[count], XtNiconifyPixmap, spix); count++;
widget_ids[k_shell] = XtAppCreateShell
("Sedan", "Sedan", topLevelShellWidgetClass, disp, al, count);
T.R | Title | User | Personal Name | Date | Lines |
---|
704.1 | Oh yes... | MELTIN::dick | Schoeller - Xperimenting with XNotes | Mon May 01 1989 12:38 | 6 |
| sedan_bits, sedan_width, etc. are gotten by #include "sedan.bit" and
#include "sm_sedan.bit" which are created with decw$examples:bitmap.
Happy May Day,
Dick
|
704.2 | Hello, is anybody there? | MELTIN::dick | Schoeller - Xperimenting with XNotes | Wed May 03 1989 18:32 | 1 |
|
|
704.3 | | PSW::WINALSKI | Paul S. Winalski | Thu May 04 1989 15:04 | 6 |
| Lots of people here, but none of us know anything about hpwm. All I know is
it's got several bugs and it seems not to be speaking on the same wavelength as
the XUI Toolkit sometimes.
--PSW
|
704.4 | You don't need to know about HPWM | MELTIN::dick | Schoeller - Xperimenting with XNotes | Thu May 04 1989 16:50 | 7 |
| In order to answer the question I asked you do not need to know about HPWM.
What I would like to know is what the clients that get different results with
their icons are doing differently. I do know that using a default depth
pixmap with white pixel and black pixel works the same as a bitmap.
Dick
|
704.5 | If running Ultrix, try the hpwm's in | ENXIO::thomas | The Code Warrior | Thu May 04 1989 17:10 | 2 |
| TRIX::3am/
|
704.6 | | 37119::MURPHY | Rick - WA1SPT/4 | Sun May 21 1989 00:30 | 7 |
| That part of HPWM is a bit gross. Clients that create depth-1
icons greater than some minimum size get built into the icon image
using a XCopyPlane. Those that don't observe the colors probably are
building icon images with greater depth. You're welcome to look at the
code if you want..
-Rick
|
704.7 | I think I've got it!!! | IAGO::SCHOELLER | Who's on first? | Wed Jun 14 1989 15:32 | 10 |
| It seems that there is some difference between the shell created by XtInitialize
or XtAppCreateShell (..., applicationShellWidgetClass, ...) and the
shell created by XtAppCreateShell (..., topLevelShellWidgetClass, ...).
The first 2 obey the icon colors in hpwm.dat topLevelShellWidgetClass does not.
I don't know if this is a difference in the intrinsics or in hpwm that makes
this happen.
Dick
|
704.8 | More info... | MELTIN::dick | Who's on first? | Wed Jun 14 1989 16:43 | 9 |
| Things also seem to work more consitently if you set the icon before you
realize the shell widget. In particular, I hacked Xpostit (will post the
changes in DW_EXAMPLES) to make it get the plaid in color all the time. Without
the changes, Xpostit came up with the default X Window System icon when run
detached and came up with color plaid when run interactively. After moving
the icon definition to occur before widget realize, it works all the time.
Dick
|