T.R | Title | User | Personal Name | Date | Lines |
---|
1394.1 | DECWmHints | STAR::CYPRYCH | | Thu Sep 07 1989 11:20 | 13 |
| 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.2 | Iconify the icon box? Oh my! | DECWIN::KLEIN | | Thu Sep 07 1989 11:23 | 17 |
| 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.3 | Didnt succeed | STAR::CYPRYCH | | Thu Sep 07 1989 11:39 | 8 |
| 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.4 | Thanks | EVTIS2::TISSERAND | Jean-Marc TISSERAND TSC FRANCE | Thu Sep 07 1989 13:43 | 23 |
|
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.5 | Just a note on hints... | GSRC::WEST | Varibles don't, Constants aren't | Thu Sep 07 1989 22:03 | 44 |
| 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.6 | Iconfying the Icon Box.. | FUEL::graham | The Mouse is the Computer.. | Thu Sep 07 1989 22:50 | 9 |
|
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.7 | | PSW::WINALSKI | Careful with that VAX, Eugene | Fri Sep 08 1989 14:02 | 7 |
| RE: .6
Actually, it's just that Motif's window manager is a more benevolent despot than
the XUI window manager....
--PSW
|
1394.8 | State Hint | STAR::CYPRYCH | | Fri Sep 08 1989 15:56 | 12 |
| 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.9 | clarification... | GSRC::WEST | Varibles don't, Constants aren't | Mon Sep 11 1989 13:01 | 20 |
| 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 <=- :^)
|