/* $XConsortium: ScrollList5.dat /main/4 1995/07/17 10:15:11 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 */ #) Testing XmNselectedPositions when XmNselectionMode is XmNORMAL_MODE. #) Select some items from the list. C) #) There should be no items which remain selected. C) #) Testing XmNselectedPositions when XmNselectionMode is XmNORMAL_MODE. #) Select some items from the list using the keyboard. C) #) There should be no items which remain selected. C) #) Testing XmNselectedPositions when XmNselectionMode is XmADD_MODE. #) Select some items from the list using the keyboard. C) #) There should be no items which remain selected. C) #) Testing the XmListCallbackStruct auto_selection_type member which is valid only when XmNautomaticSelectionMode is True. In this test we set XmNselectionPolicy to XmBROWSE_SELECT. #) Use the Mouse actions BSelect Press/Motion/Release. #) Whenever you BSelect Press, the item under the cursor should highlight. You should also see a message \"Type of Selection was Auto Begin\" #) When you BSelect Motion, the hightlight will follow the cursor. You should also see a message \"Type of Selection was Auto Motion\" #) When you BSelect Release, the item under the cursor will be hightlighted. You should also see a message \"Type of Selection was Auto No Change\" or \"Type of Selection was Auto Change\" C) #) Testing the XmListCallbackStruct auto_selection_type member which is valid only when XmNautomaticSelectionMode is True. In this test we set XmNselectionPolicy to XmEXTENDED_SELECT. #) Use the Mouse actions BExtend Press/Motion/Release. #) Whenever you BExtend Press, the item under the cursor should highlight. You should also see a message \"Type of Selection was Auto Begin\" #) When you BExtend Motion, the hightlight will follow the cursor. You should also see a message \"Type of Selection was Auto Motion\" #) When you BExtend Release, the item under the cursor will be hightlighted. You should also see a message \"Type of Selection was Auto No Change\" or \"Type of Selection was Auto Change\" C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_NEVER. Selection policy is XmSINGLE_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_ALWAYS. Selection policy is XmSINGLE_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list owns the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_MULTIPLE. Selection policy is XmSINGLE_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_POSSIBLE_MULTIPLE. Selection policy is XmSINGLE_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_NEVER. Selection policy is XmEXTENDED_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_ALWAYS. Selection policy is XmEXTENDED_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list owns the primary selection.\" printed to stdout. Any other message indicates failure. C) /* Panel 21 */ #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_MULTIPLE. Selection policy is XmEXTENDED_SELECT. #) Select one item from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_MULTIPLE. Selection policy is XmEXTENDED_SELECT. #) Select several items from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list owns the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_POSSIBLE_MULTIPLE. Selection policy is XmEXTENDED_SELECT. #) Select from the list using either the keyboard or mouse. C) #) You should see the message \"PASSED: The list owns the primary selection.\" printed to stdout. Any other message indicates failure. C) #) Testing XmNprimarySelection resource. This test sets XmNprimarySelection to XmOWN_POSSIBLE_MULTIPLE. Selection policy is XmEXTENDED_SELECT. #) Don't select anything in the list. C) #) You should see the message \"PASSED: The list does not own the primary selection.\" printed to stdout. Any other message indicates failure. E)