937 ! |
937 ! |
938 |
938 |
939 horizontalLayout:aSymbol |
939 horizontalLayout:aSymbol |
940 "change the horizontal layout as symbol. |
940 "change the horizontal layout as symbol. |
941 The argument, aSymbol must be one of: |
941 The argument, aSymbol must be one of: |
942 #left arrange elements at the left |
942 #left arrange elements at the left |
943 #leftSpace arrange elements at the left, start with spacing |
943 #leftSpace arrange elements at the left, start with spacing |
944 #fixLeft same as #left, but do not reduce spacing in case of no fit |
944 #fixLeft same as #left, but do not reduce spacing in case of no fit |
945 #fixLeftSpace same as #leftSpace, but do not reduce spacing in case of no fit |
945 #fixLeftSpace same as #leftSpace, but do not reduce spacing in case of no fit |
946 #right arrange elements at the right |
946 #right arrange elements at the right |
947 #rightSpace arrange elements at the right, start with spacing |
947 #rightSpace arrange elements at the right, start with spacing |
948 #center arrange elements in the center |
948 #center arrange elements in the center |
949 #spread spread elements evenly |
949 #spread spread elements evenly |
950 #spreadSpace spread elements evenly with spacing at the ends |
950 #spreadSpace spread elements evenly with spacing at the ends |
951 #fit like #spread, but resize elements for tight packing |
951 #fit like #spread, but resize elements for tight packing |
952 #fitSpace like #fit, with additional spacing at the far ends |
952 #fitSpace like #fit, with additional spacing at the far ends |
953 #leftFit like #left, but extend the last element to the right |
953 #leftFit like #left, but extend the last element to the right |
954 #leftSpaceFit like #leftSpace, but extend the last element to the right |
954 #leftSpaceFit like #leftSpace, but extend the last element to the right |
|
955 #leftMax like non-Max layouts, resizing components to |
|
956 #leftSpaceMax the width of the widest component |
|
957 #rightMax |
|
958 #rightSpaceMax |
|
959 #centerMax |
|
960 #spreadMax |
|
961 #spreadSpaceMax |
955 the default (if never changed) is #center. |
962 the default (if never changed) is #center. |
956 See the class documentation for the meanings. |
963 See the class documentation for the meanings. |
957 " |
964 " |
958 |
965 |
959 (hLayout ~~ aSymbol) ifTrue:[ |
966 (hLayout ~~ aSymbol) ifTrue:[ |
960 hLayout := aSymbol. |
967 hLayout := aSymbol. |
961 self layoutChanged |
968 self layoutChanged |
962 ] |
969 ] |
|
970 |
|
971 "Modified: 26.3.1997 / 15:41:16 / cg" |
963 ! |
972 ! |
964 |
973 |
965 layout |
974 layout |
966 "leftover for historic reasons - do not use any more" |
975 "leftover for historic reasons - do not use any more" |
967 |
976 |