Blob Blame History Raw
/* $XConsortium: MessageDiaM1.dat /main/4 1995/07/17 10:15:48 drk $ */
/*
 * 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
 */

#) A client containing a MessageBox Dialog should appear. The MessageBox
   should have a messageString of \"DialogStyle Unmanaged Test\", the OK button
   should have a label of \"UnManage\". The dialogStyle will be XmDIALOG_
MODELESS, so you may put the focus into clients or windows other than the
message box's.
#) The MessageDialog should be stacked on top of its client window.
#) Click MB1 on the Unmanage button. The Message Dialog should be Unmanaged and
   should \"pop down\". You now should be able to have focus in any window and
   the cursor should change back to the default cursor 
#) You will see a message in the stdout window when you focus in, saying
that the message is expected.
C)

#) The DialogStyle should have changed to XmDIALOG_SYSTEM_MODAL.
#) Try to put the focus into a window or client other than the message dialog.
#) The cursor should be a round \"don't do it\" shape and focus in any other
window should be disallowed.
#) Give the message dialog the focus. 
#) The cursor changes back to a normal arrow.
#) Click on the UnManage button. 
C)

#) The dialogType should now have changed to XmDIALOG_QUESTION. This
   will change the pixmap from UNSPECIFIED to that of a Question Mark.
   The message string should have changed to \"DialogType Unmanaged Test 
#) This dialog style is FULL_APPLICATION_MODAL,  which means you are able to put the
focus into windows that don't belong to this test client, but you should
not be able to put the focus into any windows of this client other than
the dialog box.
#) Try giving focus to the client window labelled MessageDiaM1.  The window
should not get focus.
#) Click MB1 on the Unmanage button. The Message Dialog should unmanaged.
C)
#) The dialogStyle is now DIALOG_MODELESS. 
#) The labels and callbacks have been switched around.
#) There should be a message in the stdout window which states 
\"The default button is OK.\" If this message does not appear, the results
for the rest of this test may be misleading.
#) Click the UnManage button again to unmanage the dialog.
C)
#) The dialog has been remanaged.
#) There should be a second \"The default button is OK\" message in the
stdout window.
#) Give the dialog window focus.
#) The highlight cursor (keyboard focus) should be on the defaultButton, which
is the \"does nothing\" button.
#) Unmanage the dialog.
C)
E)