XEROX NCScreen 2 4 1 NCScreen 1 4 By: Randy Trigg (Trigg.pa@Xerox.COM) Stored: {qv}1.3k>library>NCScreen, .dcom, .ted Last updated: May 4, 1987. INTRODUCTION This NoteCards library package provides a set of user-callable functions that can be used to manipulate cards on the screen. Other NoteCards library packages including NCCluster use NCScreen functions. FUNCTIONS FOR LAYING OUT CARDS (SCREEN.LayoutCardsInSquare ) Lay out the cards appearing in the list in a square arrangement with the upper left corner of the first card at the position . The number of columns is equal to the floor of the square root of the number of cards. Card windows are arranged in row order attempting to fit all windows on the screen without overlapping. However, some windows may overlap in order to fit each window on the screen. (SCREEN.LayoutCardsInCascade ) Lay out the cards in in a cascaded overlapping deck with the upper left corner of the first, deepest card at the position . Calls SCREEN.GetCascadePosition. (SCREEN.GetCascadePosition ) This function is used to determine the position for the next card in a cascade. It takes one argument which is a window and returns the position of the upper left corner for the next cascaded window. The spacing between cards in the cascade is determined by the global variables SCREEN.CascadeXSpace and SCREEN.CascadeYSpace (initially set to 3 and 8, respectively). (SCREEN.LayoutCardsInSurround ) Arranges the cards in the list around three sides of the card . Cards are placed in order down the right side, the left side, and along the bottom. Note: this may not display all cards in . The number of cards displayed is returned. (SCREEN.SurroundCardWithFileBoxContents ) Arrange the child cards of the filebox around the card . If either arg is NIL, then the user is asked to select. This calls SCREEN.LayoutCardsInSurround. If some cards in could not be displayed, then a statement to that effect is printed in the prompt window. MISCELLANEOUS HANDY FUNCTIONS (SCREEN.MoveCardToPos ) Move the card's window such that its corner is at the position . should be one of the litatoms UL, LL, UR, or LR. The default is UL. If the card is not currently on the screen, then it will be brought up. This calls SCREEN.MoveWinToPos. (SCREEN.MoveWinToPos ) Move the window so that its is at the position . should be one of UL, LL, UR, or LR as above. If the window doesn't completely fit on the screen at that position, then it is moved so it does. (SCREEN.WinLLCorner ) (SCREEN.WinLRCorner ) (SCREEN.WinULCorner ) (SCREEN.WinURCorner ) These functions return the positions of the various corners of the window . (SCREEN.WinShrinkAndPlace ) Shrink the window (if not already shrunk) and place so its upper left corner is at the upper left corner of . (LIST ((PAGE NIL (FOLIOINFO (ARABIC) STARTINGPAGE# 1) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM) FORMATINFO (ARABIC)) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL NIL (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF SLOPE REGULAR WEIGHT MEDIUM)) (282 42 72 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 444 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL)))))(È.ÈÈ.È È(È(ŠŠ8(È (ŠŠ8DÈÈ PAGEHEADING RUNNINGHEADMODERN MODERN MODERN MODERN MODERNLOGO HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN   HRULE.GETFNMODERN  HRULE.GETFNMODERN &: Ë0 1°%q46-+ßQ!x &Rzº