[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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.RTitleUserPersonal
Name
DateLines
704.1Oh yes...MELTIN::dickSchoeller - Xperimenting with XNotesMon May 01 1989 12:386
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.2Hello, is anybody there?MELTIN::dickSchoeller - Xperimenting with XNotesWed May 03 1989 18:321
704.3PSW::WINALSKIPaul S. WinalskiThu May 04 1989 15:046
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.4You don't need to know about HPWMMELTIN::dickSchoeller - Xperimenting with XNotesThu May 04 1989 16:507
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.5If running Ultrix, try the hpwm's inENXIO::thomasThe Code WarriorThu May 04 1989 17:102
TRIX::3am/

704.637119::MURPHYRick - WA1SPT/4Sun May 21 1989 00:307
    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.7I think I've got it!!!IAGO::SCHOELLERWho's on first?Wed Jun 14 1989 15:3210
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.8More info...MELTIN::dickWho's on first?Wed Jun 14 1989 16:439
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