THESTYLESHEETPACKAGEH.TayloeStansburyeditedbyR.Burton28September1983:addedSTOPbutton.Stylesheetsarecollectionsofmenus.Thesecollectionspopupallatonceinablock.Thisblockdoesnotdisappearuntilallmenusinithavebeendealtwith,andtheusersignalsthatheisdone.Stylesheetsareintendedtobeusedinsituationswhereinthecomputerwantsananswertoseveralrelatedquestionsallatonce.Oneexampleisfontselection.Toselectafont,theuserneedstospecifyfontfamily(TimesRoman,Helvetica,etc.),fontsize(8point,10point,etc.),andfontstyle(bold,italic,etc.).Ratherthanpromptforeachoftheseparametersinsuccession,onecoulduseastylesheettopromptforitallatonce.Whenthestylesheetpopsup,itwillshade(preselect)defaultselections(ifprovided)ineachofthemenus.TheusercaneitherdecidethatthedefaultselectionsareOK,orchangethemtosuithistaste.(Thedefaultselectionmechanismcanbeusedtoconveythecurrentstateofsomethingtheuseristryingtochangewiththestylesheet:forexample,thecurrentlooksofthetextwithwhichtheuserisdissatisfied.)Whentheuserisfinished,hehitstheDONEbuttonandthestylesheetdisappears,andthefinalselectionsarereturned.ThereisalsoaSTOPbuttonthatifselectedreturnsNILfromSTYLESHEETandisintendedtoprovidetheuserwithaconvenientwayofabortingtheselection.Note:ThismeansthatNILcanbereturnedfromacalltoSTYLESHEET.Notallmenusinastylesheetneedbefilledin.MenusthatneednotbefilledinhaveaCLEARbutton,whichcanbeusedtoremoveselectionsmadeinthatmenu.Tocreateastylesheet,call(CREATE.STYLEProp1Value1Prop2Value2...PropNValueN)CREATE.STYLEacceptsanarbitrarynumberofproperty-valuepairs.PropertiescurrentlyrecognisedareITEMS:Alistofmenus.Mostmenuformatparameterscontainedinmenurecordsarehonoredbythestylesheetpackage.WHENSELECTEDFNsare,ofcourse,ignored.SELECTIONS:Alistofmenuitems,eachonecorrespondingtoamenuinITEMS.Thespecifiedselectionswillbeshadedintheappropriatemenu,andwillbethedefaultselections.Ifnotspecifiedortooshort,itwillbefilledoutwithNILs(noselection).NEED.NOT.FILL.IN:AlistofTorNIL,eachonecorrespondingtoamenuinITEMS.Tindicatesthatthecorrespondingmenuneednotbefilledinandwillbegivenaclearbutton.Ifthelististooshort,itwillbefilledoutwithNILs.IfasingleTorNILisgiveninsteadofalist,itwillbereplacedbyalistofTsoralistofNILs,respectively.TITLE:Thetitlethatwillbegiventothestylesheet.Ifnotitleisspecified,thestylesheetwillnothaveatitlebar.POSITION:Thescreenposition(oftypePOSITION)ofthelowerleft-handcornerofthestylesheet.Ifpositionisnotspecified,thefunctionSTYLESHEETwillpromptforthepostion(usingGETBOXPOSITION).STYLESHEETwillmodifypositionsasnecessarytoensurethattheentirestylesheetwillbeonthescreen.Stylesheetscanbemodifiedbycalling(STYLE.PROPStylesheetPropNewvalue)p c/b6 qF jb6` `_  oP_^. ^.\ P;&+04:\[~ [~Z& Z&X Z "n$*+0 :>%@DFJJXWv  o#E&/47mAEIIWvV Z&*-Y/4VT TSn Z"n$)&+ 4;>FFSnR yZ!(O046;%BXH9H9POf  %).0069>DH9H9OfN ' &'x-Y17m:>AFFNL ' $)&,.0 7m9?C/EIILK^  oK^J JH y #E%)/ 9? IIHGV F1d#E)&)-Y14:@DH9H9GVE  ;!$).0048D>%>C/IIED P!%(O.018D=N?H9H9DCN Fyd#E'x* 48D?C/IICNA y;#E&*-Y 9!A@ @?F y1!$(O+/59%BXDH9H9=< %)&-Y 69 1d (O+.059 BXC/H9II;>9 'Z!)&-Y/3:5 ?98 876 F1 $(O*0449>%BXEH9H9765 P1;$)-Y/46%?DFF$f# d &*-Y3:59 C/H9H9#! FyZ )&),/8D:>%DFJJ! ^  oP"n + ^   #E$'x+/3: >AC/GbIIV P#E /3:7m:=NC/EIIV Zd$$'x*/14:=NADII FyZ"n$&),18D:DFFF ' $(O,.03:6F  P'd$(O,47m:?H9H9> P !$+.01 :>%EE> 'Z;!$+1?@ II d(O*048D>% GbGb 6 'j 6 Z"n$++ .  ;"n*. ) q?[STYLE.PROPalwaysreturnstheoldvalueofthespecifiedpropertyofthespecifiedstylesheet.IfNewvalueisprovided(evenifNIL),itreplacestheoldvalue.Ifnotprovided,theoldvalueremains.(JustlikeWINDOWPROP.)Tousethestylesheetthuscreated,call(STYLESHEETStylesheet)Thisreturnsalistofselectionstheusermadefromthestylesheet.(IfaselectionisreturnedasNIL,thatindicatesthatnoselectionwasmade.)Onecandetermineinadvanceofdisplayingastylesheethowbigitwillbe.(Thismayhelpindeterminingareasonablescreenpositionforthestylesheet.)Therelevantfunctionsare(STYLESHEET.IMAGEWIDTHStylesheet)and(STYLESHEET.IMAGEHEIGHTStylesheet)Theyreturnthewidthandheight,respectively,ofthestylesheetinpixels.Thepackageislocatedon{PHYLUM}inSTYLESHEET.DCOM.Tofamiliarizeyourselfwithitsworkings,youmightwanttoloaditandtrythefollowingexample:(STYLESHEET(CREATE.STYLE'ITEMS(LIST(CREATEMENUITEMS_'(TIMES%ROMANHELVETICAGACHA))(CREATEMENUITEMS_'(8910111214))(CREATEMENUITEMS_'(REGULARBOLDITALICBOLD%ITALIC)))'SELECTIONS'(TIMES%ROMAN11REGULAR)'NEED.NOT.FILL.INT]PleasedirectallbugreportsandsuggestionstoSTANSBURY.PA. c8b6 q ' $'x,/2c:BXDH9H9b6` P d; (O*2c7m9>AII`_ FZ;&)-Y2c9:?DD_^. ^.\ \[~  o' d!)&,[~Z&  AZ&X ; 'x*/3:7m: DEIJJXWv Pd$(O047m?C/H?WvV VT F#E% /0 9=N@C/GbJKKTSn P $% /4 oFZ!#E*/8D>+;>9 oFZ!#E&(O*-Y/3@98 oFZ!#E+/5:B^876 oF Z$'x.6765 oFd54 43. 3.1 10~ d$'x 14 >0~, q?[~GACHA ~GACHA Fj/#{PHYLUM}STYLESHEET.TTY;1BURTON28-SEP-83 14:36:45