mui.pas 127 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2005 Karoly Balogh
  4. muimaster.library interface unit for MorphOS/PowerPC
  5. Based on work of Nils Sjoholm member of the Amiga RTL
  6. development team.
  7. MorphOS port was done on a free Pegasos II/G4 machine
  8. provided by Genesi S.a.r.l. <www.genesi.lu>
  9. See the file COPYING.FPC, included in this distribution,
  10. for details about the copyright.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. **********************************************************************}
  15. {$mode objfpc}
  16. {$packrecords 2}
  17. {$inline on}
  18. unit mui;
  19. interface
  20. {
  21. MUI - MagicUserInterface
  22. (c) 1993-1997 Stefan Stuntz
  23. Main Header File
  24. Class Tree
  25. rootclass (BOOPSI's base class)
  26. +--Notify (implements notification mechanism)
  27. ! +--Family (handles multiple children)
  28. ! ! +--Menustrip (describes a complete menu strip)
  29. ! ! +--Menu (describes a single menu)
  30. ! ! \--Menuitem (describes a single menu item)
  31. ! +--Application (main class for all applications)
  32. ! +--Window (main class for all windows)
  33. ! ! \--Aboutmui (About window of MUI preferences)
  34. ! +--Area (base class for all GUI elements)
  35. ! +--Rectangle (spacing object)
  36. ! +--Balance (balancing separator bar)
  37. ! +--Image (image display)
  38. ! +--Bitmap (draws bitmaps)
  39. ! ! \--Bodychunk (makes bitmap from ILBM body chunk)
  40. ! +--Text (text display)
  41. ! +--Gadget (base class for intuition gadgets)
  42. ! ! +--String (string gadget)
  43. ! ! +--Boopsi (interface to BOOPSI gadgets)
  44. ! ! \--Prop (proportional gadget)
  45. ! +--Gauge (fule gauge)
  46. ! +--Scale (percentage scale)
  47. ! +--Colorfield (field with changeable color)
  48. ! +--List (line-oriented list)
  49. ! ! +--Floattext (special list with floating text)
  50. ! ! +--Volumelist (special list with volumes)
  51. ! ! +--Scrmodelist (special list with screen modes)
  52. ! ! \--Dirlist (special list with files)
  53. ! +--Numeric (base class for slider gadgets)
  54. ! ! +--Knob (turning knob)
  55. ! ! +--Levelmeter (level display)
  56. ! ! +--Numericbutton (space saving popup slider)
  57. ! ! \--Slider (traditional slider)
  58. ! +--Framedisplay (private)
  59. ! ! \--Popframe (private)
  60. ! +--Imagedisplay (private)
  61. ! ! \--Popimage (private)
  62. ! +--Pendisplay (displays a pen specification)
  63. ! ! \--Poppen (popup button to adjust a pen spec)
  64. ! +--Group (groups other GUI elements)
  65. ! +--Mccprefs (private)
  66. ! +--Register (handles page groups with titles)
  67. ! ! \--Penadjust (group to adjust a pen)
  68. ! +--Settingsgroup (private)
  69. ! +--Settings (private)
  70. ! +--Frameadjust (private)
  71. ! +--Imageadjust (private)
  72. ! +--Virtgroup (handles virtual groups)
  73. ! +--Scrollgroup (virtual groups with scrollbars)
  74. ! +--Scrollbar (traditional scrollbar)
  75. ! +--Listview (listview)
  76. ! +--Radio (radio button)
  77. ! +--Cycle (cycle gadget)
  78. ! +--Coloradjust (several gadgets to adjust a color)
  79. ! +--Palette (complete palette gadget)
  80. ! +--Popstring (base class for popup objects)
  81. ! +--Popobject (popup aynthing in a separate window)
  82. ! ! +--Poplist (popup a simple listview)
  83. ! ! \--Popscreen (popup a list of public screens)
  84. ! \--Popasl (popup an asl requester)
  85. +--Semaphore (semaphore equipped objects)
  86. +--Applist (private)
  87. +--Dataspace (handles general purpose data spaces)
  88. \--Configdata (private)
  89. General Header File Information
  90. All macro and structure definitions follow these rules:
  91. Name Meaning
  92. MUIC_<class> Name of a class
  93. MUIM_<class>_<method> Method
  94. MUIP_<class>_<method> Methods parameter structure
  95. MUIV_<class>_<method>_<x> Special method value
  96. MUIA_<class>_<attrib> Attribute
  97. MUIV_<class>_<attrib>_<x> Special attribute value
  98. MUIE_<error> Error return code from MUI_Error()
  99. MUII_<name> Standard MUI image
  100. MUIX_<code> Control codes for text strings
  101. MUIO_<name> Object type for MUI_MakeObject()
  102. MUIA_... attribute definitions are followed by a comment
  103. consisting of the three possible letters I, S and G.
  104. I: it's possible to specify this attribute at object creation time.
  105. S: it's possible to change this attribute with SetAttrs().
  106. G: it's possible to get this attribute with GetAttr().
  107. Items marked with "Custom Class" are for use in custom classes only!
  108. }
  109. uses exec, intuition,utility,graphics{,iffparse};
  110. {$WARNING IffParse required, look for FIX ME!!!}
  111. var
  112. MUIMasterBase : pLibrary;
  113. const
  114. MUIMASTER_NAME : PChar = 'muimaster.library';
  115. MUIMASTER_VMIN = 11;
  116. MUIMASTER_VLATEST = 19;
  117. const
  118. MUI_TRUE = 1;
  119. MUI_FALSE = 0;
  120. const
  121. MUI_END = TAG_DONE; // this can be used instead of C End
  122. {
  123. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  124. Warning, some of the macros in this header file work only with
  125. muimaster.library V11 and above. If you recompile your programs,
  126. be sure to open muimaster.library with MUIMASTER_VMIN as version number.
  127. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  128. }
  129. {
  130. Config items for MUIM_GetConfigItem
  131. }
  132. MUICFG_PublicScreen = 36;
  133. {
  134. Black box specification structures for images, pens, frames
  135. }
  136. type
  137. plongword = ^longword;
  138. tMUI_PenSpec = record
  139. buf : array[0..31] of char;
  140. end;
  141. pMUI_PenSpec = ^tMUI_PenSpec;
  142. {
  143. Public Screen Stuff
  144. }
  145. {
  146. NOTE: This stuff is only included to allow compilation of the supplied
  147. public screen manager for educational purposes. Everything
  148. here is subject to change without notice and I guarantee to
  149. do that just for fun!
  150. More info can be found in the screen manager source file.
  151. }
  152. const
  153. PSD_INITIAL_NAME : PChar = '(unnamed)';
  154. PSD_INITIAL_TITLE : PChar = 'MUI Public Screen';
  155. const
  156. PSD_NAME_FRONTMOST : PChar = '«Frontmost»';
  157. PSD_FILENAME_SAVE : PChar = 'envarc:mui/PublicScreens.iff';
  158. PSD_FILENAME_USE : PChar = 'env:mui/PublicScreens.iff';
  159. PSD_MAXLEN_NAME = 32;
  160. PSD_MAXLEN_TITLE = 128;
  161. PSD_MAXLEN_FONT = 48;
  162. PSD_MAXLEN_BACKGROUND = 256;
  163. PSD_NUMCOLS = 8;
  164. PSD_MAXSYSPENS = 20;
  165. PSD_NUMSYSPENS = 12;
  166. PSD_MAXMUIPENS = 10;
  167. PSD_NUMMUIPENS = 8;
  168. type
  169. tMUI_RGBcolor = record
  170. red : LongWord;
  171. green : LongWord;
  172. blue : LongWord;
  173. end;
  174. pMUI_RGBColor = ^tMUI_RGBColor;
  175. tMUI_PubScreenDesc = record
  176. Version : LongInt;
  177. Name : array[0..(PSD_MAXLEN_NAME)-1] of char;
  178. Title : array[0..(PSD_MAXLEN_TITLE)-1] of char;
  179. Font : array[0..(PSD_MAXLEN_FONT)-1] of char;
  180. Background : array[0..(PSD_MAXLEN_BACKGROUND)-1] of char;
  181. DisplayID : LongWord;
  182. DisplayWidth : WORD;
  183. DisplayHeight : WORD;
  184. DisplayDepth : BYTE;
  185. OverscanType : BYTE;
  186. AutoScroll : BYTE;
  187. NoDrag : BYTE;
  188. Exclusive : BYTE;
  189. Interleaved : BYTE;
  190. SysDefault : BYTE;
  191. Behind : BYTE;
  192. AutoClose : BYTE;
  193. CloseGadget : BYTE;
  194. DummyWasForeign : BYTE;
  195. SystemPens : array[0..(PSD_MAXSYSPENS)-1] of BYTE;
  196. Reserved : array[0..((1 + (7 * 4)) - PSD_MAXSYSPENS)-1] of BYTE;
  197. Palette : array[0..(PSD_NUMCOLS)-1] of tMUI_RGBcolor;
  198. rsvd : array[0..(PSD_MAXSYSPENS - PSD_NUMCOLS)-1] of tMUI_RGBcolor;
  199. rsvd2 : array[0..(PSD_MAXMUIPENS)-1] of tMUI_PenSpec;
  200. Changed : LongInt;
  201. UserData : Pointer;
  202. end;
  203. pMUI_PubScreenDesc = ^tMUI_PubScreenDesc;
  204. tMUIS_InfoClient = record
  205. node : tMinNode;
  206. task : PTask;
  207. sigbit : LongWord;
  208. end;
  209. pMUIS_InfoClient = ^tMUIS_InfoClient;
  210. {
  211. Object Types for MUI_MakeObject()
  212. }
  213. { PChar label, LongWord flags }
  214. const
  215. MUIO_Label = 1;
  216. { PChar label }
  217. MUIO_Button = 2;
  218. { PChar label }
  219. MUIO_Checkmark = 3;
  220. { PChar label, PChar entries }
  221. MUIO_Cycle = 4;
  222. { PChar label, PChar entries }
  223. MUIO_Radio = 5;
  224. { PChar label, LongInt min, LongInt max }
  225. MUIO_Slider = 6;
  226. { PChar label, LongInt maxlen }
  227. MUIO_String = 7;
  228. { PChar imagespec }
  229. MUIO_PopButton = 8;
  230. { LongInt space }
  231. MUIO_HSpace = 9;
  232. { LongInt space }
  233. MUIO_VSpace = 10;
  234. { LongInt space }
  235. MUIO_HBar = 11;
  236. { LongInt space }
  237. MUIO_VBar = 12;
  238. { struct NewMenu nm, LongWord flags }
  239. MUIO_MenustripNM = 13;
  240. { PChar label, PChar shortcut, LongWord flags, LongWord data }
  241. MUIO_Menuitem = 14;
  242. { PChar label }
  243. MUIO_BarTitle = 15;
  244. { PChar label, LongInt min, LongInt max, PChar format }
  245. MUIO_NumericButton = 16;
  246. MUIO_Menuitem_CopyStrings = 1 shl 30;
  247. MUIO_Label_SingleFrame = 1 shl 8;
  248. MUIO_Label_DoubleFrame = 1 shl 9;
  249. MUIO_Label_LeftAligned = 1 shl 10;
  250. MUIO_Label_Centered = 1 shl 11;
  251. MUIO_Label_FreeVert = 1 shl 12;
  252. { check for "localized" menu items such as "O\0Open" }
  253. MUIO_MenustripNM_CommandKeyCheck = 1 shl 0;
  254. {
  255. ARexx Interface
  256. }
  257. type
  258. tMUI_Command = record
  259. mc_Name : Pchar;
  260. mc_Template : Pchar;
  261. mc_Parameters : LongInt;
  262. mc_Hook : PHook;
  263. mc_Reserved : array[0..4] of LongInt;
  264. end;
  265. pMUI_Command = ^tMUI_Command;
  266. const
  267. { MC_TEMPLATE_ID : PCHar = not(0); }
  268. MC_TEMPLATE_ID = -1;
  269. MUI_RXERR_BADDEFINITION = -(1);
  270. MUI_RXERR_OUTOFMEMORY = -(2);
  271. MUI_RXERR_UNKNOWNCOMMAND = -(3);
  272. MUI_RXERR_BADSYNTAX = -(4);
  273. {
  274. Return values for MUI_Error()
  275. }
  276. MUIE_OK = 0;
  277. MUIE_OutOfMemory = 1;
  278. MUIE_OutOfGfxMemory = 2;
  279. MUIE_InvalidWindowObject = 3;
  280. MUIE_MissingLibrary = 4;
  281. MUIE_NoARexx = 5;
  282. MUIE_SingleTask = 6;
  283. {
  284. Standard MUI Images & Backgrounds
  285. }
  286. { These images are configured }
  287. MUII_WindowBack = 0;
  288. { with the preferences program. }
  289. MUII_RequesterBack = 1;
  290. MUII_ButtonBack = 2;
  291. MUII_ListBack = 3;
  292. MUII_TextBack = 4;
  293. MUII_PropBack = 5;
  294. MUII_PopupBack = 6;
  295. MUII_SelectedBack = 7;
  296. MUII_ListCursor = 8;
  297. MUII_ListSelect = 9;
  298. MUII_ListSelCur = 10;
  299. MUII_ArrowUp = 11;
  300. MUII_ArrowDown = 12;
  301. MUII_ArrowLeft = 13;
  302. MUII_ArrowRight = 14;
  303. MUII_CheckMark = 15;
  304. MUII_RadioButton = 16;
  305. MUII_Cycle = 17;
  306. MUII_PopUp = 18;
  307. MUII_PopFile = 19;
  308. MUII_PopDrawer = 20;
  309. MUII_PropKnob = 21;
  310. MUII_Drawer = 22;
  311. MUII_HardDisk = 23;
  312. MUII_Disk = 24;
  313. MUII_Chip = 25;
  314. MUII_Volume = 26;
  315. MUII_RegisterBack = 27;
  316. MUII_Network = 28;
  317. MUII_Assign = 29;
  318. MUII_TapePlay = 30;
  319. MUII_TapePlayBack = 31;
  320. MUII_TapePause = 32;
  321. MUII_TapeStop = 33;
  322. MUII_TapeRecord = 34;
  323. MUII_GroupBack = 35;
  324. MUII_SliderBack = 36;
  325. MUII_SliderKnob = 37;
  326. MUII_TapeUp = 38;
  327. MUII_TapeDown = 39;
  328. MUII_PageBack = 40;
  329. MUII_ReadListBack = 41;
  330. MUII_Count = 42;
  331. { These are direct color }
  332. MUII_BACKGROUND = 128;
  333. { combinations and are not }
  334. MUII_SHADOW = 129;
  335. { affected by users prefs. }
  336. MUII_SHINE = 130;
  337. MUII_FILL = 131;
  338. { Generally, you should }
  339. MUII_SHADOWBACK = 132;
  340. { avoid using them. Better }
  341. MUII_SHADOWFILL = 133;
  342. { use one of the customized }
  343. MUII_SHADOWSHINE = 134;
  344. { images above. }
  345. MUII_FILLBACK = 135;
  346. MUII_FILLSHINE = 136;
  347. MUII_SHINEBACK = 137;
  348. MUII_FILLBACK2 = 138;
  349. MUII_HSHINEBACK = 139;
  350. MUII_HSHADOWBACK = 140;
  351. MUII_HSHINESHINE = 141;
  352. MUII_HSHADOWSHADOW = 142;
  353. MUII_MARKSHINE = 143;
  354. MUII_MARKHALFSHINE = 144;
  355. MUII_MARKBACKGROUND = 145;
  356. MUII_LASTPAT = 145;
  357. {
  358. Special values for some methods
  359. }
  360. MUIV_TriggerValue = $49893131;
  361. MUIV_NotTriggerValue = $49893133;
  362. MUIV_EveryTime = $49893131;
  363. MUIV_Notify_Self = 1;
  364. MUIV_Notify_Window = 2;
  365. MUIV_Notify_Application = 3;
  366. MUIV_Notify_Parent = 4;
  367. const
  368. MUIV_Application_ReturnID_Quit = -(1);
  369. MUIV_List_Insert_Top = 0;
  370. MUIV_List_Insert_Active = -(1);
  371. MUIV_List_Insert_Sorted = -(2);
  372. MUIV_List_Insert_Bottom = -(3);
  373. MUIV_List_Remove_First = 0;
  374. MUIV_List_Remove_Active = -(1);
  375. MUIV_List_Remove_Last = -(2);
  376. MUIV_List_Remove_Selected = -(3);
  377. MUIV_List_Select_Off = 0;
  378. MUIV_List_Select_On = 1;
  379. MUIV_List_Select_Toggle = 2;
  380. MUIV_List_Select_Ask = 3;
  381. MUIV_List_GetEntry_Active = -(1);
  382. MUIV_List_Select_Active = -(1);
  383. MUIV_List_Select_All = -(2);
  384. MUIV_List_Redraw_Active = -(1);
  385. MUIV_List_Redraw_All = -(2);
  386. MUIV_List_Move_Top = 0;
  387. MUIV_List_Move_Active = -(1);
  388. MUIV_List_Move_Bottom = -(2);
  389. { only valid for second parameter }
  390. MUIV_List_Move_Next = -(3);
  391. { only valid for second parameter }
  392. MUIV_List_Move_Previous = -(4);
  393. MUIV_List_Exchange_Top = 0;
  394. MUIV_List_Exchange_Active = -(1);
  395. MUIV_List_Exchange_Bottom = -(2);
  396. { only valid for second parameter }
  397. MUIV_List_Exchange_Next = -(3);
  398. { only valid for second parameter }
  399. MUIV_List_Exchange_Previous = -(4);
  400. MUIV_List_Jump_Top = 0;
  401. MUIV_List_Jump_Active = -(1);
  402. MUIV_List_Jump_Bottom = -(2);
  403. MUIV_List_Jump_Up = -(4);
  404. MUIV_List_Jump_Down = -(3);
  405. MUIV_List_NextSelected_Start = -(1);
  406. MUIV_List_NextSelected_End = -(1);
  407. MUIV_DragQuery_Refuse = 0;
  408. MUIV_DragQuery_Accept = 1;
  409. MUIV_DragReport_Abort = 0;
  410. MUIV_DragReport_Continue = 1;
  411. MUIV_DragReport_Lock = 2;
  412. MUIV_DragReport_Refresh = 3;
  413. {
  414. Control codes for text strings
  415. }
  416. { right justified }
  417. MUIX_R = #27+'r';
  418. { centered }
  419. MUIX_C = #27+'c';
  420. { left justified }
  421. MUIX_L = #27+'l';
  422. { normal }
  423. MUIX_N = #27+'n';
  424. { bold }
  425. MUIX_B = #27+'b';
  426. { italic }
  427. MUIX_I = #27+'i';
  428. { underlined }
  429. MUIX_U = #27+'u';
  430. { text pen }
  431. MUIX_PT = #27+'2';
  432. { highlight text pen }
  433. MUIX_PH = #27+'8';
  434. {
  435. Parameter structures for some classes
  436. }
  437. type
  438. tMUI_Palette_Entry = record
  439. mpe_ID : LongInt;
  440. mpe_Red : LongWord;
  441. mpe_Green : LongWord;
  442. mpe_Blue : LongWord;
  443. mpe_Group : LongInt;
  444. end;
  445. pMUI_Palette_Entry = ^tMUI_Palette_Entry;
  446. const
  447. MUIV_Palette_Entry_End = (-1);
  448. { }
  449. { Application Input Handler }
  450. { }
  451. { see below }
  452. type
  453. tMUI_InputHandlerNode = record
  454. ihn_Node : tMinNode;
  455. ihn_Object : pObject_;
  456. ihn_stuff : record
  457. case longint of
  458. 0 : ( ihn_sigs : LongWord );
  459. 1 : ( ihn_timer : record
  460. ihn_millis : WORD;
  461. ihn_current : WORD;
  462. end );
  463. end;
  464. ihn_Flags : LongWord;
  465. ihn_Method : LongWord;
  466. end;
  467. pMUI_InputHandlerNode = ^tMUI_InputHandlerNode;
  468. const
  469. { ihn_Signals = ihn_stuff.ihn_sigs;
  470. ihn_Millis = ihn_stuff.(ihn_timer.ihn_millis);
  471. ihn_Current = ihn_stuff.(ihn_timer.ihn_current); }
  472. { Flags for ihn_Flags }
  473. { set ihn_Ticks to number of 1/100 sec ticks you want to be triggered }
  474. MUIIHNF_TIMER = 1 shl 0;
  475. { }
  476. { Window Event Handler }
  477. { }
  478. { don't touch! }
  479. { event handlers are inserted according to their priority. }
  480. { certain flags, see below for definitions. }
  481. { object which should receive MUIM_HandleEvent. }
  482. { if !=NULL, MUIM_HandleEvent is invoked on exactly this class with CoerceMethod(). }
  483. { one or more IDCMP flags this handler should react on. }
  484. type
  485. tMUI_EventHandlerNode = record
  486. ehn_Node : tMinNode;
  487. ehn_Reserved : BYTE;
  488. ehn_Priority : BYTE;
  489. ehn_Flags : WORD;
  490. ehn_Object : pObject_;
  491. ehn_Class : PIClass;
  492. ehn_Events : LongWord;
  493. end;
  494. pMUI_EventHandlerNode = ^tMUI_EventHandlerNode;
  495. { flags for ehn_Flags }
  496. const
  497. MUI_EHF_ALWAYSKEYS = 1 shl 0;
  498. { other values reserved for future use }
  499. { return values for MUIM_HandleEvent (bit-masked, all other bits must be 0) }
  500. { stop MUI from calling other handlers }
  501. MUI_EventHandlerRC_Eat = 1 shl 0;
  502. { }
  503. { List Position Test }
  504. { }
  505. { number of entry, -1 if mouse not over valid entry }
  506. { numer of column, -1 if no valid column }
  507. { see below }
  508. { x offset of mouse click relative to column start }
  509. { y offset of mouse click from center of line
  510. (negative values mean click was above center,
  511. positive values mean click was below center) }
  512. type
  513. tMUI_List_TestPos_Result = record
  514. entry : LongInt;
  515. column : WORD;
  516. flags : WORD;
  517. xoffset : WORD;
  518. yoffset : WORD;
  519. end;
  520. pMUI_List_TestPos_Result = ^tMUI_List_TestPos_Result;
  521. const
  522. MUI_LPR_ABOVE = 1 shl 0;
  523. MUI_LPR_BELOW = 1 shl 1;
  524. MUI_LPR_LEFT = 1 shl 2;
  525. MUI_LPR_RIGHT = 1 shl 3;
  526. {
  527. For Boopsi Image Implementors Only:
  528. If MUI is using a boopsi image object, it will send a special method
  529. immediately after object creation. This method has a parameter structure
  530. where the boopsi can fill in its minimum and maximum size and learn if
  531. its used in a horizontal or vertical context.
  532. The boopsi image must use the method id (MUIM_BoopsiQuery) as return
  533. value. That's how MUI sees that the method is implemented.
  534. Note: MUI does not depend on this method. If the boopsi image doesn't
  535. implement it, minimum size will be 0 and maximum size unlimited.
  536. }
  537. { this is send to the boopsi and }
  538. const
  539. MUIM_BoopsiQuery = $80427157;
  540. { must be used as return value }
  541. { parameter structure }
  542. { always MUIM_BoopsiQuery }
  543. { obsolete, use mbq_RenderInfo }
  544. { read only, see below }
  545. { write only, fill in min width }
  546. { write only, fill in min height }
  547. { write only, fill in max width }
  548. { write only, fill in max height }
  549. { write only, fill in def width }
  550. { write only, fill in def height }
  551. { read only, display context }
  552. { may grow in future ... }
  553. type
  554. tMUI_RenderInfo = record
  555. mri_WindowObject : pObject_;
  556. mri_Screen : PScreen;
  557. mri_DrawInfo : PDrawInfo;
  558. mri_Pens : ^WORD;
  559. mri_Window : PWindow;
  560. mri_RastPort : PRastPort;
  561. mri_Flags : LongWord;
  562. end;
  563. pMUI_RenderInfo = ^tMUI_RenderInfo;
  564. type
  565. tMUI_BoopsiQuery = record
  566. mbq_MethodID : LongWord;
  567. mbq_Screen : PScreen;
  568. mbq_Flags : LongWord;
  569. mbq_MinWidth : LongInt;
  570. mbq_MinHeight : LongInt;
  571. mbq_MaxWidth : LongInt;
  572. mbq_MaxHeight : LongInt;
  573. mbq_DefWidth : LongInt;
  574. mbq_DefHeight : LongInt;
  575. mbq_RenderInfo : PMUI_RenderInfo;
  576. end;
  577. pMUI_BoopsiQuery = ^tMUI_BoopsiQuery;
  578. { old structure name }
  579. MUIP_BoopsiQuery = tMUI_BoopsiQuery;
  580. const
  581. { object used in a horizontal }
  582. MBQF_HORIZ = 1 shl 0;
  583. { context (else vertical) }
  584. { use this for unlimited MaxWidth/Height }
  585. MBQ_MUI_MAXMAX = 10000;
  586. { }
  587. { Begin of automatic header file creation }
  588. { }
  589. { }
  590. { Notify }
  591. { }
  592. const
  593. MUIC_Notify : PChar = 'Notify.mui';
  594. { Methods }
  595. { V4 }
  596. const
  597. MUIM_CallHook = $8042b96b;
  598. { V12 }
  599. MUIM_Export = $80420f1c;
  600. { V8 }
  601. MUIM_FindUData = $8042c196;
  602. { V11 }
  603. MUIM_GetConfigItem = $80423edb;
  604. { V8 }
  605. MUIM_GetUData = $8042ed0c;
  606. { V12 }
  607. MUIM_Import = $8042d012;
  608. { V4 }
  609. MUIM_KillNotify = $8042d240;
  610. { V16 }
  611. MUIM_KillNotifyObj = $8042b145;
  612. { V7 }
  613. MUIM_MultiSet = $8042d356;
  614. { V9 }
  615. MUIM_NoNotifySet = $8042216f;
  616. { V4 }
  617. MUIM_Notify = $8042c9cb;
  618. { V4 }
  619. MUIM_Set = $8042549a;
  620. { V4 }
  621. MUIM_SetAsString = $80422590;
  622. { V8 }
  623. MUIM_SetUData = $8042c920;
  624. { V11 }
  625. MUIM_SetUDataOnce = $8042ca19;
  626. { V6 }
  627. MUIM_WriteLong = $80428d86;
  628. { V6 }
  629. MUIM_WriteString = $80424bf4;
  630. { ... }
  631. type
  632. tMUIP_CallHook = record
  633. MethodID : LongWord;
  634. Hook : PHook;
  635. param1 : LongWord;
  636. end;
  637. pMUIP_CallHook = ^tMUIP_CallHook;
  638. tMUIP_Export = record
  639. MethodID : LongWord;
  640. dataspace : pObject_;
  641. end;
  642. pMUIP_Export = ^tMUIP_Export;
  643. tMUIP_FindUData = record
  644. MethodID : LongWord;
  645. udata : LongWord;
  646. end;
  647. pMUIP_FindUData = ^tMUIP_FindUData;
  648. tMUIP_GetConfigItem = record
  649. MethodID : LongWord;
  650. id : LongWord;
  651. storage : PLongWord;
  652. end;
  653. pMUIP_GetConfigItem = ^tMUIP_GetConfigItem;
  654. tMUIP_GetUData = record
  655. MethodID : LongWord;
  656. udata : LongWord;
  657. attr : LongWord;
  658. storage : PLongWord;
  659. end;
  660. pMUIP_GetUData = ^tMUIP_GetUData;
  661. tMUIP_Import = record
  662. MethodID : LongWord;
  663. dataspace : pObject_;
  664. end;
  665. pMUIP_Import = ^tMUIP_Import;
  666. tMUIP_KillNotify = record
  667. MethodID : LongWord;
  668. TrigAttr : LongWord;
  669. end;
  670. pMUIP_KillNotify = ^tMUIP_KillNotify;
  671. tMUIP_KillNotifyObj = record
  672. MethodID : LongWord;
  673. TrigAttr : LongWord;
  674. dest : pObject_;
  675. end;
  676. pMUIP_KillNotifyObj = ^tMUIP_KillNotifyObj;
  677. { ... }
  678. tMUIP_MultiSet = record
  679. MethodID : LongWord;
  680. attr : LongWord;
  681. val : LongWord;
  682. obj : Pointer;
  683. end;
  684. pMUIP_MultiSet = ^tMUIP_MultiSet;
  685. { ... }
  686. tMUIP_NoNotifySet = record
  687. MethodID : LongWord;
  688. attr : LongWord;
  689. format : Pchar;
  690. val : LongWord;
  691. end;
  692. pMUIP_NoNotifySet = ^tMUIP_NoNotifySet;
  693. { ... }
  694. tMUIP_Notify = record
  695. MethodID : LongWord;
  696. TrigAttr : LongWord;
  697. TrigVal : LongWord;
  698. DestObj : Pointer;
  699. FollowParams : LongWord;
  700. end;
  701. pMUIP_Notify = ^tMUIP_Notify;
  702. tMUIP_Set = record
  703. MethodID : LongWord;
  704. attr : LongWord;
  705. val : LongWord;
  706. end;
  707. pMUIP_Set = ^tMUIP_Set;
  708. { ... }
  709. tMUIP_SetAsString = record
  710. MethodID : LongWord;
  711. attr : LongWord;
  712. format : Pchar;
  713. val : LongWord;
  714. end;
  715. pMUIP_SetAsString = ^tMUIP_SetAsString;
  716. tMUIP_SetUData = record
  717. MethodID : LongWord;
  718. udata : LongWord;
  719. attr : LongWord;
  720. val : LongWord;
  721. end;
  722. pMUIP_SetUData = ^tMUIP_SetUData;
  723. tMUIP_SetUDataOnce = record
  724. MethodID : LongWord;
  725. udata : LongWord;
  726. attr : LongWord;
  727. val : LongWord;
  728. end;
  729. pMUIP_SetUDataOnce = ^tMUIP_SetUDataOnce;
  730. tMUIP_WriteLong = record
  731. MethodID : LongWord;
  732. val : LongWord;
  733. memory : PLongWord;
  734. end;
  735. pMUIP_WriteLong = ^tMUIP_WriteLong;
  736. tMUIP_WriteString = record
  737. MethodID : LongWord;
  738. str : Pchar;
  739. memory : Pchar;
  740. end;
  741. pMUIP_WriteString = ^tMUIP_WriteString;
  742. { Attributes }
  743. { V4 ..g Object }
  744. const
  745. MUIA_ApplicationObject = $8042d3ee;
  746. { V5 ..g struct AppMessage }
  747. MUIA_AppMessage = $80421955;
  748. { V4 isg LongInt }
  749. MUIA_HelpLine = $8042a825;
  750. { V4 isg PChar }
  751. MUIA_HelpNode = $80420b85;
  752. { V7 .s. BOOL }
  753. MUIA_NoNotify = $804237f9;
  754. { V11 isg LongWord }
  755. MUIA_ObjectID = $8042d76e;
  756. { V11 ..g Object }
  757. MUIA_Parent = $8042e35f;
  758. { V4 ..g LongInt }
  759. MUIA_Revision = $80427eaa;
  760. { V4 isg LongWord }
  761. MUIA_UserData = $80420313;
  762. { V4 ..g LongInt }
  763. MUIA_Version = $80422301;
  764. { }
  765. { Family }
  766. { }
  767. const
  768. MUIC_Family : PChar = 'Family.mui';
  769. { Methods }
  770. { V8 }
  771. const
  772. MUIM_Family_AddHead = $8042e200;
  773. { V8 }
  774. MUIM_Family_AddTail = $8042d752;
  775. { V8 }
  776. MUIM_Family_Insert = $80424d34;
  777. { V8 }
  778. MUIM_Family_Remove = $8042f8a9;
  779. { V8 }
  780. MUIM_Family_Sort = $80421c49;
  781. { V8 }
  782. MUIM_Family_Transfer = $8042c14a;
  783. type
  784. tMUIP_Family_AddHead = record
  785. MethodID : LongWord;
  786. obj : pObject_;
  787. end;
  788. pMUIP_Family_AddHead = ^tMUIP_Family_AddHead;
  789. tMUIP_Family_AddTail = record
  790. MethodID : LongWord;
  791. obj : pObject_;
  792. end;
  793. pMUIP_Family_AddTail = ^tMUIP_Family_AddTail;
  794. tMUIP_Family_Insert = record
  795. MethodID : LongWord;
  796. obj : pObject_;
  797. pred : pObject_;
  798. end;
  799. pMUIP_Family_Insert = ^tMUIP_Family_Insert;
  800. tMUIP_Family_Remove = record
  801. MethodID : LongWord;
  802. obj : pObject_;
  803. end;
  804. pMUIP_Family_Remove = ^tMUIP_Family_Remove;
  805. tMUIP_Family_Sort = record
  806. MethodID : LongWord;
  807. obj : array[0..0] of pObject_;
  808. end;
  809. pMUIP_Family_Sort = ^tMUIP_Family_Sort;
  810. tMUIP_Family_Transfer = record
  811. MethodID : LongWord;
  812. family : pObject_;
  813. end;
  814. pMUIP_Family_Transfer = ^tMUIP_Family_Transfer;
  815. { Attributes }
  816. { V8 i.. Object }
  817. const
  818. MUIA_Family_Child = $8042c696;
  819. { V8 ..g struct MinList }
  820. MUIA_Family_List = $80424b9e;
  821. { }
  822. { Menustrip }
  823. { }
  824. const
  825. MUIC_Menustrip : PChar = 'Menustrip.mui';
  826. { Methods }
  827. { Attributes }
  828. { V8 isg BOOL }
  829. const
  830. MUIA_Menustrip_Enabled = $8042815b;
  831. { }
  832. { Menu }
  833. { }
  834. const
  835. MUIC_Menu : PChar = 'Menu.mui';
  836. { Methods }
  837. { Attributes }
  838. { V8 isg BOOL }
  839. const
  840. MUIA_Menu_Enabled = $8042ed48;
  841. { V8 isg PChar }
  842. MUIA_Menu_Title = $8042a0e3;
  843. { }
  844. { Menuitem }
  845. { }
  846. const
  847. MUIC_Menuitem : PChar = 'Menuitem.mui';
  848. { Methods }
  849. { Attributes }
  850. { V8 isg BOOL }
  851. const
  852. MUIA_Menuitem_Checked = $8042562a;
  853. { V8 isg BOOL }
  854. MUIA_Menuitem_Checkit = $80425ace;
  855. { V16 isg BOOL }
  856. MUIA_Menuitem_CommandString = $8042b9cc;
  857. { V8 isg BOOL }
  858. MUIA_Menuitem_Enabled = $8042ae0f;
  859. { V8 isg LongInt }
  860. MUIA_Menuitem_Exclude = $80420bc6;
  861. { V8 isg PChar }
  862. MUIA_Menuitem_Shortcut = $80422030;
  863. { V8 isg PChar }
  864. MUIA_Menuitem_Title = $804218be;
  865. { V8 isg BOOL }
  866. MUIA_Menuitem_Toggle = $80424d5c;
  867. { V8 ..g struct MenuItem }
  868. MUIA_Menuitem_Trigger = $80426f32;
  869. MUIV_Menuitem_Shortcut_Check = -(1);
  870. { }
  871. { Application }
  872. { }
  873. const
  874. MUIC_Application : PChar = 'Application.mui';
  875. { Methods }
  876. { V14 }
  877. const
  878. MUIM_Application_AboutMUI = $8042d21d;
  879. { V11 }
  880. MUIM_Application_AddInputHandler = $8042f099;
  881. { V11 }
  882. MUIM_Application_CheckRefresh = $80424d68;
  883. { MUI_OBSOLETE }
  884. { V4 }
  885. const
  886. MUIM_Application_InputBuffered = $80427e59;
  887. { V4 }
  888. MUIM_Application_Load = $8042f90d;
  889. { V11 }
  890. MUIM_Application_NewInput = $80423ba6;
  891. { V11 }
  892. MUIM_Application_OpenConfigWindow = $804299ba;
  893. { V4 }
  894. MUIM_Application_PushMethod = $80429ef8;
  895. { V11 }
  896. MUIM_Application_RemInputHandler = $8042e7af;
  897. { V4 }
  898. MUIM_Application_ReturnID = $804276ef;
  899. { V4 }
  900. MUIM_Application_Save = $804227ef;
  901. { V11 }
  902. MUIM_Application_SetConfigItem = $80424a80;
  903. { V4 }
  904. const
  905. MUIM_Application_ShowHelp = $80426479;
  906. type
  907. tMUIP_Application_AboutMUI = record
  908. MethodID : LongWord;
  909. refwindow : pObject_;
  910. end;
  911. pMUIP_Application_AboutMUI = ^tMUIP_Application_AboutMUI;
  912. tMUIP_Application_AddInputHandler = record
  913. MethodID : LongWord;
  914. ihnode : PMUI_InputHandlerNode;
  915. end;
  916. pMUIP_Application_AddInputHandler = ^tMUIP_Application_AddInputHandler;
  917. tMUIP_Application_CheckRefresh = record
  918. MethodID : LongWord;
  919. end;
  920. pMUIP_Application_CheckRefresh = ^tMUIP_Application_CheckRefresh;
  921. tMUIP_Application_GetMenuCheck = record
  922. MethodID : LongWord;
  923. MenuID : LongWord;
  924. end;
  925. pMUIP_Application_GetMenuCheck = ^tMUIP_Application_GetMenuCheck;
  926. tMUIP_Application_GetMenuState = record
  927. MethodID : LongWord;
  928. MenuID : LongWord;
  929. end;
  930. pMUIP_Application_GetMenuState = ^tMUIP_Application_GetMenuState;
  931. tMUIP_Application_Input = record
  932. MethodID : LongWord;
  933. signal : PLongWord;
  934. end;
  935. pMUIP_Application_Input = ^tMUIP_Application_Input;
  936. tMUIP_Application_InputBuffered = record
  937. MethodID : LongWord;
  938. end;
  939. pMUIP_Application_InputBuffered = ^tMUIP_Application_InputBuffered;
  940. tMUIP_Application_Load = record
  941. MethodID : LongWord;
  942. name : PChar;
  943. end;
  944. tMUIP_Application_NewInput = record
  945. MethodID : LongWord;
  946. signal : PLongWord;
  947. end;
  948. pMUIP_Application_NewInput = ^tMUIP_Application_NewInput;
  949. tMUIP_Application_OpenConfigWindow = record
  950. MethodID : LongWord;
  951. flags : LongWord;
  952. end;
  953. pMUIP_Application_OpenConfigWindow = ^tMUIP_Application_OpenConfigWindow;
  954. { ... }
  955. tMUIP_Application_PushMethod = record
  956. MethodID : LongWord;
  957. dest : pObject_;
  958. count : LongInt;
  959. end;
  960. pMUIP_Application_PushMethod = ^tMUIP_Application_PushMethod;
  961. tMUIP_Application_RemInputHandler = record
  962. MethodID : LongWord;
  963. ihnode : PMUI_InputHandlerNode;
  964. end;
  965. pMUIP_Application_RemInputHandler = ^tMUIP_Application_RemInputHandler;
  966. tMUIP_Application_ReturnID = record
  967. MethodID : LongWord;
  968. retid : LongWord;
  969. end;
  970. pMUIP_Application_ReturnID = ^tMUIP_Application_ReturnID;
  971. tMUIP_Application_Save = record
  972. MethodID : LongWord;
  973. name : PChar;
  974. end;
  975. tMUIP_Application_SetConfigItem = record
  976. MethodID : LongWord;
  977. item : LongWord;
  978. data : Pointer;
  979. end;
  980. pMUIP_Application_SetConfigItem = ^tMUIP_Application_SetConfigItem;
  981. tMUIP_Application_SetMenuCheck = record
  982. MethodID : LongWord;
  983. MenuID : LongWord;
  984. stat : LongInt;
  985. end;
  986. pMUIP_Application_SetMenuCheck = ^tMUIP_Application_SetMenuCheck;
  987. tMUIP_Application_SetMenuState = record
  988. MethodID : LongWord;
  989. MenuID : LongWord;
  990. stat : LongInt;
  991. end;
  992. pMUIP_Application_SetMenuState = ^tMUIP_Application_SetMenuState;
  993. tMUIP_Application_ShowHelp = record
  994. MethodID : LongWord;
  995. window : pObject_;
  996. name : Pchar;
  997. node : Pchar;
  998. line : LongInt;
  999. end;
  1000. pMUIP_Application_ShowHelp = ^tMUIP_Application_ShowHelp;
  1001. { Attributes }
  1002. { V4 isg BOOL }
  1003. const
  1004. MUIA_Application_Active = $804260ab;
  1005. { V4 i.g PChar }
  1006. MUIA_Application_Author = $80424842;
  1007. { V4 i.g PChar }
  1008. MUIA_Application_Base = $8042e07a;
  1009. { V4 ..g Broker }
  1010. MUIA_Application_Broker = $8042dbce;
  1011. { V4 isg struct Hook }
  1012. MUIA_Application_BrokerHook = $80428f4b;
  1013. { V6 ..g struct MsgPort }
  1014. MUIA_Application_BrokerPort = $8042e0ad;
  1015. { V6 i.g LongInt }
  1016. MUIA_Application_BrokerPri = $8042c8d0;
  1017. { V4 isg struct MUI_Command }
  1018. MUIA_Application_Commands = $80428648;
  1019. { V4 i.g PChar }
  1020. MUIA_Application_Copyright = $8042ef4d;
  1021. { V4 i.g PChar }
  1022. MUIA_Application_Description = $80421fc6;
  1023. { V4 isg struct DiskObject }
  1024. MUIA_Application_DiskObject = $804235cb;
  1025. { V4 ..g BOOL }
  1026. MUIA_Application_DoubleStart = $80423bc6;
  1027. { V5 is. Object }
  1028. MUIA_Application_DropObject = $80421266;
  1029. { V8 ..g BOOL }
  1030. MUIA_Application_ForceQuit = $804257df;
  1031. { V8 isg PChar }
  1032. MUIA_Application_HelpFile = $804293f4;
  1033. { V4 .sg BOOL }
  1034. MUIA_Application_Iconified = $8042a07f;
  1035. const
  1036. MUIA_Application_MenuAction = $80428961;
  1037. { V4 ..g LongWord }
  1038. MUIA_Application_MenuHelp = $8042540b;
  1039. { V8 i.. Object }
  1040. MUIA_Application_Menustrip = $804252d9;
  1041. { V7 isg struct Hook }
  1042. MUIA_Application_RexxHook = $80427c42;
  1043. { V4 ..g struct RxMsg }
  1044. MUIA_Application_RexxMsg = $8042fd88;
  1045. { V4 .s. PChar }
  1046. MUIA_Application_RexxString = $8042d711;
  1047. { V4 i.. BOOL }
  1048. MUIA_Application_SingleTask = $8042a2c8;
  1049. { V4 .s. BOOL }
  1050. MUIA_Application_Sleep = $80425711;
  1051. { V4 i.g PChar }
  1052. MUIA_Application_Title = $804281b8;
  1053. { V10 i.. BOOL }
  1054. MUIA_Application_UseCommodities = $80425ee5;
  1055. { V10 i.. BOOL }
  1056. MUIA_Application_UseRexx = $80422387;
  1057. { V4 i.g PChar }
  1058. MUIA_Application_Version = $8042b33f;
  1059. { V4 i.. Object }
  1060. MUIA_Application_Window = $8042bfe0;
  1061. { V13 ..g struct List }
  1062. MUIA_Application_WindowList = $80429abe;
  1063. MUIV_Application_Package_NetConnect = $a3ff7b49;
  1064. { }
  1065. { Window }
  1066. { }
  1067. const
  1068. MUIC_Window : PChar = 'Window.mui';
  1069. { V16 }
  1070. const
  1071. MUIM_Window_AddEventHandler = $804203b7;
  1072. { V16 }
  1073. const
  1074. MUIM_Window_RemEventHandler = $8042679e;
  1075. { V4 }
  1076. MUIM_Window_ScreenToBack = $8042913d;
  1077. { V4 }
  1078. MUIM_Window_ScreenToFront = $804227a4;
  1079. { V11 }
  1080. const
  1081. MUIM_Window_Snapshot = $8042945e;
  1082. { V4 }
  1083. MUIM_Window_ToBack = $8042152e;
  1084. { V4 }
  1085. MUIM_Window_ToFront = $8042554f;
  1086. type
  1087. tMUIP_Window_AddEventHandler = record
  1088. MethodID : LongWord;
  1089. ehnode : PMUI_EventHandlerNode;
  1090. end;
  1091. pMUIP_Window_AddEventHandler = ^tMUIP_Window_AddEventHandler;
  1092. tMUIP_Window_GetMenuCheck = record
  1093. MethodID : LongWord;
  1094. MenuID : LongWord;
  1095. end;
  1096. pMUIP_Window_GetMenuCheck = ^tMUIP_Window_GetMenuCheck;
  1097. tMUIP_Window_GetMenuState = record
  1098. MethodID : LongWord;
  1099. MenuID : LongWord;
  1100. end;
  1101. pMUIP_Window_GetMenuState = ^tMUIP_Window_GetMenuState;
  1102. tMUIP_Window_RemEventHandler = record
  1103. MethodID : LongWord;
  1104. ehnode : PMUI_EventHandlerNode;
  1105. end;
  1106. pMUIP_Window_RemEventHandler = ^tMUIP_Window_RemEventHandler;
  1107. tMUIP_Window_ScreenToBack = record
  1108. MethodID : LongWord;
  1109. end;
  1110. pMUIP_Window_ScreenToBack = ^tMUIP_Window_ScreenToBack;
  1111. tMUIP_Window_ScreenToFront = record
  1112. MethodID : LongWord;
  1113. end;
  1114. pMUIP_Window_ScreenToFront = ^tMUIP_Window_ScreenToFront;
  1115. tMUIP_Window_SetCycleChain = record
  1116. MethodID : LongWord;
  1117. obj : array[0..0] of pObject_;
  1118. end;
  1119. pMUIP_Window_SetCycleChain = ^tMUIP_Window_SetCycleChain;
  1120. tMUIP_Window_SetMenuCheck = record
  1121. MethodID : LongWord;
  1122. MenuID : LongWord;
  1123. stat : LongInt;
  1124. end;
  1125. pMUIP_Window_SetMenuCheck = ^tMUIP_Window_SetMenuCheck;
  1126. tMUIP_Window_SetMenuState = record
  1127. MethodID : LongWord;
  1128. MenuID : LongWord;
  1129. stat : LongInt;
  1130. end;
  1131. pMUIP_Window_SetMenuState = ^tMUIP_Window_SetMenuState;
  1132. tMUIP_Window_Snapshot = record
  1133. MethodID : LongWord;
  1134. flags : LongInt;
  1135. end;
  1136. pMUIP_Window_Snapshot = ^tMUIP_Window_Snapshot;
  1137. tMUIP_Window_ToBack = record
  1138. MethodID : LongWord;
  1139. end;
  1140. pMUIP_Window_ToBack = ^tMUIP_Window_ToBack;
  1141. tMUIP_Window_ToFront = record
  1142. MethodID : LongWord;
  1143. end;
  1144. pMUIP_Window_ToFront = ^tMUIP_Window_ToFront;
  1145. { Attributes }
  1146. { V4 isg BOOL }
  1147. const
  1148. MUIA_Window_Activate = $80428d2f;
  1149. { V4 .sg Object }
  1150. MUIA_Window_ActiveObject = $80427925;
  1151. { V4 i.g LongInt }
  1152. MUIA_Window_AltHeight = $8042cce3;
  1153. { V4 i.g LongInt }
  1154. MUIA_Window_AltLeftEdge = $80422d65;
  1155. { V4 i.g LongInt }
  1156. MUIA_Window_AltTopEdge = $8042e99b;
  1157. { V4 i.g LongInt }
  1158. MUIA_Window_AltWidth = $804260f4;
  1159. { V5 i.. BOOL }
  1160. MUIA_Window_AppWindow = $804280cf;
  1161. { V4 i.. BOOL }
  1162. MUIA_Window_Backdrop = $8042c0bb;
  1163. { V4 i.. BOOL }
  1164. MUIA_Window_Borderless = $80429b79;
  1165. { V4 i.. BOOL }
  1166. MUIA_Window_CloseGadget = $8042a110;
  1167. { V4 ..g BOOL }
  1168. MUIA_Window_CloseRequest = $8042e86e;
  1169. { V4 isg Object }
  1170. MUIA_Window_DefaultObject = $804294d7;
  1171. { V4 i.. BOOL }
  1172. MUIA_Window_DepthGadget = $80421923;
  1173. { V4 i.. BOOL }
  1174. MUIA_Window_DragBar = $8042045d;
  1175. { V8 isg BOOL }
  1176. MUIA_Window_FancyDrawing = $8042bd0e;
  1177. { V4 i.g LongInt }
  1178. MUIA_Window_Height = $80425846;
  1179. { V4 isg LongWord }
  1180. MUIA_Window_ID = $804201bd;
  1181. { V4 ..g struct InputEvent }
  1182. MUIA_Window_InputEvent = $804247d8;
  1183. { V4 isg BOOL }
  1184. MUIA_Window_IsSubWindow = $8042b5aa;
  1185. { V4 i.g LongInt }
  1186. MUIA_Window_LeftEdge = $80426c65;
  1187. { MUI_OBSOLETE }
  1188. { V8 isg LongWord }
  1189. const
  1190. MUIA_Window_MenuAction = $80427521;
  1191. { V8 i.g Object }
  1192. MUIA_Window_Menustrip = $8042855e;
  1193. { V10 ..g Object }
  1194. MUIA_Window_MouseObject = $8042bf9b;
  1195. { V10 i.. BOOL }
  1196. MUIA_Window_NeedsMouseObject = $8042372a;
  1197. { V4 is. BOOL }
  1198. MUIA_Window_NoMenus = $80429df5;
  1199. { V4 .sg BOOL }
  1200. MUIA_Window_Open = $80428aa0;
  1201. { V6 isg PChar }
  1202. MUIA_Window_PublicScreen = $804278e4;
  1203. { V4 is. Object }
  1204. MUIA_Window_RefWindow = $804201f4;
  1205. { V4 isg Object }
  1206. MUIA_Window_RootObject = $8042cba5;
  1207. { V4 isg struct Screen }
  1208. MUIA_Window_Screen = $8042df4f;
  1209. { V5 isg PChar }
  1210. MUIA_Window_ScreenTitle = $804234b0;
  1211. { V4 i.. BOOL }
  1212. MUIA_Window_SizeGadget = $8042e33d;
  1213. { V4 i.. BOOL }
  1214. MUIA_Window_SizeRight = $80424780;
  1215. { V4 .sg BOOL }
  1216. MUIA_Window_Sleep = $8042e7db;
  1217. { V4 isg PChar }
  1218. MUIA_Window_Title = $8042ad3d;
  1219. { V4 i.g LongInt }
  1220. MUIA_Window_TopEdge = $80427c66;
  1221. { V13 isg BOOL }
  1222. MUIA_Window_UseBottomBorderScroller = $80424e79;
  1223. { V13 isg BOOL }
  1224. MUIA_Window_UseLeftBorderScroller = $8042433e;
  1225. { V13 isg BOOL }
  1226. MUIA_Window_UseRightBorderScroller = $8042c05e;
  1227. { V4 i.g LongInt }
  1228. MUIA_Window_Width = $8042dcae;
  1229. { V4 ..g struct Window }
  1230. MUIA_Window_Window = $80426a42;
  1231. MUIV_Window_ActiveObject_None = 0;
  1232. MUIV_Window_ActiveObject_Next = -(1);
  1233. MUIV_Window_ActiveObject_Prev = -(2);
  1234. const
  1235. MUIV_Window_AltHeight_Scaled = -(1000);
  1236. MUIV_Window_AltLeftEdge_Centered = -(1);
  1237. MUIV_Window_AltLeftEdge_Moused = -(2);
  1238. MUIV_Window_AltLeftEdge_NoChange = -(1000);
  1239. MUIV_Window_AltTopEdge_Centered = -(1);
  1240. MUIV_Window_AltTopEdge_Moused = -(2);
  1241. const
  1242. MUIV_Window_AltTopEdge_NoChange = -(1000);
  1243. const
  1244. MUIV_Window_AltWidth_Scaled = -(1000);
  1245. const
  1246. MUIV_Window_Height_Scaled = -(1000);
  1247. MUIV_Window_Height_Default = -(1001);
  1248. MUIV_Window_LeftEdge_Centered = -(1);
  1249. MUIV_Window_LeftEdge_Moused = -(2);
  1250. const
  1251. MUIV_Window_TopEdge_Centered = -(1);
  1252. MUIV_Window_TopEdge_Moused = -(2);
  1253. const
  1254. MUIV_Window_Width_Scaled = -(1000);
  1255. MUIV_Window_Width_Default = -(1001);
  1256. { }
  1257. { Aboutmui }
  1258. { }
  1259. const
  1260. MUIC_Aboutmui : PChar = 'Aboutmui.mui';
  1261. { Methods }
  1262. { Attributes }
  1263. { V11 i.. Object }
  1264. const
  1265. MUIA_Aboutmui_Application = $80422523;
  1266. { }
  1267. { Area }
  1268. { }
  1269. const
  1270. MUIC_Area : PChar = 'Area.mui';
  1271. { Methods }
  1272. { Custom Class }
  1273. { V4 }
  1274. const
  1275. MUIM_AskMinMax = $80423874;
  1276. { Custom Class }
  1277. { V4 }
  1278. MUIM_Cleanup = $8042d985;
  1279. { V11 }
  1280. MUIM_ContextMenuBuild = $80429d2e;
  1281. { V11 }
  1282. MUIM_ContextMenuChoice = $80420f0e;
  1283. { V18 }
  1284. MUIM_CreateBubble = $80421c41;
  1285. { V11 }
  1286. MUIM_CreateShortHelp = $80428e93;
  1287. { V18 }
  1288. MUIM_DeleteBubble = $804211af;
  1289. { V11 }
  1290. MUIM_DeleteShortHelp = $8042d35a;
  1291. { V11 }
  1292. MUIM_DragBegin = $8042c03a;
  1293. { V11 }
  1294. MUIM_DragDrop = $8042c555;
  1295. { V11 }
  1296. MUIM_DragFinish = $804251f0;
  1297. { V11 }
  1298. MUIM_DragQuery = $80420261;
  1299. { V11 }
  1300. MUIM_DragReport = $8042edad;
  1301. { Custom Class }
  1302. { V4 }
  1303. MUIM_Draw = $80426f3f;
  1304. { V11 }
  1305. MUIM_DrawBackground = $804238ca;
  1306. { Custom Class }
  1307. { V16 }
  1308. MUIM_HandleEvent = $80426d66;
  1309. { Custom Class }
  1310. { V4 }
  1311. MUIM_HandleInput = $80422a1a;
  1312. { Custom Class }
  1313. { V4 }
  1314. MUIM_Hide = $8042f20f;
  1315. { Custom Class }
  1316. { V4 }
  1317. MUIM_Setup = $80428354;
  1318. { Custom Class }
  1319. { V4 }
  1320. MUIM_Show = $8042cc84;
  1321. type
  1322. { MUI_MinMax structure holds information about minimum, maximum
  1323. and default dimensions of an object. }
  1324. tMUI_MinMax = record
  1325. MinWidth : WORD;
  1326. MinHeight : WORD;
  1327. MaxWidth : WORD;
  1328. MaxHeight : WORD;
  1329. DefWidth : WORD;
  1330. DefHeight : WORD;
  1331. end;
  1332. pMUI_MinMax = ^tMUI_MinMax;
  1333. tMUIP_AskMinMax = record
  1334. MethodID : LongWord;
  1335. MinMaxInfo : PMUI_MinMax;
  1336. end;
  1337. pMUIP_AskMinMax = ^tMUIP_AskMinMax;
  1338. { Custom Class }
  1339. tMUIP_Cleanup = record
  1340. MethodID : LongWord;
  1341. end;
  1342. pMUIP_Cleanup = ^tMUIP_Cleanup;
  1343. { Custom Class }
  1344. tMUIP_ContextMenuBuild = record
  1345. MethodID : LongWord;
  1346. mx : LongInt;
  1347. my : LongInt;
  1348. end;
  1349. pMUIP_ContextMenuBuild = ^tMUIP_ContextMenuBuild;
  1350. tMUIP_ContextMenuChoice = record
  1351. MethodID : LongWord;
  1352. item : pObject_;
  1353. end;
  1354. pMUIP_ContextMenuChoice = ^tMUIP_ContextMenuChoice;
  1355. tMUIP_CreateBubble = record
  1356. MethodID : LongWord;
  1357. x : LongInt;
  1358. y : LongInt;
  1359. txt : Pchar;
  1360. flags : LongWord;
  1361. end;
  1362. pMUIP_CreateBubble = ^tMUIP_CreateBubble;
  1363. tMUIP_CreateShortHelp = record
  1364. MethodID : LongWord;
  1365. mx : LongInt;
  1366. my : LongInt;
  1367. end;
  1368. pMUIP_CreateShortHelp = ^tMUIP_CreateShortHelp;
  1369. tMUIP_DeleteBubble = record
  1370. MethodID : LongWord;
  1371. bubble : Pointer;
  1372. end;
  1373. pMUIP_DeleteBubble = ^tMUIP_DeleteBubble;
  1374. tMUIP_DeleteShortHelp = record
  1375. MethodID : LongWord;
  1376. help : PChar;
  1377. end;
  1378. pMUIP_DeleteShortHelp = ^tMUIP_DeleteShortHelp;
  1379. tMUIP_DragBegin = record
  1380. MethodID : LongWord;
  1381. obj : pObject_;
  1382. end;
  1383. pMUIP_DragBegin = ^tMUIP_DragBegin;
  1384. tMUIP_DragDrop = record
  1385. MethodID : LongWord;
  1386. obj : pObject_;
  1387. x : LongInt;
  1388. y : LongInt;
  1389. end;
  1390. pMUIP_DragDrop = ^tMUIP_DragDrop;
  1391. tMUIP_DragFinish = record
  1392. MethodID : LongWord;
  1393. obj : pObject_;
  1394. end;
  1395. pMUIP_DragFinish = ^tMUIP_DragFinish;
  1396. tMUIP_DragQuery = record
  1397. MethodID : LongWord;
  1398. obj : pObject_;
  1399. end;
  1400. pMUIP_DragQuery = ^tMUIP_DragQuery;
  1401. tMUIP_DragReport = record
  1402. MethodID : LongWord;
  1403. obj : pObject_;
  1404. x : LongInt;
  1405. y : LongInt;
  1406. update : LongInt;
  1407. end;
  1408. pMUIP_DragReport = ^tMUIP_DragReport;
  1409. tMUIP_Draw = record
  1410. MethodID : LongWord;
  1411. flags : LongWord;
  1412. end;
  1413. pMUIP_Draw = ^tMUIP_Draw;
  1414. { Custom Class }
  1415. tMUIP_DrawBackground = record
  1416. MethodID : LongWord;
  1417. left : LongInt;
  1418. top : LongInt;
  1419. width : LongInt;
  1420. height : LongInt;
  1421. xoffset : LongInt;
  1422. yoffset : LongInt;
  1423. flags : LongInt;
  1424. end;
  1425. pMUIP_DrawBackground = ^tMUIP_DrawBackground;
  1426. tMUIP_HandleEvent = record
  1427. MethodID : LongWord;
  1428. imsg : PIntuiMessage;
  1429. muikey : LongInt;
  1430. end;
  1431. pMUIP_HandleEvent = ^tMUIP_HandleEvent;
  1432. { Custom Class }
  1433. tMUIP_HandleInput = record
  1434. MethodID : LongWord;
  1435. imsg : PIntuiMessage;
  1436. muikey : LongInt;
  1437. end;
  1438. pMUIP_HandleInput = ^tMUIP_HandleInput;
  1439. { Custom Class }
  1440. tMUIP_Hide = record
  1441. MethodID : LongWord;
  1442. end;
  1443. pMUIP_Hide = ^tMUIP_Hide;
  1444. { Custom Class }
  1445. tMUIP_Setup = record
  1446. MethodID : LongWord;
  1447. RenderInfo : PMUI_RenderInfo;
  1448. end;
  1449. pMUIP_Setup = ^tMUIP_Setup;
  1450. { Custom Class }
  1451. tMUIP_Show = record
  1452. MethodID : LongWord;
  1453. end;
  1454. pMUIP_Show = ^tMUIP_Show;
  1455. { Custom Class }
  1456. { Attributes }
  1457. { V4 is. LongInt }
  1458. const
  1459. MUIA_Background = $8042545b;
  1460. { V4 ..g LongInt }
  1461. MUIA_BottomEdge = $8042e552;
  1462. { V11 isg Object }
  1463. MUIA_ContextMenu = $8042b704;
  1464. { V11 ..g Object }
  1465. MUIA_ContextMenuTrigger = $8042a2c1;
  1466. { V4 isg char }
  1467. MUIA_ControlChar = $8042120b;
  1468. { V11 isg LongInt }
  1469. MUIA_CycleChain = $80421ce7;
  1470. { V4 isg BOOL }
  1471. MUIA_Disabled = $80423661;
  1472. { V11 isg BOOL }
  1473. MUIA_Draggable = $80420b6e;
  1474. { V11 isg BOOL }
  1475. MUIA_Dropable = $8042fbce;
  1476. { V4 is. BOOL }
  1477. const
  1478. MUIA_FillArea = $804294a3;
  1479. { V4 i.. LongInt }
  1480. MUIA_FixHeight = $8042a92b;
  1481. { V4 i.. PChar }
  1482. MUIA_FixHeightTxt = $804276f2;
  1483. { V4 i.. LongInt }
  1484. MUIA_FixWidth = $8042a3f1;
  1485. { V4 i.. PChar }
  1486. MUIA_FixWidthTxt = $8042d044;
  1487. { V4 i.g struct TextFont }
  1488. MUIA_Font = $8042be50;
  1489. { V4 i.. LongInt }
  1490. MUIA_Frame = $8042ac64;
  1491. { V4 i.. BOOL }
  1492. MUIA_FramePhantomHoriz = $8042ed76;
  1493. { V4 i.. PChar }
  1494. MUIA_FrameTitle = $8042d1c7;
  1495. { V4 ..g LongInt }
  1496. MUIA_Height = $80423237;
  1497. { V11 isg LongInt }
  1498. MUIA_HorizDisappear = $80429615;
  1499. { V4 isg WORD }
  1500. MUIA_HorizWeight = $80426db9;
  1501. { V4 i.g LongInt }
  1502. MUIA_InnerBottom = $8042f2c0;
  1503. { V4 i.g LongInt }
  1504. MUIA_InnerLeft = $804228f8;
  1505. { V4 i.g LongInt }
  1506. MUIA_InnerRight = $804297ff;
  1507. { V4 i.g LongInt }
  1508. MUIA_InnerTop = $80421eb6;
  1509. { V4 i.. LongInt }
  1510. MUIA_InputMode = $8042fb04;
  1511. { V4 ..g LongInt }
  1512. MUIA_LeftEdge = $8042bec6;
  1513. { V11 i.. LongInt }
  1514. MUIA_MaxHeight = $804293e4;
  1515. { V11 i.. LongInt }
  1516. MUIA_MaxWidth = $8042f112;
  1517. { V4 ..g BOOL }
  1518. MUIA_Pressed = $80423535;
  1519. { V4 ..g LongInt }
  1520. MUIA_RightEdge = $8042ba82;
  1521. { V4 isg BOOL }
  1522. MUIA_Selected = $8042654b;
  1523. { V11 isg PChar }
  1524. MUIA_ShortHelp = $80428fe3;
  1525. { V4 isg BOOL }
  1526. MUIA_ShowMe = $80429ba8;
  1527. { V4 i.. BOOL }
  1528. MUIA_ShowSelState = $8042caac;
  1529. { V4 ..g LongInt }
  1530. MUIA_Timer = $80426435;
  1531. { V4 ..g LongInt }
  1532. MUIA_TopEdge = $8042509b;
  1533. { V11 isg LongInt }
  1534. MUIA_VertDisappear = $8042d12f;
  1535. { V4 isg WORD }
  1536. MUIA_VertWeight = $804298d0;
  1537. { V4 i.. WORD }
  1538. MUIA_Weight = $80421d1f;
  1539. { V4 ..g LongInt }
  1540. MUIA_Width = $8042b59c;
  1541. { V4 ..g struct Window }
  1542. MUIA_Window = $80421591;
  1543. { V4 ..g Object }
  1544. MUIA_WindowObject = $8042669e;
  1545. MUIV_Font_Inherit = 0;
  1546. MUIV_Font_Normal = -(1);
  1547. MUIV_Font_List = -(2);
  1548. MUIV_Font_Tiny = -(3);
  1549. MUIV_Font_Fixed = -(4);
  1550. MUIV_Font_Title = -(5);
  1551. MUIV_Font_Big = -(6);
  1552. MUIV_Font_Button = -(7);
  1553. MUIV_Frame_None = 0;
  1554. MUIV_Frame_Button = 1;
  1555. MUIV_Frame_ImageButton = 2;
  1556. MUIV_Frame_Text = 3;
  1557. MUIV_Frame_String = 4;
  1558. MUIV_Frame_ReadList = 5;
  1559. MUIV_Frame_InputList = 6;
  1560. MUIV_Frame_Prop = 7;
  1561. MUIV_Frame_Gauge = 8;
  1562. MUIV_Frame_Group = 9;
  1563. MUIV_Frame_PopUp = 10;
  1564. MUIV_Frame_Virtual = 11;
  1565. MUIV_Frame_Slider = 12;
  1566. MUIV_Frame_Count = 13;
  1567. MUIV_InputMode_None = 0;
  1568. MUIV_InputMode_RelVerify = 1;
  1569. MUIV_InputMode_Immediate = 2;
  1570. MUIV_InputMode_Toggle = 3;
  1571. { }
  1572. { Rectangle }
  1573. { }
  1574. const
  1575. MUIC_Rectangle : PChar = 'Rectangle.mui';
  1576. { Attributes }
  1577. { V11 i.g PChar }
  1578. const
  1579. MUIA_Rectangle_BarTitle = $80426689;
  1580. { V7 i.g BOOL }
  1581. MUIA_Rectangle_HBar = $8042c943;
  1582. { V7 i.g BOOL }
  1583. MUIA_Rectangle_VBar = $80422204;
  1584. { }
  1585. { Balance }
  1586. { }
  1587. const
  1588. MUIC_Balance : PChar = 'Balance.mui';
  1589. { }
  1590. { Image }
  1591. { }
  1592. const
  1593. MUIC_Image : PChar = 'Image.mui';
  1594. { Attributes }
  1595. { V4 i.. BOOL }
  1596. const
  1597. MUIA_Image_FontMatch = $8042815d;
  1598. { V4 i.. BOOL }
  1599. MUIA_Image_FontMatchHeight = $80429f26;
  1600. { V4 i.. BOOL }
  1601. MUIA_Image_FontMatchWidth = $804239bf;
  1602. { V4 i.. BOOL }
  1603. MUIA_Image_FreeHoriz = $8042da84;
  1604. { V4 i.. BOOL }
  1605. MUIA_Image_FreeVert = $8042ea28;
  1606. { V4 i.. struct Image }
  1607. MUIA_Image_OldImage = $80424f3d;
  1608. { V4 i.. char }
  1609. MUIA_Image_Spec = $804233d5;
  1610. { V4 is. LongInt }
  1611. MUIA_Image_State = $8042a3ad;
  1612. { }
  1613. { Bitmap }
  1614. { }
  1615. const
  1616. MUIC_Bitmap : PChar = 'Bitmap.mui';
  1617. { Attributes }
  1618. { V8 isg struct BitMap }
  1619. const
  1620. MUIA_Bitmap_Bitmap = $804279bd;
  1621. { V8 isg LongInt }
  1622. MUIA_Bitmap_Height = $80421560;
  1623. { V8 isg UBYTE }
  1624. MUIA_Bitmap_MappingTable = $8042e23d;
  1625. { V11 isg LongInt }
  1626. MUIA_Bitmap_Precision = $80420c74;
  1627. { V11 ..g struct BitMap }
  1628. MUIA_Bitmap_RemappedBitmap = $80423a47;
  1629. { V8 isg LongWord }
  1630. MUIA_Bitmap_SourceColors = $80425360;
  1631. { V8 isg LongInt }
  1632. MUIA_Bitmap_Transparent = $80422805;
  1633. { V11 i.. BOOL }
  1634. MUIA_Bitmap_UseFriend = $804239d8;
  1635. { V8 isg LongInt }
  1636. MUIA_Bitmap_Width = $8042eb3a;
  1637. { }
  1638. { Bodychunk }
  1639. { }
  1640. const
  1641. MUIC_Bodychunk : PChar = 'Bodychunk.mui';
  1642. { Attributes }
  1643. { V8 isg UBYTE }
  1644. const
  1645. MUIA_Bodychunk_Body = $8042ca67;
  1646. { V8 isg UBYTE }
  1647. MUIA_Bodychunk_Compression = $8042de5f;
  1648. { V8 isg LongInt }
  1649. MUIA_Bodychunk_Depth = $8042c392;
  1650. { V8 isg UBYTE }
  1651. MUIA_Bodychunk_Masking = $80423b0e;
  1652. { }
  1653. { Text }
  1654. { }
  1655. const
  1656. MUIC_Text : PChar = 'Text.mui';
  1657. { Attributes }
  1658. { V4 isg PChar }
  1659. const
  1660. MUIA_Text_Contents = $8042f8dc;
  1661. { V4 i.. char }
  1662. MUIA_Text_HiChar = $804218ff;
  1663. { V4 isg PChar }
  1664. MUIA_Text_PreParse = $8042566d;
  1665. { V4 i.. BOOL }
  1666. MUIA_Text_SetMax = $80424d0a;
  1667. { V4 i.. BOOL }
  1668. MUIA_Text_SetMin = $80424e10;
  1669. { V11 i.. BOOL }
  1670. MUIA_Text_SetVMax = $80420d8b;
  1671. { }
  1672. { Gadget }
  1673. { }
  1674. const
  1675. MUIC_Gadget : PChar = 'Gadget.mui';
  1676. { Attributes }
  1677. { V11 ..g struct Gadget }
  1678. const
  1679. MUIA_Gadget_Gadget = $8042ec1a;
  1680. { }
  1681. { String }
  1682. { }
  1683. const
  1684. MUIC_String : PChar = 'String.mui';
  1685. { Methods }
  1686. { Attributes }
  1687. { V4 isg PChar }
  1688. const
  1689. MUIA_String_Accept = $8042e3e1;
  1690. { V4 ..g PChar }
  1691. MUIA_String_Acknowledge = $8042026c;
  1692. { V11 isg BOOL }
  1693. MUIA_String_AdvanceOnCR = $804226de;
  1694. { V4 isg Object }
  1695. MUIA_String_AttachedList = $80420fd2;
  1696. { V4 .sg LongInt }
  1697. MUIA_String_BufferPos = $80428b6c;
  1698. { V4 isg PChar }
  1699. MUIA_String_Contents = $80428ffd;
  1700. { V4 .sg LongInt }
  1701. MUIA_String_DisplayPos = $8042ccbf;
  1702. { V7 isg struct Hook }
  1703. MUIA_String_EditHook = $80424c33;
  1704. { V4 i.g LongInt }
  1705. MUIA_String_Format = $80427484;
  1706. { V4 isg LongWord }
  1707. MUIA_String_Integer = $80426e8a;
  1708. { V11 isg BOOL }
  1709. MUIA_String_LonelyEditHook = $80421569;
  1710. { V4 i.g LongInt }
  1711. MUIA_String_MaxLen = $80424984;
  1712. { V4 isg PChar }
  1713. MUIA_String_Reject = $8042179c;
  1714. { V4 i.g BOOL }
  1715. MUIA_String_Secret = $80428769;
  1716. MUIV_String_Format_Left = 0;
  1717. MUIV_String_Format_Center = 1;
  1718. MUIV_String_Format_Right = 2;
  1719. { }
  1720. { Boopsi }
  1721. { }
  1722. const
  1723. MUIC_Boopsi : PChar = 'Boopsi.mui';
  1724. { Attributes }
  1725. { V4 isg struct IClass }
  1726. const
  1727. MUIA_Boopsi_Class = $80426999;
  1728. { V4 isg char }
  1729. MUIA_Boopsi_ClassID = $8042bfa3;
  1730. { V4 isg LongWord }
  1731. MUIA_Boopsi_MaxHeight = $8042757f;
  1732. { V4 isg LongWord }
  1733. MUIA_Boopsi_MaxWidth = $8042bcb1;
  1734. { V4 isg LongWord }
  1735. MUIA_Boopsi_MinHeight = $80422c93;
  1736. { V4 isg LongWord }
  1737. MUIA_Boopsi_MinWidth = $80428fb2;
  1738. { V4 ..g Object }
  1739. MUIA_Boopsi_Object = $80420178;
  1740. { V4 i.. LongWord }
  1741. MUIA_Boopsi_Remember = $8042f4bd;
  1742. { V9 i.. BOOL }
  1743. MUIA_Boopsi_Smart = $8042b8d7;
  1744. { V4 isg LongWord }
  1745. MUIA_Boopsi_TagDrawInfo = $8042bae7;
  1746. { V4 isg LongWord }
  1747. MUIA_Boopsi_TagScreen = $8042bc71;
  1748. { V4 isg LongWord }
  1749. MUIA_Boopsi_TagWindow = $8042e11d;
  1750. { }
  1751. { Prop }
  1752. { }
  1753. const
  1754. MUIC_Prop : PChar = 'Prop.mui';
  1755. { Methods }
  1756. { V16 }
  1757. const
  1758. MUIM_Prop_Decrease = $80420dd1;
  1759. { V16 }
  1760. MUIM_Prop_Increase = $8042cac0;
  1761. type
  1762. tMUIP_Prop_Decrease = record
  1763. MethodID : LongWord;
  1764. amount : LongInt;
  1765. end;
  1766. pMUIP_Prop_Decrease = ^tMUIP_Prop_Decrease;
  1767. tMUIP_Prop_Increase = record
  1768. MethodID : LongWord;
  1769. amount : LongInt;
  1770. end;
  1771. pMUIP_Prop_Increase = ^tMUIP_Prop_Increase;
  1772. { Attributes }
  1773. { V4 isg LongInt }
  1774. const
  1775. MUIA_Prop_Entries = $8042fbdb;
  1776. { V4 isg LongInt }
  1777. MUIA_Prop_First = $8042d4b2;
  1778. { V4 i.g BOOL }
  1779. MUIA_Prop_Horiz = $8042f4f3;
  1780. { V4 isg BOOL }
  1781. MUIA_Prop_Slider = $80429c3a;
  1782. { V13 i.. LongInt }
  1783. MUIA_Prop_UseWinBorder = $8042deee;
  1784. { V4 isg LongInt }
  1785. MUIA_Prop_Visible = $8042fea6;
  1786. MUIV_Prop_UseWinBorder_None = 0;
  1787. MUIV_Prop_UseWinBorder_Left = 1;
  1788. MUIV_Prop_UseWinBorder_Right = 2;
  1789. MUIV_Prop_UseWinBorder_Bottom = 3;
  1790. { }
  1791. { Gauge }
  1792. { }
  1793. const
  1794. MUIC_Gauge : PChar = 'Gauge.mui';
  1795. { Attributes }
  1796. { V4 isg LongInt }
  1797. const
  1798. MUIA_Gauge_Current = $8042f0dd;
  1799. { V4 isg BOOL }
  1800. MUIA_Gauge_Divide = $8042d8df;
  1801. { V4 i.. BOOL }
  1802. MUIA_Gauge_Horiz = $804232dd;
  1803. { V7 isg PChar }
  1804. MUIA_Gauge_InfoText = $8042bf15;
  1805. { V4 isg LongInt }
  1806. MUIA_Gauge_Max = $8042bcdb;
  1807. { }
  1808. { Scale }
  1809. { }
  1810. const
  1811. MUIC_Scale : PChar = 'Scale.mui';
  1812. { Attributes }
  1813. { V4 isg BOOL }
  1814. const
  1815. MUIA_Scale_Horiz = $8042919a;
  1816. { }
  1817. { Colorfield }
  1818. { }
  1819. const
  1820. MUIC_Colorfield : PChar = 'Colorfield.mui';
  1821. { Attributes }
  1822. { V4 isg LongWord }
  1823. const
  1824. MUIA_Colorfield_Blue = $8042d3b0;
  1825. { V4 isg LongWord }
  1826. MUIA_Colorfield_Green = $80424466;
  1827. { V4 ..g LongWord }
  1828. MUIA_Colorfield_Pen = $8042713a;
  1829. { V4 isg LongWord }
  1830. MUIA_Colorfield_Red = $804279f6;
  1831. { V4 isg LongWord }
  1832. MUIA_Colorfield_RGB = $8042677a;
  1833. { }
  1834. { List }
  1835. { }
  1836. const
  1837. MUIC_List : PChar = 'List.mui';
  1838. { Methods }
  1839. { V4 }
  1840. const
  1841. MUIM_List_Clear = $8042ad89;
  1842. { V11 }
  1843. MUIM_List_CreateImage = $80429804;
  1844. { V11 }
  1845. MUIM_List_DeleteImage = $80420f58;
  1846. { V4 }
  1847. MUIM_List_Exchange = $8042468c;
  1848. { V4 }
  1849. MUIM_List_GetEntry = $804280ec;
  1850. { V4 }
  1851. MUIM_List_Insert = $80426c87;
  1852. { V7 }
  1853. MUIM_List_InsertSingle = $804254d5;
  1854. { V4 }
  1855. MUIM_List_Jump = $8042baab;
  1856. { V9 }
  1857. MUIM_List_Move = $804253c2;
  1858. { V6 }
  1859. MUIM_List_NextSelected = $80425f17;
  1860. { V4 }
  1861. MUIM_List_Redraw = $80427993;
  1862. { V4 }
  1863. MUIM_List_Remove = $8042647e;
  1864. { V4 }
  1865. MUIM_List_Select = $804252d8;
  1866. { V4 }
  1867. MUIM_List_Sort = $80422275;
  1868. { V11 }
  1869. MUIM_List_TestPos = $80425f48;
  1870. type
  1871. tMUIP_List_Clear = record
  1872. MethodID : LongWord;
  1873. end;
  1874. pMUIP_List_Clear = ^tMUIP_List_Clear;
  1875. tMUIP_List_CreateImage = record
  1876. MethodID : LongWord;
  1877. obj : pObject_;
  1878. flags : LongWord;
  1879. end;
  1880. pMUIP_List_CreateImage = ^tMUIP_List_CreateImage;
  1881. tMUIP_List_DeleteImage = record
  1882. MethodID : LongWord;
  1883. listimg : Pointer;
  1884. end;
  1885. pMUIP_List_DeleteImage = ^tMUIP_List_DeleteImage;
  1886. tMUIP_List_Exchange = record
  1887. MethodID : LongWord;
  1888. pos1 : LongInt;
  1889. pos2 : LongInt;
  1890. end;
  1891. pMUIP_List_Exchange = ^tMUIP_List_Exchange;
  1892. tMUIP_List_GetEntry = record
  1893. MethodID : LongWord;
  1894. pos : LongInt;
  1895. entry : PPointer;
  1896. end;
  1897. pMUIP_List_GetEntry = ^tMUIP_List_GetEntry;
  1898. tMUIP_List_Insert = record
  1899. MethodID : LongWord;
  1900. entries : PPointer;
  1901. count : LongInt;
  1902. pos : LongInt;
  1903. end;
  1904. pMUIP_List_Insert = ^tMUIP_List_Insert;
  1905. tMUIP_List_InsertSingle = record
  1906. MethodID : LongWord;
  1907. entry : Pointer;
  1908. pos : LongInt;
  1909. end;
  1910. pMUIP_List_InsertSingle = ^tMUIP_List_InsertSingle;
  1911. tMUIP_List_Jump = record
  1912. MethodID : LongWord;
  1913. pos : LongInt;
  1914. end;
  1915. pMUIP_List_Jump = ^tMUIP_List_Jump;
  1916. tMUIP_List_Move = record
  1917. MethodID : LongWord;
  1918. from : LongInt;
  1919. too : LongInt;
  1920. end;
  1921. pMUIP_List_Move = ^tMUIP_List_Move;
  1922. tMUIP_List_NextSelected = record
  1923. MethodID : LongWord;
  1924. pos : PLongInt;
  1925. end;
  1926. pMUIP_List_NextSelected = ^tMUIP_List_NextSelected;
  1927. tMUIP_List_Redraw = record
  1928. MethodID : LongWord;
  1929. pos : LongInt;
  1930. end;
  1931. pMUIP_List_Redraw = ^tMUIP_List_Redraw;
  1932. tMUIP_List_Remove = record
  1933. MethodID : LongWord;
  1934. pos : LongInt;
  1935. end;
  1936. pMUIP_List_Remove = ^tMUIP_List_Remove;
  1937. tMUIP_List_Select = record
  1938. MethodID : LongWord;
  1939. pos : LongInt;
  1940. seltype : LongInt;
  1941. state : PLongInt;
  1942. end;
  1943. pMUIP_List_Select = ^tMUIP_List_Select;
  1944. tMUIP_List_Sort = record
  1945. MethodID : LongWord;
  1946. end;
  1947. pMUIP_List_Sort = ^tMUIP_List_Sort;
  1948. tMUIP_List_TestPos = record
  1949. MethodID : LongWord;
  1950. x : LongInt;
  1951. y : LongInt;
  1952. res : PMUI_List_TestPos_Result;
  1953. end;
  1954. pMUIP_List_TestPos = ^tMUIP_List_TestPos;
  1955. { Attributes }
  1956. { V4 isg LongInt }
  1957. const
  1958. MUIA_List_Active = $8042391c;
  1959. { V4 i.. BOOL }
  1960. MUIA_List_AdjustHeight = $8042850d;
  1961. { V4 i.. BOOL }
  1962. MUIA_List_AdjustWidth = $8042354a;
  1963. { V11 isg BOOL }
  1964. MUIA_List_AutoVisible = $8042a445;
  1965. { V4 is. struct Hook }
  1966. MUIA_List_CompareHook = $80425c14;
  1967. { V4 is. struct Hook }
  1968. MUIA_List_ConstructHook = $8042894f;
  1969. { V4 is. struct Hook }
  1970. MUIA_List_DestructHook = $804297ce;
  1971. { V4 is. struct Hook }
  1972. MUIA_List_DisplayHook = $8042b4d5;
  1973. { V11 isg BOOL }
  1974. MUIA_List_DragSortable = $80426099;
  1975. { V11 ..g LongInt }
  1976. MUIA_List_DropMark = $8042aba6;
  1977. { V4 ..g LongInt }
  1978. MUIA_List_Entries = $80421654;
  1979. { V4 ..g LongInt }
  1980. MUIA_List_First = $804238d4;
  1981. { V4 isg PChar }
  1982. MUIA_List_Format = $80423c0a;
  1983. { V9 ..g LongInt }
  1984. MUIA_List_InsertPosition = $8042d0cd;
  1985. { V4 i.. LongInt }
  1986. MUIA_List_MinLineHeight = $8042d1c3;
  1987. { V4 is. struct Hook }
  1988. MUIA_List_MultiTestHook = $8042c2c6;
  1989. { V13 i.. Pointer }
  1990. MUIA_List_Pool = $80423431;
  1991. { V13 i.. LongWord }
  1992. MUIA_List_PoolPuddleSize = $8042a4eb;
  1993. { V13 i.. LongWord }
  1994. MUIA_List_PoolThreshSize = $8042c48c;
  1995. { V4 .s. BOOL }
  1996. MUIA_List_Quiet = $8042d8c7;
  1997. { V11 isg BOOL }
  1998. MUIA_List_ShowDropMarks = $8042c6f3;
  1999. { V4 i.. Pointer }
  2000. MUIA_List_SourceArray = $8042c0a0;
  2001. { V6 isg char }
  2002. MUIA_List_Title = $80423e66;
  2003. { V4 ..g LongInt }
  2004. MUIA_List_Visible = $8042191f;
  2005. MUIV_List_Active_Off = -(1);
  2006. MUIV_List_Active_Top = -(2);
  2007. MUIV_List_Active_Bottom = -(3);
  2008. MUIV_List_Active_Up = -(4);
  2009. MUIV_List_Active_Down = -(5);
  2010. MUIV_List_Active_PageUp = -(6);
  2011. MUIV_List_Active_PageDown = -(7);
  2012. MUIV_List_ConstructHook_String = -(1);
  2013. MUIV_List_CopyHook_String = -(1);
  2014. MUIV_List_CursorType_None = 0;
  2015. MUIV_List_CursorType_Bar = 1;
  2016. MUIV_List_CursorType_Rect = 2;
  2017. MUIV_List_DestructHook_String = -(1);
  2018. { }
  2019. { Floattext }
  2020. { }
  2021. const
  2022. MUIC_Floattext : PChar = 'Floattext.mui';
  2023. { Attributes }
  2024. { V4 isg BOOL }
  2025. const
  2026. MUIA_Floattext_Justify = $8042dc03;
  2027. { V4 is. PChar }
  2028. MUIA_Floattext_SkipChars = $80425c7d;
  2029. { V4 is. LongInt }
  2030. MUIA_Floattext_TabSize = $80427d17;
  2031. { V4 isg PChar }
  2032. MUIA_Floattext_Text = $8042d16a;
  2033. { }
  2034. { Volumelist }
  2035. { }
  2036. const
  2037. MUIC_Volumelist : PChar = 'Volumelist.mui';
  2038. { }
  2039. { Scrmodelist }
  2040. { }
  2041. const
  2042. MUIC_Scrmodelist : PChar = 'Scrmodelist.mui';
  2043. { Attributes }
  2044. { }
  2045. { Dirlist }
  2046. { }
  2047. const
  2048. MUIC_Dirlist : PChar = 'Dirlist.mui';
  2049. { Methods }
  2050. { V4 }
  2051. const
  2052. MUIM_Dirlist_ReRead = $80422d71;
  2053. type
  2054. MUIP_Dirlist_ReRead = record
  2055. MethodID : LongWord;
  2056. end;
  2057. { Attributes }
  2058. { V4 is. PChar }
  2059. const
  2060. MUIA_Dirlist_AcceptPattern = $8042760a;
  2061. { V4 isg PChar }
  2062. MUIA_Dirlist_Directory = $8042ea41;
  2063. { V4 is. BOOL }
  2064. MUIA_Dirlist_DrawersOnly = $8042b379;
  2065. { V4 is. BOOL }
  2066. MUIA_Dirlist_FilesOnly = $8042896a;
  2067. { V4 is. BOOL }
  2068. MUIA_Dirlist_FilterDrawers = $80424ad2;
  2069. { V4 is. struct Hook }
  2070. MUIA_Dirlist_FilterHook = $8042ae19;
  2071. { V6 is. BOOL }
  2072. MUIA_Dirlist_MultiSelDirs = $80428653;
  2073. { V4 ..g LongInt }
  2074. MUIA_Dirlist_NumBytes = $80429e26;
  2075. { V4 ..g LongInt }
  2076. MUIA_Dirlist_NumDrawers = $80429cb8;
  2077. { V4 ..g LongInt }
  2078. MUIA_Dirlist_NumFiles = $8042a6f0;
  2079. { V4 ..g PChar }
  2080. MUIA_Dirlist_Path = $80426176;
  2081. { V4 is. BOOL }
  2082. MUIA_Dirlist_RejectIcons = $80424808;
  2083. { V4 is. PChar }
  2084. MUIA_Dirlist_RejectPattern = $804259c7;
  2085. { V4 is. LongInt }
  2086. MUIA_Dirlist_SortDirs = $8042bbb9;
  2087. { V4 is. BOOL }
  2088. MUIA_Dirlist_SortHighLow = $80421896;
  2089. { V4 is. LongInt }
  2090. MUIA_Dirlist_SortType = $804228bc;
  2091. { V4 ..g LongInt }
  2092. MUIA_Dirlist_Status = $804240de;
  2093. MUIV_Dirlist_SortDirs_First = 0;
  2094. MUIV_Dirlist_SortDirs_Last = 1;
  2095. MUIV_Dirlist_SortDirs_Mix = 2;
  2096. MUIV_Dirlist_SortType_Name = 0;
  2097. MUIV_Dirlist_SortType_Date = 1;
  2098. MUIV_Dirlist_SortType_Size = 2;
  2099. MUIV_Dirlist_Status_Invalid = 0;
  2100. MUIV_Dirlist_Status_Reading = 1;
  2101. MUIV_Dirlist_Status_Valid = 2;
  2102. { }
  2103. { Numeric }
  2104. { }
  2105. const
  2106. MUIC_Numeric : PChar = 'Numeric.mui';
  2107. { Methods }
  2108. { V11 }
  2109. const
  2110. MUIM_Numeric_Decrease = $804243a7;
  2111. { V11 }
  2112. MUIM_Numeric_Increase = $80426ecd;
  2113. { V11 }
  2114. MUIM_Numeric_ScaleToValue = $8042032c;
  2115. { V11 }
  2116. MUIM_Numeric_SetDefault = $8042ab0a;
  2117. { V11 }
  2118. MUIM_Numeric_Stringify = $80424891;
  2119. { V11 }
  2120. MUIM_Numeric_ValueToScale = $80423e4f;
  2121. type
  2122. tMUIP_Numeric_Decrease = record
  2123. MethodID : LongWord;
  2124. amount : LongInt;
  2125. end;
  2126. pMUIP_Numeric_Decrease = ^tMUIP_Numeric_Decrease;
  2127. tMUIP_Numeric_Increase = record
  2128. MethodID : LongWord;
  2129. amount : LongInt;
  2130. end;
  2131. pMUIP_Numeric_Increase = ^tMUIP_Numeric_Increase;
  2132. tMUIP_Numeric_ScaleToValue = record
  2133. MethodID : LongWord;
  2134. scalemin : LongInt;
  2135. scalemax : LongInt;
  2136. scale : LongInt;
  2137. end;
  2138. pMUIP_Numeric_ScaleToValue = ^tMUIP_Numeric_ScaleToValue;
  2139. tMUIP_Numeric_SetDefault = record
  2140. MethodID : LongWord;
  2141. end;
  2142. pMUIP_Numeric_SetDefault = ^tMUIP_Numeric_SetDefault;
  2143. tMUIP_Numeric_Stringify = record
  2144. MethodID : LongWord;
  2145. value : LongInt;
  2146. end;
  2147. pMUIP_Numeric_Stringify = ^tMUIP_Numeric_Stringify;
  2148. tMUIP_Numeric_ValueToScale = record
  2149. MethodID : LongWord;
  2150. scalemin : LongInt;
  2151. scalemax : LongInt;
  2152. end;
  2153. pMUIP_Numeric_ValueToScale = ^tMUIP_Numeric_ValueToScale;
  2154. { Attributes }
  2155. { V11 isg BOOL }
  2156. const
  2157. MUIA_Numeric_CheckAllSizes = $80421594;
  2158. { V11 isg LongInt }
  2159. MUIA_Numeric_Default = $804263e8;
  2160. { V11 isg PChar }
  2161. MUIA_Numeric_Format = $804263e9;
  2162. { V11 isg LongInt }
  2163. MUIA_Numeric_Max = $8042d78a;
  2164. { V11 isg LongInt }
  2165. MUIA_Numeric_Min = $8042e404;
  2166. { V11 isg BOOL }
  2167. MUIA_Numeric_Reverse = $8042f2a0;
  2168. { V11 isg BOOL }
  2169. MUIA_Numeric_RevLeftRight = $804294a7;
  2170. { V11 isg BOOL }
  2171. MUIA_Numeric_RevUpDown = $804252dd;
  2172. { V11 isg LongInt }
  2173. MUIA_Numeric_Value = $8042ae3a;
  2174. { }
  2175. { Knob }
  2176. { }
  2177. const
  2178. MUIC_Knob : PChar = 'Knob.mui';
  2179. { }
  2180. { Levelmeter }
  2181. { }
  2182. const
  2183. MUIC_Levelmeter : PChar = 'Levelmeter.mui';
  2184. { Attributes }
  2185. { V11 isg PChar }
  2186. const
  2187. MUIA_Levelmeter_Label = $80420dd5;
  2188. { }
  2189. { Numericbutton }
  2190. { }
  2191. const
  2192. MUIC_Numericbutton : PChar = 'Numericbutton.mui';
  2193. { }
  2194. { Slider }
  2195. { }
  2196. const
  2197. MUIC_Slider : PChar = 'Slider.mui';
  2198. { Attributes }
  2199. { V11 isg BOOL }
  2200. const
  2201. MUIA_Slider_Horiz = $8042fad1;
  2202. { V6 i.. BOOL }
  2203. const
  2204. MUIA_Slider_Quiet = $80420b26;
  2205. { }
  2206. { Framedisplay }
  2207. { }
  2208. const
  2209. MUIC_Framedisplay : PChar = 'Framedisplay.mui';
  2210. { Attributes }
  2211. { }
  2212. { Popframe }
  2213. { }
  2214. const
  2215. MUIC_Popframe : PChar = 'Popframe.mui';
  2216. { }
  2217. { Imagedisplay }
  2218. { }
  2219. const
  2220. MUIC_Imagedisplay : PChar = 'Imagedisplay.mui';
  2221. { Attributes }
  2222. { }
  2223. { Popimage }
  2224. { }
  2225. const
  2226. MUIC_Popimage : PChar = 'Popimage.mui';
  2227. { }
  2228. { Pendisplay }
  2229. { }
  2230. const
  2231. MUIC_Pendisplay : PChar = 'Pendisplay.mui';
  2232. { Methods }
  2233. { V13 }
  2234. const
  2235. MUIM_Pendisplay_SetColormap = $80426c80;
  2236. { V13 }
  2237. MUIM_Pendisplay_SetMUIPen = $8042039d;
  2238. { V13 }
  2239. MUIM_Pendisplay_SetRGB = $8042c131;
  2240. type
  2241. MUIP_Pendisplay_SetColormap = record
  2242. MethodID : LongWord;
  2243. colormap : LongInt;
  2244. end;
  2245. MUIP_Pendisplay_SetMUIPen = record
  2246. MethodID : LongWord;
  2247. muipen : LongInt;
  2248. end;
  2249. MUIP_Pendisplay_SetRGB = record
  2250. MethodID : LongWord;
  2251. red : LongWord;
  2252. green : LongWord;
  2253. blue : LongWord;
  2254. end;
  2255. { Attributes }
  2256. { V13 ..g Object }
  2257. const
  2258. MUIA_Pendisplay_Pen = $8042a748;
  2259. { V13 isg Object }
  2260. MUIA_Pendisplay_Reference = $8042dc24;
  2261. { V11 isg struct MUI_RGBcolor }
  2262. MUIA_Pendisplay_RGBcolor = $8042a1a9;
  2263. { V11 isg struct MUI_PenSpec }
  2264. MUIA_Pendisplay_Spec = $8042a204;
  2265. { }
  2266. { Poppen }
  2267. { }
  2268. const
  2269. MUIC_Poppen : PChar = 'Poppen.mui';
  2270. { }
  2271. { Group }
  2272. { }
  2273. const
  2274. MUIC_Group : PChar = 'Group.mui';
  2275. { Methods }
  2276. { V11 }
  2277. const
  2278. MUIM_Group_ExitChange = $8042d1cc;
  2279. { V11 }
  2280. MUIM_Group_InitChange = $80420887;
  2281. { V4 }
  2282. MUIM_Group_Sort = $80427417;
  2283. type
  2284. tMUIP_Group_ExitChange = record
  2285. MethodID : LongWord;
  2286. end;
  2287. pMUIP_Group_ExitChange = ^tMUIP_Group_ExitChange;
  2288. tMUIP_Group_InitChange = record
  2289. MethodID : LongWord;
  2290. end;
  2291. pMUIP_Group_InitChange = ^tMUIP_Group_InitChange;
  2292. tMUIP_Group_Sort = record
  2293. MethodID : LongWord;
  2294. obj : array[0..0] of pObject_;
  2295. end;
  2296. pMUIP_Group_Sort = ^tMUIP_Group_Sort;
  2297. { Attributes }
  2298. { V5 isg LongInt }
  2299. const
  2300. MUIA_Group_ActivePage = $80424199;
  2301. { V4 i.. Object }
  2302. MUIA_Group_Child = $804226e6;
  2303. { V4 ..g struct List }
  2304. MUIA_Group_ChildList = $80424748;
  2305. { V4 is. LongInt }
  2306. MUIA_Group_Columns = $8042f416;
  2307. { V4 i.. BOOL }
  2308. MUIA_Group_Horiz = $8042536b;
  2309. { V4 isg LongInt }
  2310. MUIA_Group_HorizSpacing = $8042c651;
  2311. { V11 i.. struct Hook }
  2312. MUIA_Group_LayoutHook = $8042c3b2;
  2313. { V5 i.. BOOL }
  2314. MUIA_Group_PageMode = $80421a5f;
  2315. { V4 is. LongInt }
  2316. MUIA_Group_Rows = $8042b68f;
  2317. { V4 i.. BOOL }
  2318. MUIA_Group_SameHeight = $8042037e;
  2319. { V4 i.. BOOL }
  2320. MUIA_Group_SameSize = $80420860;
  2321. { V4 i.. BOOL }
  2322. MUIA_Group_SameWidth = $8042b3ec;
  2323. { V4 is. LongInt }
  2324. MUIA_Group_Spacing = $8042866d;
  2325. { V4 isg LongInt }
  2326. MUIA_Group_VertSpacing = $8042e1bf;
  2327. MUIV_Group_ActivePage_First = 0;
  2328. MUIV_Group_ActivePage_Last = -(1);
  2329. MUIV_Group_ActivePage_Prev = -(2);
  2330. MUIV_Group_ActivePage_Next = -(3);
  2331. MUIV_Group_ActivePage_Advance = -(4);
  2332. { }
  2333. { Mccprefs }
  2334. { }
  2335. const
  2336. MUIC_Mccprefs : PChar = 'Mccprefs.mui';
  2337. { }
  2338. { Register }
  2339. { }
  2340. const
  2341. MUIC_Register : PChar = 'Register.mui';
  2342. { Attributes }
  2343. { V7 i.g BOOL }
  2344. const
  2345. MUIA_Register_Frame = $8042349b;
  2346. { V7 i.g PChar }
  2347. MUIA_Register_Titles = $804297ec;
  2348. { }
  2349. { Penadjust }
  2350. { }
  2351. const
  2352. MUIC_Penadjust : PChar= 'Penadjust.mui';
  2353. { Methods }
  2354. { Attributes }
  2355. { V11 i.. BOOL }
  2356. const
  2357. MUIA_Penadjust_PSIMode = $80421cbb;
  2358. { }
  2359. { Settingsgroup }
  2360. { }
  2361. const
  2362. MUIC_Settingsgroup : PChar = 'Settingsgroup.mui';
  2363. { Methods }
  2364. { V11 }
  2365. const
  2366. MUIM_Settingsgroup_ConfigToGadgets = $80427043;
  2367. { V11 }
  2368. MUIM_Settingsgroup_GadgetsToConfig = $80425242;
  2369. type
  2370. tMUIP_Settingsgroup_ConfigToGadgets = record
  2371. MethodID : LongWord;
  2372. configdata : pObject_;
  2373. end;
  2374. pMUIP_Settingsgroup_ConfigToGadgets = ^tMUIP_Settingsgroup_ConfigToGadgets;
  2375. tMUIP_Settingsgroup_GadgetsToConfig = record
  2376. MethodID : LongWord;
  2377. configdata : pObject_;
  2378. end;
  2379. pMUIP_Settingsgroup_GadgetsToConfig = ^tMUIP_Settingsgroup_GadgetsToConfig;
  2380. { Attributes }
  2381. { }
  2382. { Settings }
  2383. { }
  2384. const
  2385. MUIC_Settings : PChar = 'Settings.mui';
  2386. { Methods }
  2387. { Attributes }
  2388. { }
  2389. { Frameadjust }
  2390. { }
  2391. const
  2392. MUIC_Frameadjust : PChar = 'Frameadjust.mui';
  2393. { Methods }
  2394. { Attributes }
  2395. { }
  2396. { Imageadjust }
  2397. { }
  2398. const
  2399. MUIC_Imageadjust : PChar = 'Imageadjust.mui';
  2400. { Methods }
  2401. { Attributes }
  2402. const
  2403. MUIV_Imageadjust_Type_All = 0;
  2404. MUIV_Imageadjust_Type_Image = 1;
  2405. MUIV_Imageadjust_Type_Background = 2;
  2406. MUIV_Imageadjust_Type_Pen = 3;
  2407. { }
  2408. { Virtgroup }
  2409. { }
  2410. const
  2411. MUIC_Virtgroup : PChar = 'Virtgroup.mui';
  2412. { Methods }
  2413. { Attributes }
  2414. { V6 ..g LongInt }
  2415. const
  2416. MUIA_Virtgroup_Height = $80423038;
  2417. { V11 i.. BOOL }
  2418. MUIA_Virtgroup_Input = $80427f7e;
  2419. { V6 isg LongInt }
  2420. MUIA_Virtgroup_Left = $80429371;
  2421. { V6 isg LongInt }
  2422. MUIA_Virtgroup_Top = $80425200;
  2423. { V6 ..g LongInt }
  2424. MUIA_Virtgroup_Width = $80427c49;
  2425. { }
  2426. { Scrollgroup }
  2427. { }
  2428. const
  2429. MUIC_Scrollgroup : PChar = 'Scrollgroup.mui';
  2430. { Methods }
  2431. { Attributes }
  2432. { V4 i.g Object }
  2433. const
  2434. MUIA_Scrollgroup_Contents = $80421261;
  2435. { V9 i.. BOOL }
  2436. MUIA_Scrollgroup_FreeHoriz = $804292f3;
  2437. { V9 i.. BOOL }
  2438. MUIA_Scrollgroup_FreeVert = $804224f2;
  2439. { V16 ..g Object }
  2440. MUIA_Scrollgroup_HorizBar = $8042b63d;
  2441. { V13 i.. BOOL }
  2442. MUIA_Scrollgroup_UseWinBorder = $804284c1;
  2443. { V16 ..g Object }
  2444. MUIA_Scrollgroup_VertBar = $8042cdc0;
  2445. { }
  2446. { Scrollbar }
  2447. { }
  2448. const
  2449. MUIC_Scrollbar : PChar = 'Scrollbar.mui';
  2450. { Attributes }
  2451. { V11 i.. LongInt }
  2452. const
  2453. MUIA_Scrollbar_Type = $8042fb6b;
  2454. MUIV_Scrollbar_Type_Default = 0;
  2455. MUIV_Scrollbar_Type_Bottom = 1;
  2456. MUIV_Scrollbar_Type_Top = 2;
  2457. MUIV_Scrollbar_Type_Sym = 3;
  2458. { }
  2459. { Listview }
  2460. { }
  2461. const
  2462. MUIC_Listview : PChar = 'Listview.mui';
  2463. { Attributes }
  2464. { V7 ..g LongInt }
  2465. const
  2466. MUIA_Listview_ClickColumn = $8042d1b3;
  2467. { V7 isg LongInt }
  2468. MUIA_Listview_DefClickColumn = $8042b296;
  2469. { V4 i.g BOOL }
  2470. MUIA_Listview_DoubleClick = $80424635;
  2471. { V11 isg LongInt }
  2472. MUIA_Listview_DragType = $80425cd3;
  2473. { V4 i.. BOOL }
  2474. MUIA_Listview_Input = $8042682d;
  2475. { V4 i.g Object }
  2476. MUIA_Listview_List = $8042bcce;
  2477. { V7 i.. LongInt }
  2478. MUIA_Listview_MultiSelect = $80427e08;
  2479. { V10 i.. BOOL }
  2480. MUIA_Listview_ScrollerPos = $8042b1b4;
  2481. { V4 ..g BOOL }
  2482. MUIA_Listview_SelectChange = $8042178f;
  2483. MUIV_Listview_DragType_None = 0;
  2484. MUIV_Listview_DragType_Immediate = 1;
  2485. MUIV_Listview_MultiSelect_None = 0;
  2486. MUIV_Listview_MultiSelect_Default = 1;
  2487. MUIV_Listview_MultiSelect_Shifted = 2;
  2488. MUIV_Listview_MultiSelect_Always = 3;
  2489. MUIV_Listview_ScrollerPos_Default = 0;
  2490. MUIV_Listview_ScrollerPos_Left = 1;
  2491. MUIV_Listview_ScrollerPos_Right = 2;
  2492. MUIV_Listview_ScrollerPos_None = 3;
  2493. { }
  2494. { Radio }
  2495. { }
  2496. const
  2497. MUIC_Radio : PChar = 'Radio.mui';
  2498. { Attributes }
  2499. { V4 isg LongInt }
  2500. const
  2501. MUIA_Radio_Active = $80429b41;
  2502. { V4 i.. PChar }
  2503. MUIA_Radio_Entries = $8042b6a1;
  2504. { }
  2505. { Cycle }
  2506. { }
  2507. const
  2508. MUIC_Cycle : PChar = 'Cycle.mui';
  2509. { Attributes }
  2510. { V4 isg LongInt }
  2511. const
  2512. MUIA_Cycle_Active = $80421788;
  2513. { V4 i.. PChar }
  2514. MUIA_Cycle_Entries = $80420629;
  2515. MUIV_Cycle_Active_Next = -(1);
  2516. MUIV_Cycle_Active_Prev = -(2);
  2517. { }
  2518. { Coloradjust }
  2519. { }
  2520. const
  2521. MUIC_Coloradjust : PChar = 'Coloradjust.mui';
  2522. { Methods }
  2523. { Attributes }
  2524. { V4 isg LongWord }
  2525. const
  2526. MUIA_Coloradjust_Blue = $8042b8a3;
  2527. { V4 isg LongWord }
  2528. MUIA_Coloradjust_Green = $804285ab;
  2529. { V4 isg LongWord }
  2530. MUIA_Coloradjust_ModeID = $8042ec59;
  2531. { V4 isg LongWord }
  2532. MUIA_Coloradjust_Red = $80420eaa;
  2533. { V4 isg LongWord }
  2534. MUIA_Coloradjust_RGB = $8042f899;
  2535. { }
  2536. { Palette }
  2537. { }
  2538. const
  2539. MUIC_Palette : PChar = 'Palette.mui';
  2540. { Attributes }
  2541. { V6 i.g struct MUI_Palette_Entry }
  2542. const
  2543. MUIA_Palette_Entries = $8042a3d8;
  2544. { V6 isg BOOL }
  2545. MUIA_Palette_Groupable = $80423e67;
  2546. { V6 isg char }
  2547. MUIA_Palette_Names = $8042c3a2;
  2548. { }
  2549. { Popstring }
  2550. { }
  2551. const
  2552. MUIC_Popstring : PChar = 'Popstring.mui';
  2553. { Methods }
  2554. { V7 }
  2555. const
  2556. MUIM_Popstring_Close = $8042dc52;
  2557. { V7 }
  2558. MUIM_Popstring_Open = $804258ba;
  2559. type
  2560. tMUIP_Popstring_Close = record
  2561. MethodID : LongWord;
  2562. result : LongInt;
  2563. end;
  2564. pMUIP_Popstring_Close = ^tMUIP_Popstring_Close;
  2565. tMUIP_Popstring_Open = record
  2566. MethodID : LongWord;
  2567. end;
  2568. pMUIP_Popstring_Open = ^tMUIP_Popstring_Open;
  2569. { Attributes }
  2570. { V7 i.g Object }
  2571. const
  2572. MUIA_Popstring_Button = $8042d0b9;
  2573. { V7 isg struct Hook }
  2574. MUIA_Popstring_CloseHook = $804256bf;
  2575. { V7 isg struct Hook }
  2576. MUIA_Popstring_OpenHook = $80429d00;
  2577. { V7 i.g Object }
  2578. MUIA_Popstring_String = $804239ea;
  2579. { V7 isg BOOL }
  2580. MUIA_Popstring_Toggle = $80422b7a;
  2581. { }
  2582. { Popobject }
  2583. { }
  2584. const
  2585. MUIC_Popobject : PChar = 'Popobject.mui';
  2586. { Attributes }
  2587. { V7 isg BOOL }
  2588. const
  2589. MUIA_Popobject_Follow = $80424cb5;
  2590. { V7 isg BOOL }
  2591. MUIA_Popobject_Light = $8042a5a3;
  2592. { V7 i.g Object }
  2593. MUIA_Popobject_Object = $804293e3;
  2594. { V7 isg struct Hook }
  2595. MUIA_Popobject_ObjStrHook = $8042db44;
  2596. { V7 isg struct Hook }
  2597. MUIA_Popobject_StrObjHook = $8042fbe1;
  2598. { V7 isg BOOL }
  2599. MUIA_Popobject_Volatile = $804252ec;
  2600. { V9 isg struct Hook }
  2601. MUIA_Popobject_WindowHook = $8042f194;
  2602. { }
  2603. { Poplist }
  2604. { }
  2605. const
  2606. MUIC_Poplist : PChar = 'Poplist.mui';
  2607. { Attributes }
  2608. { V8 i.. char }
  2609. const
  2610. MUIA_Poplist_Array = $8042084c;
  2611. { }
  2612. { Popscreen }
  2613. { }
  2614. const
  2615. MUIC_Popscreen : PChar = 'Popscreen.mui';
  2616. { Attributes }
  2617. { }
  2618. { Popasl }
  2619. { }
  2620. const
  2621. MUIC_Popasl : PChar = 'Popasl.mui';
  2622. { Attributes }
  2623. { V7 ..g BOOL }
  2624. const
  2625. MUIA_Popasl_Active = $80421b37;
  2626. { V7 isg struct Hook }
  2627. MUIA_Popasl_StartHook = $8042b703;
  2628. { V7 isg struct Hook }
  2629. MUIA_Popasl_StopHook = $8042d8d2;
  2630. { V7 i.g LongWord }
  2631. MUIA_Popasl_Type = $8042df3d;
  2632. { }
  2633. { Semaphore }
  2634. { }
  2635. const
  2636. MUIC_Semaphore : PChar = 'Semaphore.mui';
  2637. { Methods }
  2638. { V11 }
  2639. const
  2640. MUIM_Semaphore_Attempt = $80426ce2;
  2641. { V11 }
  2642. MUIM_Semaphore_AttemptShared = $80422551;
  2643. { V11 }
  2644. MUIM_Semaphore_Obtain = $804276f0;
  2645. { V11 }
  2646. MUIM_Semaphore_ObtainShared = $8042ea02;
  2647. { V11 }
  2648. MUIM_Semaphore_Release = $80421f2d;
  2649. type
  2650. tMUIP_Semaphore_Attempt = record
  2651. MethodID : LongWord;
  2652. end;
  2653. pMUIP_Semaphore_Attempt = ^tMUIP_Semaphore_Attempt;
  2654. tMUIP_Semaphore_AttemptShared = record
  2655. MethodID : LongWord;
  2656. end;
  2657. pMUIP_Semaphore_AttemptShared = ^tMUIP_Semaphore_AttemptShared;
  2658. tMUIP_Semaphore_Obtain = record
  2659. MethodID : LongWord;
  2660. end;
  2661. pMUIP_Semaphore_Obtain = ^tMUIP_Semaphore_Obtain;
  2662. tMUIP_Semaphore_ObtainShared = record
  2663. MethodID : LongWord;
  2664. end;
  2665. pMUIP_Semaphore_ObtainShared = ^tMUIP_Semaphore_ObtainShared;
  2666. tMUIP_Semaphore_Release = record
  2667. MethodID : LongWord;
  2668. end;
  2669. pMUIP_Semaphore_Release = ^tMUIP_Semaphore_Release;
  2670. { }
  2671. { Applist }
  2672. { }
  2673. const
  2674. MUIC_Applist : PChar = 'Applist.mui';
  2675. { Methods }
  2676. { }
  2677. { Cclist }
  2678. { }
  2679. const
  2680. MUIC_Cclist : PChar = 'Cclist.mui';
  2681. { Methods }
  2682. { }
  2683. { Dataspace }
  2684. { }
  2685. const
  2686. MUIC_Dataspace : PChar = 'Dataspace.mui';
  2687. { Methods }
  2688. { V11 }
  2689. const
  2690. MUIM_Dataspace_Add = $80423366;
  2691. { V11 }
  2692. MUIM_Dataspace_Clear = $8042b6c9;
  2693. { V11 }
  2694. MUIM_Dataspace_Find = $8042832c;
  2695. { V11 }
  2696. MUIM_Dataspace_Merge = $80423e2b;
  2697. { V11 }
  2698. MUIM_Dataspace_ReadIFF = $80420dfb;
  2699. { V11 }
  2700. MUIM_Dataspace_Remove = $8042dce1;
  2701. { V11 }
  2702. MUIM_Dataspace_WriteIFF = $80425e8e;
  2703. type
  2704. tMUIP_Dataspace_Add = record
  2705. MethodID : LongWord;
  2706. data : Pointer;
  2707. len : LongInt;
  2708. id : LongWord;
  2709. end;
  2710. pMUIP_Dataspace_Add = ^tMUIP_Dataspace_Add;
  2711. tMUIP_Dataspace_Clear = record
  2712. MethodID : LongWord;
  2713. end;
  2714. pMUIP_Dataspace_Clear = ^tMUIP_Dataspace_Clear;
  2715. tMUIP_Dataspace_Find = record
  2716. MethodID : LongWord;
  2717. id : LongWord;
  2718. end;
  2719. pMUIP_Dataspace_Find = ^tMUIP_Dataspace_Find;
  2720. tMUIP_Dataspace_Merge = record
  2721. MethodID : LongWord;
  2722. dataspace : pObject_;
  2723. end;
  2724. pMUIP_Dataspace_Merge = ^tMUIP_Dataspace_Merge;
  2725. tMUIP_Dataspace_ReadIFF = record
  2726. MethodID : LongWord;
  2727. handle : Pointer; // PIFFHandle; FIX ME!!
  2728. end;
  2729. pMUIP_Dataspace_ReadIFF = ^tMUIP_Dataspace_ReadIFF;
  2730. tMUIP_Dataspace_Remove = record
  2731. MethodID : LongWord;
  2732. id : LongWord;
  2733. end;
  2734. pMUIP_Dataspace_Remove = ^tMUIP_Dataspace_Remove;
  2735. tMUIP_Dataspace_WriteIFF = record
  2736. MethodID : LongWord;
  2737. handle : Pointer; // PIFFHandle; FIX ME!!!
  2738. type_ : LongWord;
  2739. id : LongWord;
  2740. end;
  2741. pMUIP_Dataspace_WriteIFF = ^tMUIP_Dataspace_WriteIFF;
  2742. { Attributes }
  2743. { V11 i.. Pointer }
  2744. const
  2745. MUIA_Dataspace_Pool = $80424cf9;
  2746. { }
  2747. { Configdata }
  2748. { }
  2749. const
  2750. MUIC_Configdata : PChar = 'Configdata.mui';
  2751. { Methods }
  2752. { Attributes }
  2753. { }
  2754. { Dtpic }
  2755. { }
  2756. const
  2757. MUIC_Dtpic : PChar = 'Dtpic.mui';
  2758. { Attributes }
  2759. { }
  2760. { End of automatic header file creation }
  2761. { }
  2762. {
  2763. Structures and Macros for creating custom classes.
  2764. }
  2765. {
  2766. GENERAL NOTES:
  2767. - Everything described in this header file is only valid within
  2768. MUI classes. You may never use any of these things out of
  2769. a class, e.g. in a traditional MUI application.
  2770. - Except when otherwise stated, all structures are strictly read only.
  2771. }
  2772. { Global information for every object }
  2773. { ... private data follows ... }
  2774. type
  2775. tMUI_GlobalInfo = record
  2776. priv0 : LongWord;
  2777. mgi_ApplicationObject : pObject_;
  2778. end;
  2779. pMUI_GlobalInfo = ^tMUI_GlobalInfo;
  2780. { Instance data of notify class }
  2781. tMUI_NotifyData = record
  2782. mnd_GlobalInfo : PMUI_GlobalInfo;
  2783. mnd_UserData : LongWord;
  2784. mnd_ObjectID : LongWord;
  2785. priv1 : LongWord;
  2786. priv2 : LongWord;
  2787. priv3 : LongWord;
  2788. priv4 : LongWord;
  2789. end;
  2790. pMUI_NotifyData = ^tMUI_NotifyData;
  2791. { use this if a dimension is not limited. }
  2792. const
  2793. MUI_MAXMAX = 10000;
  2794. { Hook message for custom layout }
  2795. { type of message (see defines below) }
  2796. { list of this groups children, traverse with NextObject() }
  2797. { results for MUILM_MINMAX }
  2798. { size (and result) for MUILM_LAYOUT }
  2799. type
  2800. tMUI_LayoutMsg = record
  2801. lm_Type : LongWord;
  2802. lm_Children : PMinList;
  2803. lm_MinMax : tMUI_MinMax;
  2804. lm_Layout : record
  2805. Width : LongInt;
  2806. Height : LongInt;
  2807. priv5 : LongWord;
  2808. priv6 : LongWord;
  2809. end;
  2810. end;
  2811. pMUI_LayoutMsg = ^tMUI_LayoutMsg;
  2812. { MUI wants you to calc your min & max sizes }
  2813. const
  2814. MUILM_MINMAX = 1;
  2815. { MUI wants you to layout your children }
  2816. MUILM_LAYOUT = 2;
  2817. { return this if your hook doesn't implement lm_Type }
  2818. MUILM_UNKNOWN = -(1);
  2819. { (partial) instance data of area class }
  2820. { RenderInfo for this object }
  2821. { Font }
  2822. { min/max/default sizes }
  2823. { position and dimension }
  2824. { frame & innerspacing left offset }
  2825. { frame & innerspacing top offset }
  2826. { frame & innerspacing add. width }
  2827. { frame & innerspacing add. height }
  2828. { see definitions below }
  2829. { ... private data follows ... }
  2830. type
  2831. tMUI_AreaData = record
  2832. mad_RenderInfo : PMUI_RenderInfo;
  2833. priv7 : LongWord;
  2834. mad_Font : PTextFont;
  2835. mad_MinMax : tMUI_MinMax;
  2836. mad_Box : tIBox;
  2837. mad_addleft : BYTE;
  2838. mad_addtop : BYTE;
  2839. mad_subwidth : BYTE;
  2840. mad_subheight : BYTE;
  2841. mad_Flags : LongWord;
  2842. end;
  2843. pMUI_AreaData = ^tMUI_AreaData;
  2844. { Definitions for mad_Flags, other flags are private }
  2845. { completely redraw yourself }
  2846. const
  2847. MADF_DRAWOBJECT = 1 shl 0;
  2848. { only update yourself }
  2849. MADF_DRAWUPDATE = 1 shl 1;
  2850. { MUI's draw pens }
  2851. MPEN_SHINE = 0;
  2852. MPEN_HALFSHINE = 1;
  2853. MPEN_BACKGROUND = 2;
  2854. MPEN_HALFSHADOW = 3;
  2855. MPEN_SHADOW = 4;
  2856. MPEN_TEXT = 5;
  2857. MPEN_FILL = 6;
  2858. MPEN_MARK = 7;
  2859. MPEN_COUNT = 8;
  2860. { Mask for pens from MUI_ObtainPen() }
  2861. MUIPEN_MASK = $0000ffff;
  2862. { Information on display environment }
  2863. { valid between MUIM_Setup/MUIM_Cleanup }
  2864. { valid between MUIM_Setup/MUIM_Cleanup }
  2865. { valid between MUIM_Setup/MUIM_Cleanup }
  2866. { valid between MUIM_Setup/MUIM_Cleanup }
  2867. { valid between MUIM_Show/MUIM_Hide }
  2868. { valid between MUIM_Show/MUIM_Hide }
  2869. { valid between MUIM_Setup/MUIM_Cleanup }
  2870. { ... private data follows ... }
  2871. {
  2872. If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
  2873. than Move()/Draw() for horizontal or vertical lines.
  2874. on the current display.
  2875. }
  2876. const
  2877. MUIMRI_RECTFILL = 1 shl 0;
  2878. {
  2879. If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
  2880. cybergraphics emulated hicolor or true color display.
  2881. }
  2882. MUIMRI_TRUECOLOR = 1 shl 1;
  2883. {
  2884. If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
  2885. (1:1) apsect ratio instead of standard 2:1 frames.
  2886. }
  2887. MUIMRI_THINFRAMES = 1 shl 2;
  2888. {
  2889. If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
  2890. refreshing a WFLG_SIMPLEREFRESH window and is between
  2891. a BeginRefresh()/EndRefresh() pair.
  2892. }
  2893. MUIMRI_REFRESHMODE = 1 shl 3;
  2894. { the following macros can be used to get pointers to an objects
  2895. GlobalInfo and RenderInfo structures. }
  2896. type
  2897. t__dummyXFC2__ = record
  2898. mnd : tMUI_NotifyData;
  2899. mad : tMUI_AreaData;
  2900. end;
  2901. p__dummyXFC2__ = ^t__dummyXFC2__;
  2902. const
  2903. MUIKEY_RELEASE = -2;
  2904. MUIKEY_NONE = -1;
  2905. MUIKEY_PRESS = 0;
  2906. MUIKEY_TOGGLE = 1;
  2907. MUIKEY_UP = 2;
  2908. MUIKEY_DOWN = 3;
  2909. MUIKEY_PAGEUP = 4;
  2910. MUIKEY_PAGEDOWN = 5;
  2911. MUIKEY_TOP = 6;
  2912. MUIKEY_BOTTOM = 7;
  2913. MUIKEY_LEFT = 8;
  2914. MUIKEY_RIGHT = 9;
  2915. MUIKEY_WORDLEFT = 10;
  2916. MUIKEY_WORDRIGHT = 11;
  2917. MUIKEY_LINESTART = 12;
  2918. MUIKEY_LINEEND = 13;
  2919. MUIKEY_GADGET_NEXT = 14;
  2920. MUIKEY_GADGET_PREV = 15;
  2921. MUIKEY_GADGET_OFF = 16;
  2922. MUIKEY_WINDOW_CLOSE = 17;
  2923. MUIKEY_WINDOW_NEXT = 18;
  2924. MUIKEY_WINDOW_PREV = 19;
  2925. MUIKEY_HELP = 20;
  2926. MUIKEY_POPUP = 21;
  2927. MUIKEY_COUNT = 22;
  2928. MUIKEYF_PRESS = 1 shl MUIKEY_PRESS;
  2929. MUIKEYF_TOGGLE = 1 shl MUIKEY_TOGGLE;
  2930. MUIKEYF_UP = 1 shl MUIKEY_UP;
  2931. MUIKEYF_DOWN = 1 shl MUIKEY_DOWN;
  2932. MUIKEYF_PAGEUP = 1 shl MUIKEY_PAGEUP;
  2933. MUIKEYF_PAGEDOWN = 1 shl MUIKEY_PAGEDOWN;
  2934. MUIKEYF_TOP = 1 shl MUIKEY_TOP;
  2935. MUIKEYF_BOTTOM = 1 shl MUIKEY_BOTTOM;
  2936. MUIKEYF_LEFT = 1 shl MUIKEY_LEFT;
  2937. MUIKEYF_RIGHT = 1 shl MUIKEY_RIGHT;
  2938. MUIKEYF_WORDLEFT = 1 shl MUIKEY_WORDLEFT;
  2939. MUIKEYF_WORDRIGHT = 1 shl MUIKEY_WORDRIGHT;
  2940. MUIKEYF_LINESTART = 1 shl MUIKEY_LINESTART;
  2941. MUIKEYF_LINEEND = 1 shl MUIKEY_LINEEND;
  2942. MUIKEYF_GADGET_NEXT = 1 shl MUIKEY_GADGET_NEXT;
  2943. MUIKEYF_GADGET_PREV = 1 shl MUIKEY_GADGET_PREV;
  2944. MUIKEYF_GADGET_OFF = 1 shl MUIKEY_GADGET_OFF;
  2945. MUIKEYF_WINDOW_CLOSE = 1 shl MUIKEY_WINDOW_CLOSE;
  2946. MUIKEYF_WINDOW_NEXT = 1 shl MUIKEY_WINDOW_NEXT;
  2947. MUIKEYF_WINDOW_PREV = 1 shl MUIKEY_WINDOW_PREV;
  2948. MUIKEYF_HELP = 1 shl MUIKEY_HELP;
  2949. MUIKEYF_POPUP = 1 shl MUIKEY_POPUP;
  2950. { MUI_CustomClass returned by MUI_CreateCustomClass() }
  2951. { use for whatever you want }
  2952. { MUI has opened these libraries }
  2953. { for you automatically. You can }
  2954. { use them or decide to open }
  2955. { your libraries yourself. }
  2956. { pointer to super class }
  2957. { pointer to the new class }
  2958. { ... private data follows ... }
  2959. type
  2960. tMUI_CustomClass = record
  2961. mcc_UserData : Pointer;
  2962. mcc_UtilityBase : PLibrary;
  2963. mcc_DOSBase : PLibrary;
  2964. mcc_GfxBase : PLibrary;
  2965. mcc_IntuitionBase : PLibrary;
  2966. mcc_Super : PIClass;
  2967. mcc_Class : PIClass;
  2968. end;
  2969. pMUI_CustomClass = ^tMUI_CustomClass;
  2970. function MUI_NewObjectA(class_ : pChar location 'a0'; tags : pTagItem location 'a1') : pObject_;
  2971. syscall legacy MUIMasterBase 30;
  2972. procedure MUI_DisposeObject(obj : pObject_ location 'a0');
  2973. syscall legacy MUIMasterBase 36;
  2974. function MUI_RequestA(app : POINTER location 'd0';
  2975. win : POINTER location 'd1';
  2976. flags : LongWord location 'd2';
  2977. title : pChar location 'a0';
  2978. gadgets : pChar location 'a1';
  2979. format : pChar location 'a2';
  2980. params : POINTER location 'a3') : longint;
  2981. syscall legacy MUIMasterBase 42;
  2982. function MUI_AllocAslRequest(typ : LongWord location 'd0'; tags : pTagItem location 'a0') : POINTER;
  2983. syscall legacy MUIMasterBase 48;
  2984. function MUI_AslRequest(req : POINTER location 'a0'; tags : pTagItem location 'a1') : BOOLEAN;
  2985. syscall legacy MUIMasterBase 54;
  2986. procedure MUI_FreeAslRequest(req : POINTER location 'a0');
  2987. syscall legacy MUIMasterBase 60;
  2988. function MUI_Error : LONGINT;
  2989. syscall legacy MUIMasterBase 66;
  2990. function MUI_SetError(errnum : LONGINT location 'd0') : LONGINT;
  2991. syscall legacy MUIMasterBase 72;
  2992. function MUI_GetClass(name : pChar location 'a0') : pIClass;
  2993. syscall legacy MUIMasterBase 78;
  2994. procedure MUI_FreeClass(cl : pIClass location 'a0');
  2995. syscall legacy MUIMasterBase 84;
  2996. procedure MUI_RequestIDCMP(obj : pObject_ location 'a0'; flags : LongWord location 'd0');
  2997. syscall legacy MUIMasterBase 90;
  2998. procedure MUI_RejectIDCMP(obj : pObject_ location 'a0'; flags : LongWord location 'd0');
  2999. syscall legacy MUIMasterBase 96;
  3000. procedure MUI_Redraw(obj : pObject_ location 'a0'; flags : LongWord location 'd0');
  3001. syscall legacy MUIMasterBase 102;
  3002. function MUI_CreateCustomClass(base : pLibrary location 'a0';
  3003. supername : pChar location 'a1';
  3004. supermcc : pMUI_CustomClass location 'a2';
  3005. datasize : LONGINT location 'd0';
  3006. dispatcher : POINTER location 'a3') : pMUI_CustomClass;
  3007. syscall legacy MUIMasterBase 108;
  3008. function MUI_DeleteCustomClass(mcc : pMUI_CustomClass location 'a0') : BOOLEAN;
  3009. syscall legacy MUIMasterBase 114;
  3010. function MUI_MakeObjectA(typ: LONGINT location 'd0'; params : pLongWord location 'a0') : pLongWord;
  3011. syscall legacy MUIMasterBase 120;
  3012. function MUI_Layout(obj : pObject_ location 'a0';
  3013. l : LONGINT location 'd0';
  3014. t : LONGINT location 'd1';
  3015. w : LONGINT location 'd2';
  3016. h : LONGINT location 'd3';
  3017. flags : LongWord location 'd4') : BOOLEAN;
  3018. syscall legacy MUIMasterBase 126;
  3019. function MUI_ObtainPen(mri : pMUI_RenderInfo location 'a0';
  3020. spec : pMUI_PenSpec location 'a1';
  3021. flags : LongWord location 'd0') : LONGINT;
  3022. syscall legacy MUIMasterBase 156;
  3023. procedure MUI_ReleasePen(mri : pMUI_RenderInfo location 'a0';
  3024. pen : LONGINT location 'd0');
  3025. syscall legacy MUIMasterBase 162;
  3026. function MUI_AddClipping(mri : pMUI_RenderInfo location 'a0';
  3027. l : smallint location 'd0';
  3028. t : smallint location 'd1';
  3029. w : smallint location 'd2';
  3030. h : smallint location 'd3') : POINTER;
  3031. syscall legacy MUIMasterBase 168;
  3032. procedure MUI_RemoveClipping(mri : pMUI_RenderInfo location 'a0';
  3033. h : POINTER location 'a1');
  3034. syscall legacy MUIMasterBase 174;
  3035. function MUI_AddClipRegion(mri : pMUI_RenderInfo location 'a0'; region : pRegion location 'a1') : POINTER;
  3036. syscall legacy MUIMasterBase 180;
  3037. procedure MUI_RemoveClipRegion(mri : pMUI_RenderInfo location 'a0'; region : POINTER location 'a1');
  3038. syscall legacy MUIMasterBase 186;
  3039. function MUI_BeginRefresh(mri : pMUI_RenderInfo location 'a0'; flags : LongWord location 'd0') : BOOLEAN;
  3040. syscall legacy MUIMasterBase 192;
  3041. procedure MUI_EndRefresh(mri : pMUI_RenderInfo location 'a0'; flags : LongWord location 'd0');
  3042. syscall legacy MUIMasterBase 198;
  3043. (*
  3044. ** some procedures to get some information about our object
  3045. *)
  3046. function MUINotifyData(obj : Pointer) : pMUI_NotifyData;
  3047. function MUIAreaData(obj : Pointer) : pMUI_AreaData;
  3048. function MUIGlobalInfo(obj : Pointer) : pMUI_GlobalInfo;
  3049. function MUIUserData(obj : Pointer) : Pointer ;
  3050. function MUIRenderInfo(obj : Pointer) : pMUI_RenderInfo;
  3051. function MUIPen(pen : longint): longint;
  3052. (*
  3053. ** some more specialized functions to retain information about special
  3054. ** object-data like rastport, window, etc.
  3055. **
  3056. ** NOTE: These macros may only be used in custom classes and are
  3057. ** only valid if your class is inbetween the specified methods!
  3058. *)
  3059. function OBJ_App(obj : Pointer) : pObject_; (* valid between MUIM_Setup/Cleanup *)
  3060. function OBJ_Win(obj : Pointer) : pObject_; (* valid between MUIM_Setup/Cleanup *)
  3061. function OBJ_Dri(obj : Pointer) : pDrawInfo; (* valid between MUIM_Setup/Cleanup *)
  3062. function OBJ_Screen(obj : Pointer) : pScreen; (* valid between MUIM_Setup/Cleanup *)
  3063. function OBJ_Pens(obj : Pointer) : pWord; (* valid between MUIM_Setup/Cleanup *)
  3064. function OBJ_Window(obj : Pointer) : pWindow; (* valid between MUIM_Show/Hide *)
  3065. function OBJ_Rp(obj : Pointer) : pRastPort; (* valid between MUIM_Show/Hide *)
  3066. function OBJ_Left(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3067. function OBJ_Top(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3068. function OBJ_Width(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3069. function OBJ_Height(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3070. function OBJ_Right(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3071. function OBJ_Bottom(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3072. function OBJ_AddLeft(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3073. function OBJ_AddTop(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3074. function OBJ_SubWidth(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3075. function OBJ_SubHeight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3076. function OBJ_MLeft(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3077. function OBJ_MTop(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3078. function OBJ_MWidth(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3079. function OBJ_MHeight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3080. function OBJ_MRight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3081. function OBJ_MBottom(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3082. function OBJ_Font(obj : Pointer) : pTextFont; (* valid between MUIM_Setup/Cleanup *)
  3083. function OBJ_MinWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3084. function OBJ_MinHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3085. function OBJ_MaxWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3086. function OBJ_MaxHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3087. function OBJ_DefWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3088. function OBJ_DefHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3089. function OBJ_Flags(obj : Pointer) : LongWord;
  3090. function OBJ_Between(a,x,b : smallint): boolean;
  3091. function OBJ_IsInObject(x,y : smallint; obj : pObject_): boolean;
  3092. function MUIV_Window_AltHeight_MinMax(p : longint) : longint;
  3093. function MUIV_Window_AltHeight_Visible(p : longint) : longint;
  3094. function MUIV_Window_AltHeight_Screen(p : longint) : longint;
  3095. function MUIV_Window_AltTopEdge_Delta(p : longint) : longint;
  3096. function MUIV_Window_AltWidth_MinMax(p : longint) : longint;
  3097. function MUIV_Window_AltWidth_Visible(p : longint) : longint;
  3098. function MUIV_Window_AltWidth_Screen(p : longint) : longint;
  3099. function MUIV_Window_Height_MinMax(p : longint) : longint;
  3100. function MUIV_Window_Height_Visible(p : longint) : longint;
  3101. function MUIV_Window_Height_Screen(p : longint) : longint;
  3102. function MUIV_Window_TopEdge_Delta(p : longint) : longint;
  3103. function MUIV_Window_Width_MinMax(p : longint) : longint;
  3104. function MUIV_Window_Width_Visible(p : longint) : longint;
  3105. function MUIV_Window_Width_Screen(p : longint) : longint;
  3106. function MAKE_ID(a,b,c,d : char): longword;
  3107. function MUIget(obj: pObject_; attr: longword; store: longword): longword;
  3108. function MUIset(obj: pObject_; attr: longword; value: longword): longword;
  3109. {
  3110. Functions and procedures with array of longword go here
  3111. }
  3112. function MUI_AllocAslRequestTags(_type : longword; tags : array Of LongWord) : POINTER;
  3113. function MUI_AslRequestTags(req : POINTER; tags : array Of LongWord) : BOOLEAN;
  3114. function MUI_MakeObject(_type : LONGINT; params : array of LongWord) : pLongWord; inline;
  3115. function MUI_NewObject(a0arg : pCHAR; tags : array of LongWord) : pLongWord; inline;
  3116. function MUI_Request(app : POINTER; win : POINTER; flags : longword; title : pCHAR; gadgets : pCHAR; format : pCHAR; params : array of LongWord) : LONGINT;
  3117. function InitMUIMasterLibrary : boolean;
  3118. implementation
  3119. function MUINotifyData(obj : Pointer) : pMUI_NotifyData;
  3120. begin
  3121. MUINotifyData := pMUI_NotifyData(@p__dummyXFC2__(obj)^.mnd);
  3122. end;
  3123. function MUIAreaData(obj : Pointer) : pMUI_AreaData;
  3124. begin
  3125. MUIAreaData := pMUI_AreaData(@p__dummyXFC2__(obj)^.mad);
  3126. end;
  3127. function MUIGlobalInfo(obj : Pointer) : pMUI_GlobalInfo;
  3128. begin
  3129. MUIGlobalInfo := pMUI_GlobalInfo(p__dummyXFC2__(obj)^.mnd.mnd_GlobalInfo);
  3130. end;
  3131. function MUIUserData(obj : Pointer) : Pointer ;
  3132. begin
  3133. MUIUserData := Pointer(p__dummyXFC2__(obj)^.mnd.mnd_GlobalInfo);
  3134. end;
  3135. function MUIRenderInfo(obj : Pointer) : pMUI_RenderInfo;
  3136. begin
  3137. MUIRenderInfo := pMUI_RenderInfo(p__dummyXFC2__(obj)^.mad.mad_RenderInfo);
  3138. end;
  3139. function MUIPen(pen : longint): longint;
  3140. begin
  3141. MUIPen := longint(pen*MUIPEN_Mask);
  3142. end;
  3143. function OBJ_App(obj : Pointer) : pObject_; (* valid between MUIM_Setup/Cleanup *)
  3144. begin
  3145. OBJ_App := pMUI_GlobalInfo(obj)^.mgi_ApplicationObject;
  3146. end;
  3147. function OBJ_Win(obj : Pointer) : pObject_; (* valid between MUIM_Setup/Cleanup *)
  3148. begin
  3149. OBJ_Win := pMUI_RenderInfo(obj)^.mri_WindowObject;
  3150. end;
  3151. function OBJ_Dri(obj : Pointer) : pDrawInfo; (* valid between MUIM_Setup/Cleanup *)
  3152. begin
  3153. OBJ_Dri := pMUI_RenderInfo(obj)^.mri_DrawInfo;
  3154. end;
  3155. function OBJ_Screen(obj : Pointer) : pScreen; (* valid between MUIM_Setup/Cleanup *)
  3156. begin
  3157. OBJ_Screen := pMUI_RenderInfo(obj)^.mri_Screen;
  3158. end;
  3159. function OBJ_Pens(obj : Pointer) : pWord; (* valid between MUIM_Setup/Cleanup *)
  3160. begin
  3161. OBJ_Pens := pMUI_RenderInfo(obj)^.mri_Pens;
  3162. end;
  3163. function OBJ_Window(obj : Pointer) : pWindow; (* valid between MUIM_Show/Hide *)
  3164. begin
  3165. OBJ_Window := PMUI_RenderInfo(obj)^.mri_Window;
  3166. end;
  3167. function OBJ_Rp(obj : Pointer) : pRastPort; (* valid between MUIM_Show/Hide *)
  3168. begin
  3169. OBJ_Rp := pMUI_RenderInfo(obj)^.mri_RastPort;
  3170. end;
  3171. function OBJ_Left(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3172. begin
  3173. OBJ_Left := pMUI_AreaData(obj)^.mad_Box.Left;
  3174. end;
  3175. function OBJ_Top(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3176. begin
  3177. OBJ_Top := pMUI_AreaData(obj)^.mad_Box.Top;
  3178. end;
  3179. function OBJ_Width(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3180. begin
  3181. OBJ_Width := pMUI_AreaData(obj)^.mad_Box.Width;
  3182. end;
  3183. function OBJ_Height(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3184. begin
  3185. OBJ_Height := pMUI_AreaData(obj)^.mad_Box.Height;
  3186. end;
  3187. function OBJ_Right(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3188. begin
  3189. OBJ_Right := OBJ_Left(obj) + OBJ_Width(obj) -1;
  3190. end;
  3191. function OBJ_Bottom(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3192. begin
  3193. OBJ_Bottom := OBJ_Top(obj) + OBJ_Height(obj) -1;
  3194. end;
  3195. function OBJ_AddLeft(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3196. begin
  3197. OBJ_AddLeft := pMUI_AreaData(obj)^.mad_AddLeft;
  3198. end;
  3199. function OBJ_AddTop(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3200. begin
  3201. OBJ_AddTop := pMUI_AreaData(obj)^.mad_AddTop;
  3202. end;
  3203. function OBJ_SubWidth(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3204. begin
  3205. OBJ_SubWidth := pMUI_AreaData(obj)^.mad_SubWidth;
  3206. end;
  3207. function OBJ_SubHeight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3208. begin
  3209. OBJ_SubHeight := pMUI_AreaData(obj)^.mad_SubHeight;
  3210. end;
  3211. function OBJ_MLeft(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3212. begin
  3213. OBJ_MLeft := OBJ_Left(obj) + OBJ_AddLeft(obj);
  3214. end;
  3215. function OBJ_MTop(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3216. begin
  3217. OBJ_MTop := OBJ_Top(obj) + OBJ_AddTop(obj);
  3218. end;
  3219. function OBJ_MWidth(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3220. begin
  3221. OBJ_MWidth := OBJ_Width(obj) -OBJ_SubWidth(obj);
  3222. end;
  3223. function OBJ_MHeight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3224. begin
  3225. OBJ_MHeight := OBJ_Height(obj) - OBJ_SubHeight(obj);
  3226. end;
  3227. function OBJ_MRight(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3228. begin
  3229. OBJ_MRight := OBJ_MLeft(obj) + OBJ_MWidth(obj) -1;
  3230. end;
  3231. function OBJ_MBottom(obj : Pointer) : smallint; (* valid during MUIM_Draw *)
  3232. begin
  3233. OBJ_MBottom := OBJ_MTop(obj) + OBJ_MHeight(obj) -1;
  3234. end;
  3235. function OBJ_Font(obj : Pointer) : pTextFont; (* valid between MUIM_Setup/Cleanup *)
  3236. begin
  3237. OBJ_Font := pMUI_AreaData(obj)^.mad_Font;
  3238. end;
  3239. function OBJ_MinWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3240. begin
  3241. OBJ_MinWidth := pMUI_AreaData(obj)^.mad_MinMax.MinWidth;
  3242. end;
  3243. function OBJ_MinHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3244. begin
  3245. OBJ_MinHeight := pMUI_AreaData(obj)^.mad_MinMax.MinHeight;
  3246. end;
  3247. function OBJ_MaxWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3248. begin
  3249. OBJ_maxWidth := pMUI_AreaData(obj)^.mad_MinMax.MaxWidth;
  3250. end;
  3251. function OBJ_MaxHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3252. begin
  3253. OBJ_maxHeight := pMUI_AreaData(obj)^.mad_MinMax.MaxHeight;
  3254. end;
  3255. function OBJ_DefWidth(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3256. begin
  3257. OBJ_DefWidth := pMUI_AreaData(obj)^.mad_MinMax.DefWidth;
  3258. end;
  3259. function OBJ_DefHeight(obj : Pointer) : LongWord; (* valid between MUIM_Show/Hide *)
  3260. begin
  3261. OBJ_DefHeight := pMUI_AreaData(obj)^.mad_MinMax.DefHeight;
  3262. end;
  3263. function OBJ_Flags(obj : Pointer) : LongWord;
  3264. begin
  3265. OBJ_Flags := pMUI_AreaData(obj)^.mad_Flags;
  3266. end;
  3267. (*
  3268. ** 2 useful procedures for testing if some coordinates are inside your object
  3269. ** (converted from the ones in class3.c. So look there how to use... )
  3270. *)
  3271. function OBJ_Between(a,x,b : smallint): boolean;
  3272. begin
  3273. OBJ_Between := ((x>=a) and (x<=b));
  3274. end;
  3275. function OBJ_IsInObject(x,y : smallint; obj : pObject_): boolean;
  3276. begin
  3277. OBJ_IsInObject := (OBJ_Between(OBJ_MLeft(obj),x,OBJ_MRight(obj))
  3278. and OBJ_Between(OBJ_MTop(obj),y,OBJ_MBottom(obj)));
  3279. end;
  3280. function MUIV_Window_AltHeight_MinMax(p : longint) : longint;
  3281. begin
  3282. MUIV_Window_AltHeight_MinMax := (0 - p);
  3283. end;
  3284. function MUIV_Window_AltHeight_Visible(p : longint) : longint;
  3285. begin
  3286. MUIV_Window_AltHeight_Visible := (-100 - (p));
  3287. end;
  3288. function MUIV_Window_AltHeight_Screen(p : longint) : longint;
  3289. begin
  3290. MUIV_Window_AltHeight_Screen := (-200 - (p));
  3291. end;
  3292. function MUIV_Window_AltTopEdge_Delta(p : longint) : longint;
  3293. begin
  3294. MUIV_Window_AltTopEdge_Delta := (-3 - (p));
  3295. end;
  3296. function MUIV_Window_AltWidth_MinMax(p : longint) : longint;
  3297. begin
  3298. MUIV_Window_AltWidth_MinMax := 0 - p;
  3299. end;
  3300. function MUIV_Window_AltWidth_Visible(p : longint) : longint;
  3301. begin
  3302. MUIV_Window_AltWidth_Visible := (-100 - (p));
  3303. end;
  3304. function MUIV_Window_AltWidth_Screen(p : longint) : longint;
  3305. begin
  3306. MUIV_Window_AltWidth_Screen := (-200 - (p));
  3307. end;
  3308. function MUIV_Window_Height_MinMax(p : longint) : longint;
  3309. begin
  3310. MUIV_Window_Height_MinMax := 0 - p;
  3311. end;
  3312. function MUIV_Window_Height_Visible(p : longint) : longint;
  3313. begin
  3314. MUIV_Window_Height_Visible := (-100 - (p));
  3315. end;
  3316. function MUIV_Window_Height_Screen(p : longint) : longint;
  3317. begin
  3318. MUIV_Window_Height_Screen := (-200 - (p));
  3319. end;
  3320. function MUIV_Window_TopEdge_Delta(p : longint) : longint;
  3321. begin
  3322. MUIV_Window_TopEdge_Delta := (-3 - (p));
  3323. end;
  3324. function MUIV_Window_Width_MinMax(p : longint) : longint;
  3325. begin
  3326. MUIV_Window_Width_MinMax := 0 - p;
  3327. end;
  3328. function MUIV_Window_Width_Visible(p : longint) : longint;
  3329. begin
  3330. MUIV_Window_Width_Visible := (-100 - (p));
  3331. end;
  3332. function MUIV_Window_Width_Screen(p : longint) : longint;
  3333. begin
  3334. MUIV_Window_Width_Screen := (-200 - (p));
  3335. end;
  3336. {
  3337. Functions and procedures with array of longword go here
  3338. }
  3339. function MUI_AllocAslRequestTags(_type : longword; tags : array of LongWord) : POINTER;
  3340. begin
  3341. MUI_AllocAslRequestTags := MUI_AllocAslRequest(_type , @tags);
  3342. end;
  3343. function MUI_AslRequestTags(req : POINTER; tags : array of LongWord) : BOOLEAN;
  3344. begin
  3345. MUI_AslRequestTags := MUI_AslRequest(req , @tags);
  3346. end;
  3347. function MUI_MakeObject(_type : LONGINT; params : array of LongWord) : pLongWord; inline;
  3348. begin
  3349. MUI_MakeObject := MUI_MakeObjectA(_type , @params);
  3350. end;
  3351. function MUI_NewObject(a0arg : PChar; tags : array of LongWord) : pLongWord; inline;
  3352. begin
  3353. MUI_NewObject := MUI_NewObjectA(a0arg, @tags);
  3354. end;
  3355. function MUI_Request(app : POINTER; win : POINTER; flags : longword; title : pCHAR; gadgets : pCHAR; format : pCHAR; params : array of LongWord) : LONGINT;
  3356. begin
  3357. MUI_Request := MUI_RequestA(app , win , flags , title , gadgets , format , @params);
  3358. end;
  3359. function MAKE_ID(a,b,c,d : char): longword;
  3360. begin
  3361. MAKE_ID:=(byte(a) shl 24)+(byte(b) shl 16)+(byte(c) shl 8)+byte(d);
  3362. end;
  3363. //#define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
  3364. function MUIget(obj: pObject_; attr: longword; store: longword): longword;
  3365. begin
  3366. MUIget:=GetAttr(attr,obj,store);
  3367. end;
  3368. //#define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
  3369. function MUIset(obj: pObject_; attr: longword; value: longword): longword;
  3370. var args: array[0..2] of longword;
  3371. begin
  3372. args[0]:=attr;
  3373. args[1]:=value;
  3374. args[2]:=TAG_DONE;
  3375. MUIset:=SetAttrsA(obj,@args);
  3376. end;
  3377. const
  3378. { Change VERSION and LIBVERSION to proper values }
  3379. VERSION : string[2] = '19';
  3380. LIBVERSION : longword = MUIMASTER_VMIN;
  3381. var
  3382. muimaster_exit : Pointer;
  3383. procedure CloseMUIMasterLibrary;
  3384. begin
  3385. ExitProc := muimaster_exit;
  3386. if MUIMasterBase <> nil then begin
  3387. CloseLibrary(MUIMasterBase);
  3388. MUIMasterBase := nil;
  3389. end;
  3390. end;
  3391. function InitMUIMasterLibrary : boolean;
  3392. begin
  3393. MUIMasterBase := nil;
  3394. MUIMasterBase := OpenLibrary(MUIMASTER_NAME,LIBVERSION);
  3395. if MUIMasterBase <> nil then begin
  3396. muimaster_exit := ExitProc;
  3397. ExitProc := @CloseMUIMasterLibrary;
  3398. InitMUIMasterLibrary:=True;
  3399. end else begin
  3400. InitMUIMasterLibrary:=False;
  3401. end;
  3402. end;
  3403. end.