/* $XConsortium: TestCDEM1.dat /main/4 1995/07/17 10:16:10 drk $ */ /* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * */ /* * HISTORY */ #) A window will appear with the following items: !) o a TextField displaying "This is testing FileSelectionBox". o on the left, a toggle button "Click and try", a label "with PATH_MODE_FULL", and a FileSelectionBox. o on the right, another toggle button "Click and try again", a label "with PATH_MODE_RELATIVE" and a CDE compliant FileSelectionBox. #) The FileSelectionBox on the left is composed of: !) o a mask input field labelled "Look for:" set to "/users/qauser/FS/fourteencharac/b*" o a Directories list (with all directories in the current directory), with scrollbars. o a Files list (with files beginning with the letter b, "bingo00" to "bingo04"), with scrollbars. o a text input field, with the label "Selection", displaying the full path name of the current directory. o a separator. o four pushButtons (OK, Filter, Cancel, Help). #) The FileSelectionBox on the right is composed of: !) o the full path name field labelled "In this directory:". o a mask input field labelled "Look for:" set to "b*". o a Directories list (with all directories in the current directory). o a Files list (with files beginning with the letter b, "bingo00" to "bingo04"). o a text input field, with the label "Selection". o a separator. o four pushButtons (OK, Filter, Cancel, Help). #) The TextField, the Toggle buttons and the FileSelectionBoxes have a 1 pixel shadow thickness. C) #) Testing the action of "XmNenableToggleColor" set to True, and "XmNenableToggleVisual" on toggle buttons. #) The indicator of the left toggle button is a square. #) Click MB1 on the left Toggle button. #) The highlight color is red, the indicator is filled with red, and a check mark appears in the indicator. #) The indicator of the right toggle button is round. #) Click MB1 on the right Toggle button. #) The highlight color is aquamarine, and the indicator is filled with aquamarine. C) #) Play with the FileSelectionBox on the left. #) Click MB1 on "fourteencharac" in the Directories list. The directory mask gets updated. #) Click on the "Filter" button. The Selection field is updated to reflect the new directory path. #) The Files list is also updated to list the files starting with "b" in that directory "bonus01" to "bonus05". #) Now play with the FileSelectionBox on the right. #) Click MB1 on "fourteencharac" in the Directories list. The directory full path name gets updated. #) Click on the "Filter" button. #) Only the Files list is updated to list the files starting with "b" in that directory "bonus01" to "bonus05". C) #) Change "Look for:" pattern in the left FileSelectionBox, so that the "b*" is now just "*". #) Click MB1 on the "Filter" button. The Files list should change to display all the files in the current directory including hidden files. #) Use the vertical scrollbar to scroll through the Files list. #) Now change "Look for:" pattern in theright FileSelectionBox, so that the "b*" is now just "*". #) Click MB1 on the "Filter" button. The Files list should change to display files in the current directory but not hidden files. #) Use the vertical scrollbar to scroll through the Files list, and verify that there is no hidden files. C) #) Testing the action of "XmNenableButtonTab" set to True, and "XmNdefaultButtonEmphasis" set to XmINTERNAL_HIGHLIGHT on push buttons. #) Using the TAB key, tab through the elements of the FileSelectionBox. #) When on the "OK" button, clicking on TAB should tab to the "Filter" button, and then on the other buttons. #) While tabbing, you will notice that the location cursor appears in between the two etched borders of the default push button. #) Verify this is working in both SelectionBox. C) #) Testing the action of "XmNenableBtn1Transfer" set to True on TextField and List. #) Using MB1, press on the left of "is" in the TextField, and move to the right of "s" of "testing". Release MB1. "is tes" is now selected. #) Now using MB2, extend the selection by clicking on the "F". "is testing " is now selected. #) Using MB1, now press MB1 on the selected text and start moving. This should start a drag operation. The source icon of the drag icon represents some text, the operation icon is move (one folder). #) You should be able to do the previous experiment in any TextField of the FileSelectionBox. #) In the lists of the FileSelectionBox, verify that: !) o Clicking MB1 is selecting. o Pressing MB1 and moving on a selected item is starting a drag operation, with the copy operation icon (2 folders), and the source icon representing text. o Pressing MB1 and moving on an unselected item is doing selection. The seleted item is moving with the mouse. o MB2 (clicking or dragging) has no action. C) #) You should not be able to start a drag operation from any of the label using MB2, or MB1. Verify it is working for toggle button labels and labels. C) E)