|
Packit |
b099d7 |
# $XConsortium: HorPanedWin1.scr /main/4 1995/07/17 20:32:22 drk $
|
|
Packit |
b099d7 |
# Motif
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# These libraries and programs are free software; you can
|
|
Packit |
b099d7 |
# redistribute them and/or modify them under the terms of the GNU
|
|
Packit |
b099d7 |
# Lesser General Public License as published by the Free Software
|
|
Packit |
b099d7 |
# Foundation; either version 2 of the License, or (at your option)
|
|
Packit |
b099d7 |
# any later version.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# These libraries and programs are distributed in the hope that
|
|
Packit |
b099d7 |
# they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
Packit |
b099d7 |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Packit |
b099d7 |
# PURPOSE. See the GNU Lesser General Public License for more
|
|
Packit |
b099d7 |
# details.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b099d7 |
# License along with these librararies and programs; if not, write
|
|
Packit |
b099d7 |
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
Packit |
b099d7 |
# Floor, Boston, MA 02110-1301 USA
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# HISTORY
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# A client with a Paned Window with three pushbuttons labeled
|
|
Packit |
b099d7 |
# PushButton1, PushButton2, and PushButton3 will appear.
|
|
Packit |
b099d7 |
# The Paned Window should be horizontal.
|
|
Packit |
b099d7 |
# The space on all 4 sides between the PanedWindow and its children should
|
|
Packit |
b099d7 |
# be 20 pixels.
|
|
Packit |
b099d7 |
# The sash width and height should be 10.
|
|
Packit |
b099d7 |
# The sashes should be offset 15 pixels from the top of the PanedWindow.
|
|
Packit |
b099d7 |
# The shadow thickenss of the sashes should be 5 pixels.
|
|
Packit |
b099d7 |
# The panes should have separators between them.
|
|
Packit |
b099d7 |
# The distance between each child pane should be 25 pixels.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Press and hold MB1 on the leftmost sash. Drag the pointer to the
|
|
Packit |
b099d7 |
# right extreme of the client window. Release MB1.
|
|
Packit |
b099d7 |
# - the leftmost pane should expand.
|
|
Packit |
b099d7 |
# - the middle pane should contract.
|
|
Packit |
b099d7 |
# - the rightmost pane should contract.
|
|
Packit |
b099d7 |
# - Pushbutton1 should be visible.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer PanedWindow1 RSash 0
|
|
Packit |
b099d7 |
DragXYRelative Right 100
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Press and hold MB1 on the leftmost sash. Drag the pointer to the
|
|
Packit |
b099d7 |
# left extreme of the client window. Release MB1.
|
|
Packit |
b099d7 |
# - the leftmost pane should contract
|
|
Packit |
b099d7 |
# - the middle pane should expand
|
|
Packit |
b099d7 |
# - the rightmost pane should be unchanged
|
|
Packit |
b099d7 |
# - Pushbutton2 should be visible.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer PanedWindow1 RSash 0
|
|
Packit |
b099d7 |
DragXYRelative Left 100
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Press and hold MB1 on the rightmost sash. Drag the pointer to the
|
|
Packit |
b099d7 |
# left extreme of the client window. Release MB1.
|
|
Packit |
b099d7 |
# - the leftmost pane should be unchanged.
|
|
Packit |
b099d7 |
# - the middle pane should contract.
|
|
Packit |
b099d7 |
# - the rightmost pane should expand.
|
|
Packit |
b099d7 |
# - Pushbutton3 should be visible.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer PanedWindow1 RSash 1
|
|
Packit |
b099d7 |
DragXYRelative Right 100
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Try to resize PushButton2. It should enforce a minumum and a maximum size
|
|
Packit |
b099d7 |
# of 100 and 150 pixels respectively.
|
|
Packit |
b099d7 |
# Resize the client window several times. PushButton3 should not change
|
|
Packit |
b099d7 |
# in width.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer PanedWindow1 RSash 1
|
|
Packit |
b099d7 |
DragXYRelative Right 100
|
|
Packit |
b099d7 |
DragXYRelative Left 100
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
WindowMove Shell1 100 100
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
WindowResize Shell1 NorthEast 500 500
|
|
Packit |
b099d7 |
WindowRaise Shell1
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
WindowRaise Shell1
|
|
Packit |
b099d7 |
WindowResize Shell1 SouthWest 200 200
|
|
Packit |
b099d7 |
WindowRaise Shell1
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
WindowResize Shell1 SouthEast 100 100
|
|
Packit |
b099d7 |
WindowRaise Shell1
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# PushButton1 should've grown to 500x500 pixels.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
WindowRaise Shell1
|
|
Packit |
b099d7 |
CompareVisual PanedWindow1
|
|
Packit |
b099d7 |
Exit
|
|
Packit |
b099d7 |
|