Blob Blame History Raw
/* 
 * Motif
 *
 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
 *
 * These libraries and programs are free software; you can
 * redistribute them and/or modify them under the terms of the GNU
 * Lesser General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * These libraries and programs are distributed in the hope that
 * they will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with these librararies and programs; if not, write
 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA 02110-1301 USA
*/ 
/* 
 * HISTORY
*/ 
/*
static char rcsid[] = "$XConsortium: DialogRes.dat /main/5 1995/07/13 19:20:27 drk $"
*/
/*
 * "OSF/Motif: @(#)DialogRes.dat	1.1 91/09/12";
 */

#) This is a test testing the setting VendorShell resources on a
   DialogShell.

#) There should be a control panel shown with a button saying "Post Dialog",
   and all the window decoration resources available to be set by the user. 
   Also, there should be a button "ApplyDecorations" and it should be 
   insensitive.

#) First of all, click on "Post Dialog". This should create and post a
   modeless message dialog as a child of Shell1. The dialog should have
   its OK and Cancel buttons not visible, and Help button label changed to
   "Destroy Me". "Post Dialog" button should now be insensitive and the
   button "ApplyDecorations" should now be sensitive.

C)

#) To modify the window decorations of DialogShell1, click on the various
   decoration resource toggle buttons, and then click on "ApplyDecorations"
   button. Note that changing the state of "Minimize" and "Maximize" buttons
   should not have any effect on the decorations of the dialogshell.
   Decor_All sets or resets the MWM_DECOR_ALL bit in the mwmDecorations.

#) Click on Decor_All to set MWM_DECOR_ALL bit to 1. Now, all the decorations
   that you specify by toggling the respective values to True, will
   disappear from the set of decorations.

#) Click on ResizeH to select it.

#) Click on "ApplyDecorations". DialogShell1 gets unmapped and mapped and
   the resize handles should not be present.

#) Click on "Border".

#) Click on "ApplyDecorations". DialogShell1 gets unmapped and mapped and
   the window border should disappear.

C)

#) Click on "SystemMenu".

#) Click on "ApplyDecorations". DialogShell1 gets unmapped and mapped and
   the window system menu button should disppear.

#) Click on "Title".

#) Click on "ApplyDecorations". DialogShell1 gets unmapped and mapped and
   the window title should disappear.

#) Click on "Decor_All".

#) Click on "ApplyDecorations". DialogShell1 gets unmapped and mapped and
   the window decorations should be back in full (except Minimize and
   Maximize buttons).

C)

#) The control panel should now be expanded to contain window menu function
   resource toggle buttons and the pushbutton "ApplyFunctions".

#) To modify the window decorations of DialogShell1, click on the various
   function resource toggle buttons, and then click on "ApplyFunctions"
   button. Note that changing the state of "Iconify" and "MaximumSize" buttons
   should not have any effect on the functions of the Dialogshell1 menu.
   Func_All sets or resets the MWM_FUNC_ALL bit in the mwmFunctions.

#) Click on Func_All to set MWM_FUNC_ALL bit to 1. Now, all the functions
   that you specify by toggling the respective values to True, will
   disappear from the window menu of DialogShell1.

#) Click on "Size" to select it.

#) Click on "ApplyFunctions". DialogShell1 gets unmapped and mapped and
   the "Size" item should disappear from the window menu of DialogShell1.

C)

#) Click on "Move".

#) Click on "ApplyFunctions". DialogShell1 gets unmapped and mapped and
   the "Move" item should disappear from the window menu of DialogShell1.

#) Click on "Close".

#) Click on "ApplyFunctions". DialogShell1 gets unmapped and mapped and
   the "Close" item should disappear from the window menu of DialogShell1.

#) Click on "Func_All".

#) Click on "ApplyFunctions". DialogShell1 gets unmapped and mapped and
   the window menu should be back in full (except Iconify and Maximize 
   items).

C)

#) This is to test PIR 2133. Post the window menu from DialogShell1.
   Select "Close" from the menu. You should get a message on your
   xterm saying "Close window message sent.". If yes, the bug about
   not being able to trap f.kill is fixed.

C)

E)