[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

1394.0. "Can I iconify that window ?" by EVTIS2::TISSERAND (Jean-Marc TISSERAND TSC FRANCE) Thu Sep 07 1989 06:17

    I have a program which iconifies all the windows on the server.
    I use XSetWMHints to do that. But, if I try to iconify a task-output
    window or a work in progress window from fileview, the window manager
    dies.       
                                                                    
    I use hints = XGetWMHints(...) and I assume if hints.icon_pixmap is
    equal to 0, then the window can't be iconified.
    
    Am I right ?
    Is there another way to see if a window can be iconified or not?
             
    Thanks for your help.
    
    Jean-Marc.

T.RTitleUserPersonal
Name
DateLines
1394.1DECWmHintsSTAR::CYPRYCHThu Sep 07 1989 11:2013
    hints.icon_pixmap equal to zero indicates to the window
    manager that there isn't any user created icon - and
    the default is in use.
    
    The style guide indicates which kind of dialog boxes
    can or cant be iconified.
    
    The hints that you need to look at is in the property
    DECWmHints.  There would be a value called no_iconify_button
    (exact syntax you should check the documentation).
    
    Nancy

1394.2Iconify the icon box? Oh my!DECWIN::KLEINThu Sep 07 1989 11:2317
A window without an iconify "button" should not be iconified.  The FileView
windows you mentioned (TaskOutput and WorkInProgress) can only be "dismissed",
not iconified.

(FileView V2 allows iconification of TaskOutput windows.  The WorkInProgress
box still cannot be iconified.)

You can determine whether a window has an iconify button by looking at
the DEC_WM_HINTS property.  If the value_mask includes the
DECWmNoIconifyButtonMask bit, and the dechints.no_iconify_button flag
is set, then the window cannot be iconified.

I am surprised that the window manager allows you to iconify the icon box!
How are you getting around this?

-steve-

1394.3Didnt succeedSTAR::CYPRYCHThu Sep 07 1989 11:398
    DECWmHints,  are we repeating each other? (I think
    we mustve entered at the same time)
    
    I dont think .0 said that they succeeded in iconifying
    windows that that can't be iconified.  They want to
    make sure they don't attempt to.  Is this right .0
    or did you mean something different?

1394.4ThanksEVTIS2::TISSERANDJean-Marc TISSERAND TSC FRANCEThu Sep 07 1989 13:4323
    
    I didn't succeed to iconify the icon box !
    
    When writing my program, I first try to iconify all the windows
    I get walking through the window ids tree. When I do XSetWMHints
    to iconify a task-output window, the window manager dies.
    
    Now, I want to make sure I don't attempt to iconify such a window.
    I'm going to try using DECWmHints.
    Thanks.
    
    Another question : 
    How can I do that with XWindow only? I want my program to run with
    any window manager.
    
    
    Thanks for your help.
    
    Jean-Marc.
    

    

1394.5Just a note on hints...GSRC::WESTVaribles don't, Constants aren'tThu Sep 07 1989 22:0344
RE:    <<< Note 1394.4 by EVTIS2::TISSERAND "Jean-Marc TISSERAND TSC FRANCE" >>>
                                  -< Thanks >-

>>    Another question : 
>>    How can I do that with XWindow only? I want my program to run with
>>    any window manager.
    
  Just a note about HINTS.  The following is from the book, "Introduction
to the X Window System", by Oliver Jones.

  Manipulation of windows are done by giving *hints* to the window manager.

  "Your application knows more about your windows than their geometry,
characteristics, and attributes.  These hints give your application a way to
pass some of this additional information to the window manager.  Once the
window manager knows a little more about your windows, it can do sensible
things when it changes window sizes, and it can show more information, such
as window names in menus."

  "What the window manager actuall does with the hints you give it is up to
the window manager's developer.  The hints described in this chapter (windows)
are standardized in the X window system, and all window managers honor at
least some of them.  You should consult the documentation for your window
manager to determine whether it accepts any additional hints, and to learn
what it does with each hint."

  "Window manager hints are stored in the workstation in the form of window
properties."


  Notice where it said, "determine whether it accepts any *additional* hints".
This is where we get DECwmHints.

  You may want to take a look at the standardized hints defined for Xlib.  To
see what all information you can give to a window manager.  The structure
XWMHints defined in Xlib has a state element which determines the state of
the window.  You can find more information in p 9.1.5 in the C Library and
Protocol Reference.

					-=> Jim <=-

    


1394.6Iconfying the Icon Box..FUEL::grahamThe Mouse is the Computer..Thu Sep 07 1989 22:509

This is a great feature!  And it's done in Motif.  You can even disable the
Icon Box and have floating icons (ala Mac and Sun) if you want.
The user has control...not a tyrannical window manager!


Kris....

1394.7PSW::WINALSKICareful with that VAX, EugeneFri Sep 08 1989 14:027
RE: .6

Actually, it's just that Motif's window manager is a more benevolent despot than
the XUI window manager....

--PSW

1394.8State HintSTAR::CYPRYCHFri Sep 08 1989 15:5612
    RE: .5
    
    The state hints in WMHints is used to indicate what
    state the window is in, i.e., IconicState,  NormalState.
    
    This will not solve the problem .0 states.  .0
    wishes to know whether the type of window he picks
    up *can* be iconified.  The state hints indicates
    what state the window is in as the current time only.
    
    Motif isnt any different.

1394.9clarification...GSRC::WESTVaribles don&#039;t, Constants aren&#039;tMon Sep 11 1989 13:0120
RE:                      <<< Note 1394.8 by STAR::CYPRYCH >>>
                                  -< State Hint >-

  I entered the note to try to help clarify the confusion of hints that I
thought .0 was having.  .0 mentioned using DECWMHints and wanted to know
what he had to do for 'vanilla' X windows.

  If window managers allow it, and ours does at the moment, you can also
use WMHints to change the state of a window, not just check to see what state
it is currently in.

  I did not attempt to offer any help in .0's question about how to find out
if a window can even be iconified.  I apologize for not making this clear.  At
this time I don't know of any way to determine if a window can be iconified or
not.

					-=> Jim <=-   :^)