home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / gui / mui / developer / assembler / include / libraries / mui.i < prev   
Text File  |  1994-08-08  |  75KB  |  2,107 lines

  1. ****************************************************************************
  2. **
  3. ** MUI - MagicUserInterface
  4. ** (c) 1993 by Stefan Stuntz
  5. **
  6. ** Main Header File
  7. **
  8. *** Assembler modifications 26-Aug-93 by Henri Veisterä.
  9. **
  10. ****************************************************************************
  11. ** General Header File Information
  12. ****************************************************************************
  13. **
  14. ** All macro and structure definitions follow these rules:
  15. **
  16. ** Name                       Meaning
  17. **
  18. ** MUIC_<class>               Name of a class
  19. ** MUIM_<class>_<method>      Method
  20. ** MUIP_<class>_<method>      Methods parameter structure
  21. ** MUIV_<class>_<method>_<x>  Special method value
  22. ** MUIA_<class>_<attrib>      Attribute
  23. ** MUIV_<class>_<attrib>_<x>  Special attribute value
  24. ** MUIE_<error>               Error return code from MUI_Error()
  25. ** MUII_<name>                Standard MUI image
  26. **
  27. ** MUIA_... attribute definitions are followed by a comment
  28. ** consisting of the three possible letters I, S and G.
  29. ** I: it's possible to specify this attribute at object creation time.
  30. ** S: it's possible to change this attribute with SetAttrs().
  31. ** G: it's possible to get this attribute with GetAttr().
  32. **
  33.  
  34.  
  35.    IFND LIBRARIES_MUI_I
  36. LIBRARIES_MUI_I SET 1
  37.  
  38.    IFND EXEC_TYPES_I
  39.    INCLUDE "exec/types.i"
  40.    ENDC  ;EXEC_TYPES_I
  41.  
  42.    IFND INTUITION_CLASSES_I
  43.    INCLUDE "intuition/classes.i"
  44.    ENDC  ;INTUITION_CLASSES_I
  45.  
  46.    IFND INTUITION_SCREENS_I
  47.    INCLUDE "intuition/screens.i"
  48.    ENDC  ;INTUITION_SCREENS_I
  49.  
  50.    IFND UTILITY_HOOKS_I
  51.    INCLUDE "utility/hooks.i"
  52.    ENDC  ;UTILITY_HOOKS_I
  53.  
  54.  
  55.  
  56. ****************************************************************************
  57. ** Library specification
  58. ****************************************************************************
  59.  
  60. MUIMASTER_NAME MACRO
  61.          dc.b     "muimaster.library",0
  62.          even
  63.          ENDM
  64. MUIMASTER_VMIN EQU 4
  65. CALLMUI  MACRO   ; Func
  66.          move.l   _MUIMasterBase(pc),a6
  67.          jsr      _LVO\1(a6)
  68.          ENDM
  69. NULL     equ      0
  70. TRUE     equ      1
  71. FALSE    equ      NULL
  72.  
  73.  
  74. ****************************************************************************
  75. ** ARexx Interface
  76. ****************************************************************************
  77.  
  78.  STRUCTURE MUI_Command,0
  79.    APTR     mc_Name
  80.    APTR     mc_Template
  81.    LONG     mc_Parameters
  82.    STRUCT   mc_Hook,h_SIZEOF
  83.    STRUCT   mc_Reserved,4*5
  84.    LABEL    MUI_Command_SIZEOF
  85.  
  86. MC_TEMPLATE_ID EQU ~0
  87.  
  88.  
  89. ****************************************************************************
  90. ** Return values for MUI_Error()
  91. ****************************************************************************
  92.  
  93. MUIE_OK                    EQU 0
  94. MUIE_OutOfMemory           EQU 1
  95. MUIE_OutOfGfxMemory        EQU 2
  96. MUIE_InvalidWindowObject   EQU 3
  97. MUIE_MissingLibrary        EQU 4
  98. MUIE_NoARexx               EQU 5
  99. MUIE_SingleTask            EQU 6
  100.  
  101.  
  102.  
  103. ****************************************************************************
  104. ** Standard MUI Images
  105. ****************************************************************************
  106.  
  107. MUII_WindowBack      EQU 0
  108. MUII_RequesterBack   EQU 1
  109. MUII_ButtonBack      EQU 2
  110. MUII_ListBack        EQU 3
  111. MUII_TextBack        EQU 4
  112. MUII_PropBack        EQU 5
  113. MUII_PopupBack       EQU 6
  114. MUII_SelectedBack    EQU 7
  115. MUII_ListCursor      EQU 8
  116. MUII_ListSelect      EQU 9
  117. MUII_ListSelCur      EQU 10
  118. MUII_ArrowUp         EQU 11
  119. MUII_ArrowDown       EQU 12
  120. MUII_ArrowLeft       EQU 13
  121. MUII_ArrowRight      EQU 14
  122. MUII_CheckMark       EQU 15
  123. MUII_RadioButton     EQU 16
  124. MUII_Cycle           EQU 17
  125. MUII_PopUp           EQU 18
  126. MUII_PopFile         EQU 19
  127. MUII_PopDrawer       EQU 20
  128. MUII_PropKnob        EQU 21
  129. MUII_Drawer          EQU 22
  130. MUII_HardDisk        EQU 23
  131. MUII_Disk            EQU 24
  132. MUII_Chip            EQU 25
  133. MUII_Volume          EQU 26
  134. MUII_Count           EQU 27
  135.  
  136. MUII_BACKGROUND      EQU (128+0)
  137. MUII_SHADOW          EQU (128+1)
  138. MUII_SHINE           EQU (128+2)
  139. MUII_FILL            EQU (128+3)
  140. MUII_SHADOWBACK      EQU (128+4)
  141. MUII_SHADOWFILL      EQU (128+5)
  142. MUII_SHADOWSHINE     EQU (128+6)
  143. MUII_FILLBACK        EQU (128+7)
  144. MUII_FILLSHINE       EQU (128+8)
  145. MUII_SHINEBACK       EQU (128+9)
  146. MUII_FILLBACK2       EQU (128+10)
  147.  
  148.  
  149. ****************************************************************************
  150. ** Special values for some methods 
  151. ****************************************************************************
  152.  
  153. MUIV_TriggerValue       EQU $49893131
  154. MUIV_EveryTime          EQU $49893131
  155.  
  156. MUIV_Application_Save_ENV     EQU 0
  157. MUIV_Application_Save_ENVARC  EQU ~0
  158. MUIV_Application_Load_ENV     EQU 0
  159. MUIV_Application_Load_ENVARC  EQU ~0
  160.  
  161. MUIV_Application_ReturnID_Quit   EQU -1
  162.  
  163. MUIV_List_Insert_Top       EQU 0
  164. MUIV_List_Insert_Active    EQU -1
  165. MUIV_List_Insert_Sorted    EQU -2
  166. MUIV_List_Insert_Bottom    EQU -3
  167.  
  168. MUIV_List_Remove_First     EQU 0
  169. MUIV_List_Remove_Active    EQU -1
  170. MUIV_List_Remove_Last      EQU -2
  171.  
  172. MUIV_List_Select_Off       EQU 0
  173. MUIV_List_Select_On        EQU 1
  174. MUIV_List_Select_Toggle    EQU 2
  175. MUIV_List_Select_Ask       EQU 3
  176.  
  177. MUIV_List_Jump_Active      EQU -1
  178. MUIV_List_GetEntry_Active  EQU -1
  179. MUIV_List_Select_Active    EQU -1
  180.  
  181. MUIV_List_Redraw_Active    EQU -1
  182. MUIV_List_Redraw_All       EQU -2
  183.  
  184. MUIV_List_Exchange_Active  EQU -1
  185.  
  186.  
  187.  
  188.  
  189. ;****************************************************************************
  190. ;** Notify                                                                 **
  191. ;****************************************************************************
  192.  
  193. ;** Methods **
  194.  
  195. MUIM_CallHook                  EQU $8042b96b ;** V4 **
  196. MUIM_FindUData                 EQU $8042c196 ;** V8 **
  197. MUIM_GetUData                  EQU $8042ed0c ;** V8 **
  198. MUIM_KillNotify                EQU $8042d240 ;** V4 **
  199. MUIM_MultiSet                  EQU $8042d356 ;** V7 **
  200. MUIM_NoNotifySet               EQU $8042216f ;** V9 **
  201. MUIM_Notify                    EQU $8042c9cb ;** V4 **
  202. MUIM_Set                       EQU $8042549a ;** V4 **
  203. MUIM_SetAsString               EQU $80422590 ;** V4 **
  204. MUIM_SetUData                  EQU $8042c920 ;** V8 **
  205. MUIM_WriteLong                 EQU $80428d86 ;** V6 **
  206. MUIM_WriteString               EQU $80424bf4 ;** V6 **
  207.  
  208. ;** Attributes **
  209.  
  210. MUIA_AppMessage                 EQU $80421955 ;** V5 ..g struct AppMessage * **
  211. MUIA_HelpFile                   EQU $80423a6e ;** V4 isg STRPTR            **
  212. MUIA_HelpLine                   EQU $8042a825 ;** V4 isg LONG              **
  213. MUIA_HelpNode                   EQU $80420b85 ;** V4 isg STRPTR            **
  214. MUIA_NoNotify                   EQU $804237f9 ;** V7 .s. BOOL              **
  215. MUIA_Revision                   EQU $80427eaa ;** V4 ..g LONG              **
  216. MUIA_UserData                   EQU $80420313 ;** V4 isg ULONG             **
  217. MUIA_Version                    EQU $80422301 ;** V4 ..g LONG              **
  218.  
  219.  
  220.  
  221. ;****************************************************************************
  222. ;** Family                                                                 **
  223. ;****************************************************************************
  224.  
  225. ;** Methods **
  226.  
  227. MUIM_Family_AddHead            EQU $8042e200 ;** V8 **
  228. MUIM_Family_AddTail            EQU $8042d752 ;** V8 **
  229. MUIM_Family_Insert             EQU $80424d34 ;** V8 **
  230. MUIM_Family_Remove             EQU $8042f8a9 ;** V8 **
  231. MUIM_Family_Sort               EQU $80421c49 ;** V8 **
  232. MUIM_Family_Transfer           EQU $8042c14a ;** V8 **
  233.  
  234. ;** Attributes **
  235.  
  236. MUIA_Family_Child               EQU $8042c696 ;** V8 i.. Object *          **
  237.  
  238.  
  239.  
  240. ;****************************************************************************
  241. ;** Menustrip                                                              **
  242. ;****************************************************************************
  243.  
  244. ;** Methods **
  245.  
  246.  
  247. ;** Attributes **
  248.  
  249. MUIA_Menustrip_Enabled          EQU $8042815b ;** V8 isg BOOL              **
  250.  
  251.  
  252.  
  253. ;****************************************************************************
  254. ;** Menu                                                                   **
  255. ;****************************************************************************
  256.  
  257. ;** Methods **
  258.  
  259.  
  260. ;** Attributes **
  261.  
  262. MUIA_Menu_Enabled               EQU $8042ed48 ;** V8 isg BOOL              **
  263. MUIA_Menu_Title                 EQU $8042a0e3 ;** V8 isg STRPTR            **
  264.  
  265.  
  266.  
  267. ;****************************************************************************
  268. ;** Menuitem                                                               **
  269. ;****************************************************************************
  270.  
  271. ;** Methods **
  272.  
  273.  
  274. ;** Attributes **
  275.  
  276. MUIA_Menuitem_Checked           EQU $8042562a ;** V8 isg BOOL              **
  277. MUIA_Menuitem_Checkit           EQU $80425ace ;** V8 isg BOOL              **
  278. MUIA_Menuitem_Enabled           EQU $8042ae0f ;** V8 isg BOOL              **
  279. MUIA_Menuitem_Exclude           EQU $80420bc6 ;** V8 isg LONG              **
  280. MUIA_Menuitem_Shortcut          EQU $80422030 ;** V8 isg char              **
  281. MUIA_Menuitem_Title             EQU $804218be ;** V8 isg STRPTR            **
  282. MUIA_Menuitem_Toggle            EQU $80424d5c ;** V8 isg BOOL              **
  283. MUIA_Menuitem_Trigger           EQU $80426f32 ;** V8 ..g struct MenuItem * **
  284.  
  285.  
  286.  
  287. ;****************************************************************************
  288. ;** Application                                                            **
  289. ;****************************************************************************
  290.  
  291. ;** Methods **
  292.  
  293. MUIM_Application_GetMenuCheck  EQU $8042c0a7 ;** V4 **
  294. MUIM_Application_GetMenuState  EQU $8042a58f ;** V4 **
  295. MUIM_Application_Input         EQU $8042d0f5 ;** V4 **
  296. MUIM_Application_InputBuffered EQU $80427e59 ;** V4 **
  297. MUIM_Application_Load          EQU $8042f90d ;** V4 **
  298. MUIM_Application_PushMethod    EQU $80429ef8 ;** V4 **
  299. MUIM_Application_ReturnID      EQU $804276ef ;** V4 **
  300. MUIM_Application_Save          EQU $804227ef ;** V4 **
  301. MUIM_Application_SetMenuCheck  EQU $8042a707 ;** V4 **
  302. MUIM_Application_SetMenuState  EQU $80428bef ;** V4 **
  303. MUIM_Application_ShowHelp      EQU $80426479 ;** V4 **
  304.  
  305. ;** Attributes **
  306.  
  307. MUIA_Application_Active         EQU $804260ab ;** V4 isg BOOL              **
  308. MUIA_Application_Author         EQU $80424842 ;** V4 i.g STRPTR            **
  309. MUIA_Application_Base           EQU $8042e07a ;** V4 i.g STRPTR            **
  310. MUIA_Application_Broker         EQU $8042dbce ;** V4 ..g Broker *          **
  311. MUIA_Application_BrokerHook     EQU $80428f4b ;** V4 isg struct Hook *     **
  312. MUIA_Application_BrokerPort     EQU $8042e0ad ;** V6 ..g struct MsgPort *  **
  313. MUIA_Application_BrokerPri      EQU $8042c8d0 ;** V6 i.g LONG              **
  314. MUIA_Application_Commands       EQU $80428648 ;** V4 isg struct MUI_Command * **
  315. MUIA_Application_Copyright      EQU $8042ef4d ;** V4 i.g STRPTR            **
  316. MUIA_Application_Description    EQU $80421fc6 ;** V4 i.g STRPTR            **
  317. MUIA_Application_DiskObject     EQU $804235cb ;** V4 isg struct DiskObject * **
  318. MUIA_Application_DoubleStart    EQU $80423bc6 ;** V4 ..g BOOL              **
  319. MUIA_Application_DropObject     EQU $80421266 ;** V5 is. Object *          **
  320. MUIA_Application_ForceQuit      EQU $804257df ;** V8 ..g BOOL              **
  321. MUIA_Application_HelpFile       EQU $804293f4 ;** V8 isg STRPTR            **
  322. MUIA_Application_Iconified      EQU $8042a07f ;** V4 .sg BOOL              **
  323. MUIA_Application_Menu           EQU $80420e1f ;** V4 i.g struct NewMenu *  **
  324. MUIA_Application_MenuAction     EQU $80428961 ;** V4 ..g ULONG             **
  325. MUIA_Application_MenuHelp       EQU $8042540b ;** V4 ..g ULONG             **
  326. MUIA_Application_Menustrip      EQU $804252d9 ;** V8 i.. Object *          **
  327. MUIA_Application_RexxHook       EQU $80427c42 ;** V7 isg struct Hook *     **
  328. MUIA_Application_RexxMsg        EQU $8042fd88 ;** V4 ..g struct RxMsg *    **
  329. MUIA_Application_RexxString     EQU $8042d711 ;** V4 .s. STRPTR            **
  330. MUIA_Application_SingleTask     EQU $8042a2c8 ;** V4 i.. BOOL              **
  331. MUIA_Application_Sleep          EQU $80425711 ;** V4 .s. BOOL              **
  332. MUIA_Application_Title          EQU $804281b8 ;** V4 i.g STRPTR            **
  333. MUIA_Application_Version        EQU $8042b33f ;** V4 i.g STRPTR            **
  334. MUIA_Application_Window         EQU $8042bfe0 ;** V4 i.. Object *          **
  335.  
  336.  
  337.  
  338. ;****************************************************************************
  339. ;** Window                                                                 **
  340. ;****************************************************************************
  341.  
  342. ;** Methods **
  343.  
  344. MUIM_Window_GetMenuCheck       EQU $80420414 ;** V4 **
  345. MUIM_Window_GetMenuState       EQU $80420d2f ;** V4 **
  346. MUIM_Window_ScreenToBack       EQU $8042913d ;** V4 **
  347. MUIM_Window_ScreenToFront      EQU $804227a4 ;** V4 **
  348. MUIM_Window_SetCycleChain      EQU $80426510 ;** V4 **
  349. MUIM_Window_SetMenuCheck       EQU $80422243 ;** V4 **
  350. MUIM_Window_SetMenuState       EQU $80422b5e ;** V4 **
  351. MUIM_Window_ToBack             EQU $8042152e ;** V4 **
  352. MUIM_Window_ToFront            EQU $8042554f ;** V4 **
  353.  
  354. ;** Attributes **
  355.  
  356. MUIA_Window_Activate            EQU $80428d2f ;** V4 isg BOOL              **
  357. MUIA_Window_ActiveObject        EQU $80427925 ;** V4 .sg Object *          **
  358. MUIA_Window_AltHeight           EQU $8042cce3 ;** V4 i.g LONG              **
  359. MUIA_Window_AltLeftEdge         EQU $80422d65 ;** V4 i.g LONG              **
  360. MUIA_Window_AltTopEdge          EQU $8042e99b ;** V4 i.g LONG              **
  361. MUIA_Window_AltWidth            EQU $804260f4 ;** V4 i.g LONG              **
  362. MUIA_Window_AppWindow           EQU $804280cf ;** V5 i.. BOOL              **
  363. MUIA_Window_Backdrop            EQU $8042c0bb ;** V4 i.. BOOL              **
  364. MUIA_Window_Borderless          EQU $80429b79 ;** V4 i.. BOOL              **
  365. MUIA_Window_CloseGadget         EQU $8042a110 ;** V4 i.. BOOL              **
  366. MUIA_Window_CloseRequest        EQU $8042e86e ;** V4 ..g BOOL              **
  367. MUIA_Window_DefaultObject       EQU $804294d7 ;** V4 isg Object *          **
  368. MUIA_Window_DepthGadget         EQU $80421923 ;** V4 i.. BOOL              **
  369. MUIA_Window_DragBar             EQU $8042045d ;** V4 i.. BOOL              **
  370. MUIA_Window_FancyDrawing        EQU $8042bd0e ;** V8 isg BOOL              **
  371. MUIA_Window_Height              EQU $80425846 ;** V4 i.g LONG              **
  372. MUIA_Window_ID                  EQU $804201bd ;** V4 isg ULONG             **
  373. MUIA_Window_InputEvent          EQU $804247d8 ;** V4 ..g struct InputEvent * **
  374. MUIA_Window_LeftEdge            EQU $80426c65 ;** V4 i.g LONG              **
  375. MUIA_Window_Menu                EQU $8042db94 ;** V4 i.. struct NewMenu *  **
  376. MUIA_Window_MenuAction          EQU $80427521 ;** V8 isg ULONG             **
  377. MUIA_Window_Menustrip           EQU $8042855e ;** V8 i.. Object *          **
  378. MUIA_Window_NoMenus             EQU $80429df5 ;** V4 is. BOOL              **
  379. MUIA_Window_Open                EQU $80428aa0 ;** V4 .sg BOOL              **
  380. MUIA_Window_PublicScreen        EQU $804278e4 ;** V6 isg STRPTR            **
  381. MUIA_Window_RefWindow           EQU $804201f4 ;** V4 is. Object *          **
  382. MUIA_Window_RootObject          EQU $8042cba5 ;** V4 i.. Object *          **
  383. MUIA_Window_Screen              EQU $8042df4f ;** V4 isg struct Screen *   **
  384. MUIA_Window_ScreenTitle         EQU $804234b0 ;** V5 isg STRPTR            **
  385. MUIA_Window_SizeGadget          EQU $8042e33d ;** V4 i.. BOOL              **
  386. MUIA_Window_SizeRight           EQU $80424780 ;** V4 i.. BOOL              **
  387. MUIA_Window_Sleep               EQU $8042e7db ;** V4 .sg BOOL              **
  388. MUIA_Window_Title               EQU $8042ad3d ;** V4 isg STRPTR            **
  389. MUIA_Window_TopEdge             EQU $80427c66 ;** V4 i.g LONG              **
  390. MUIA_Window_Width               EQU $8042dcae ;** V4 i.g LONG              **
  391. MUIA_Window_Window              EQU $80426a42 ;** V4 ..g struct Window *   **
  392.  
  393. MUIV_Window_ActiveObjectNone    EQU 0
  394. MUIV_Window_ActiveObjectNext    EQU -1
  395. MUIV_Window_ActiveObjectPrev    EQU -2
  396. MUIV_Window_AltHeightMinMax     EQU 0
  397. MUIV_Window_AltHeightVisible    EQU -100
  398. MUIV_Window_AltHeightScreen     EQU -200
  399. MUIV_Window_AltHeightScaled     EQU -1000
  400. MUIV_Window_AltLeftEdgeCentered EQU -1
  401. MUIV_Window_AltLeftEdgeMoused   EQU -2
  402. MUIV_Window_AltLeftEdgeNoChange EQU -1000
  403. MUIV_Window_AltTopEdgeCentered  EQU -1
  404. MUIV_Window_AltTopEdgeMoused    EQU -2
  405. MUIV_Window_AltTopEdgeDelta     EQU -3
  406. MUIV_Window_AltTopEdgeNoChange  EQU -1000
  407. MUIV_Window_AltWidthMinMax      EQU 0
  408. MUIV_Window_AltWidthVisible     EQU -100
  409. MUIV_Window_AltWidthScreen      EQU -200
  410. MUIV_Window_AltWidthScaled      EQU -1000
  411. MUIV_Window_HeightMinMax        EQU 0
  412. MUIV_Window_HeightVisible       EQU -100
  413. MUIV_Window_HeightScreen        EQU -200
  414. MUIV_Window_HeightScaled        EQU -1000
  415. MUIV_Window_HeightDefault       EQU -1001
  416. MUIV_Window_LeftEdgeCentered    EQU -1
  417. MUIV_Window_LeftEdgeMoused      EQU -2
  418. MUIV_Window_MenuNoMenu          EQU -1
  419. MUIV_Window_TopEdgeCentered     EQU -1
  420. MUIV_Window_TopEdgeMoused       EQU -2
  421. MUIV_Window_TopEdgeDelta        EQU -3
  422. MUIV_Window_WidthMinMax         EQU 0
  423. MUIV_Window_WidthVisible        EQU -100
  424. MUIV_Window_WidthScreen         EQU -200
  425. MUIV_Window_WidthScaled         EQU -1000
  426. MUIV_Window_WidthDefault        EQU -1001
  427.  
  428.  
  429. ;****************************************************************************
  430. ;** Area                                                                   **
  431. ;****************************************************************************
  432.  
  433. ;** Methods **
  434.  
  435. MUIM_AskMinMax                 EQU $80423874 ;** V4 **
  436. MUIM_Cleanup                   EQU $8042d985 ;** V4 **
  437. MUIM_Draw                      EQU $80426f3f ;** V4 **
  438. MUIM_HandleInput               EQU $80422a1a ;** V4 **
  439. MUIM_Hide                      EQU $8042f20f ;** V4 **
  440. MUIM_Setup                     EQU $80428354 ;** V4 **
  441. MUIM_Show                      EQU $8042cc84 ;** V4 **
  442.  
  443. ;** Attributes **
  444.  
  445. MUIA_ApplicationObject          EQU $8042d3ee ;** V4 ..g Object *          **
  446. MUIA_Background                 EQU $8042545b ;** V4 is. LONG              **
  447. MUIA_BottomEdge                 EQU $8042e552 ;** V4 ..g LONG              **
  448. MUIA_ControlChar                EQU $8042120b ;** V4 i.. char              **
  449. MUIA_Disabled                   EQU $80423661 ;** V4 isg BOOL              **
  450. MUIA_ExportID                   EQU $8042d76e ;** V4 isg LONG              **
  451. MUIA_FixHeight                  EQU $8042a92b ;** V4 i.. LONG              **
  452. MUIA_FixHeightTxt               EQU $804276f2 ;** V4 i.. LONG              **
  453. MUIA_FixWidth                   EQU $8042a3f1 ;** V4 i.. LONG              **
  454. MUIA_FixWidthTxt                EQU $8042d044 ;** V4 i.. STRPTR            **
  455. MUIA_Font                       EQU $8042be50 ;** V4 i.g struct TextFont * **
  456. MUIA_Frame                      EQU $8042ac64 ;** V4 i.. LONG              **
  457. MUIA_FramePhantomHoriz          EQU $8042ed76 ;** V4 i.. BOOL              **
  458. MUIA_FrameTitle                 EQU $8042d1c7 ;** V4 i.. STRPTR            **
  459. MUIA_Height                     EQU $80423237 ;** V4 ..g LONG              **
  460. MUIA_HorizWeight                EQU $80426db9 ;** V4 i.. LONG              **
  461. MUIA_InnerBottom                EQU $8042f2c0 ;** V4 i.. LONG              **
  462. MUIA_InnerLeft                  EQU $804228f8 ;** V4 i.. LONG              **
  463. MUIA_InnerRight                 EQU $804297ff ;** V4 i.. LONG              **
  464. MUIA_InnerTop                   EQU $80421eb6 ;** V4 i.. LONG              **
  465. MUIA_InputMode                  EQU $8042fb04 ;** V4 i.. LONG              **
  466. MUIA_LeftEdge                   EQU $8042bec6 ;** V4 ..g LONG              **
  467. MUIA_Pressed                    EQU $80423535 ;** V4 ..g BOOL              **
  468. MUIA_RightEdge                  EQU $8042ba82 ;** V4 ..g LONG              **
  469. MUIA_Selected                   EQU $8042654b ;** V4 isg BOOL              **
  470. MUIA_ShowMe                     EQU $80429ba8 ;** V4 isg BOOL              **
  471. MUIA_ShowSelState               EQU $8042caac ;** V4 i.. BOOL              **
  472. MUIA_Timer                      EQU $80426435 ;** V4 ..g LONG              **
  473. MUIA_TopEdge                    EQU $8042509b ;** V4 ..g LONG              **
  474. MUIA_VertWeight                 EQU $804298d0 ;** V4 i.. LONG              **
  475. MUIA_Weight                     EQU $80421d1f ;** V4 i.. LONG              **
  476. MUIA_Width                      EQU $8042b59c ;** V4 ..g LONG              **
  477. MUIA_Window                     EQU $80421591 ;** V4 ..g struct Window *   **
  478. MUIA_WindowObject               EQU $8042669e ;** V4 ..g Object *          **
  479.  
  480. MUIV_FontInherit                EQU 0
  481. MUIV_FontNormal                 EQU -1
  482. MUIV_FontList                   EQU -2
  483. MUIV_FontTiny                   EQU -3
  484. MUIV_FontFixed                  EQU -4
  485. MUIV_FontTitle                  EQU -5
  486. MUIV_FontBig                    EQU -6
  487. MUIV_FrameNone                  EQU 0
  488. MUIV_FrameButton                EQU 1
  489. MUIV_FrameImageButton           EQU 2
  490. MUIV_FrameText                  EQU 3
  491. MUIV_FrameString                EQU 4
  492. MUIV_FrameReadList              EQU 5
  493. MUIV_FrameInputList             EQU 6
  494. MUIV_FrameProp                  EQU 7
  495. MUIV_FrameGauge                 EQU 8
  496. MUIV_FrameGroup                 EQU 9
  497. MUIV_FramePopUp                 EQU 10
  498. MUIV_FrameVirtual               EQU 11
  499. MUIV_FrameSlider                EQU 12
  500. MUIV_FrameCount                 EQU 13
  501. MUIV_InputModeNone              EQU 0
  502. MUIV_InputModeRelVerify         EQU 1
  503. MUIV_InputModeImmediate         EQU 2
  504. MUIV_InputModeToggle            EQU 3
  505.  
  506.  
  507. ;****************************************************************************
  508. ;** Rectangle                                                              **
  509. ;****************************************************************************
  510.  
  511. ;** Attributes **
  512.  
  513. MUIA_Rectangle_HBar             EQU $8042c943 ;** V7 i.g BOOL              **
  514. MUIA_Rectangle_VBar             EQU $80422204 ;** V7 i.g BOOL              **
  515.  
  516.  
  517.  
  518. ;****************************************************************************
  519. ;** Image                                                                  **
  520. ;****************************************************************************
  521.  
  522. ;** Attributes **
  523.  
  524. MUIA_Image_FontMatch            EQU $8042815d ;** V4 i.. BOOL              **
  525. MUIA_Image_FontMatchHeight      EQU $80429f26 ;** V4 i.. BOOL              **
  526. MUIA_Image_FontMatchWidth       EQU $804239bf ;** V4 i.. BOOL              **
  527. MUIA_Image_FreeHoriz            EQU $8042da84 ;** V4 i.. BOOL              **
  528. MUIA_Image_FreeVert             EQU $8042ea28 ;** V4 i.. BOOL              **
  529. MUIA_Image_OldImage             EQU $80424f3d ;** V4 i.. struct Image *    **
  530. MUIA_Image_Spec                 EQU $804233d5 ;** V4 i.. char *            **
  531. MUIA_Image_State                EQU $8042a3ad ;** V4 is. LONG              **
  532.  
  533.  
  534.  
  535. ;****************************************************************************
  536. ;** Bitmap                                                                 **
  537. ;****************************************************************************
  538.  
  539. ;** Attributes **
  540.  
  541. MUIA_Bitmap_Bitmap              EQU $804279bd ;** V8 isg struct BitMap *   **
  542. MUIA_Bitmap_Height              EQU $80421560 ;** V8 isg LONG              **
  543. MUIA_Bitmap_MappingTable        EQU $8042e23d ;** V8 isg UBYTE *           **
  544. MUIA_Bitmap_SourceColors        EQU $80425360 ;** V8 isg ULONG *           **
  545. MUIA_Bitmap_Transparent         EQU $80422805 ;** V8 isg LONG              **
  546. MUIA_Bitmap_Width               EQU $8042eb3a ;** V8 isg LONG              **
  547.  
  548.  
  549.  
  550. ;****************************************************************************
  551. ;** Bodychunk                                                              **
  552. ;****************************************************************************
  553.  
  554. ;** Attributes **
  555.  
  556. MUIA_Bodychunk_Body             EQU $8042ca67 ;** V8 isg UBYTE *           **
  557. MUIA_Bodychunk_Compression      EQU $8042de5f ;** V8 isg UBYTE             **
  558. MUIA_Bodychunk_Depth            EQU $8042c392 ;** V8 isg LONG              **
  559. MUIA_Bodychunk_Masking          EQU $80423b0e ;** V8 isg UBYTE             **
  560.  
  561.  
  562.  
  563. ;****************************************************************************
  564. ;** Text                                                                   **
  565. ;****************************************************************************
  566.  
  567. ;** Attributes **
  568.  
  569. MUIA_Text_Contents              EQU $8042f8dc ;** V4 isg STRPTR            **
  570. MUIA_Text_HiChar                EQU $804218ff ;** V4 i.. char              **
  571. MUIA_Text_PreParse              EQU $8042566d ;** V4 isg STRPTR            **
  572. MUIA_Text_SetMax                EQU $80424d0a ;** V4 i.. BOOL              **
  573. MUIA_Text_SetMin                EQU $80424e10 ;** V4 i.. BOOL              **
  574.  
  575.  
  576.  
  577. ;****************************************************************************
  578. ;** String                                                                 **
  579. ;****************************************************************************
  580.  
  581. ;** Attributes **
  582.  
  583. MUIA_String_Accept              EQU $8042e3e1 ;** V4 isg STRPTR            **
  584. MUIA_String_Acknowledge         EQU $8042026c ;** V4 ..g STRPTR            **
  585. MUIA_String_AttachedList        EQU $80420fd2 ;** V4 i.. Object *          **
  586. MUIA_String_BufferPos           EQU $80428b6c ;** V4 .sg LONG              **
  587. MUIA_String_Contents            EQU $80428ffd ;** V4 isg STRPTR            **
  588. MUIA_String_DisplayPos          EQU $8042ccbf ;** V4 .sg LONG              **
  589. MUIA_String_EditHook            EQU $80424c33 ;** V7 isg struct Hook *     **
  590. MUIA_String_Format              EQU $80427484 ;** V4 i.g LONG              **
  591. MUIA_String_Integer             EQU $80426e8a ;** V4 isg ULONG             **
  592. MUIA_String_MaxLen              EQU $80424984 ;** V4 i.. LONG              **
  593. MUIA_String_Reject              EQU $8042179c ;** V4 isg STRPTR            **
  594. MUIA_String_Secret              EQU $80428769 ;** V4 i.g BOOL              **
  595.  
  596. MUIV_String_FormatLeft          EQU 0
  597. MUIV_String_FormatCenter        EQU 1
  598. MUIV_String_FormatRight         EQU 2
  599.  
  600.  
  601. ;****************************************************************************
  602. ;** Prop                                                                   **
  603. ;****************************************************************************
  604.  
  605. ;** Attributes **
  606.  
  607. MUIA_Prop_Entries               EQU $8042fbdb ;** V4 isg LONG              **
  608. MUIA_Prop_First                 EQU $8042d4b2 ;** V4 isg LONG              **
  609. MUIA_Prop_Horiz                 EQU $8042f4f3 ;** V4 i.g BOOL              **
  610. MUIA_Prop_Slider                EQU $80429c3a ;** V4 isg BOOL              **
  611. MUIA_Prop_Visible               EQU $8042fea6 ;** V4 isg LONG              **
  612.  
  613.  
  614.  
  615. ;****************************************************************************
  616. ;** Gauge                                                                  **
  617. ;****************************************************************************
  618.  
  619. ;** Attributes **
  620.  
  621. MUIA_Gauge_Current              EQU $8042f0dd ;** V4 isg LONG              **
  622. MUIA_Gauge_Divide               EQU $8042d8df ;** V4 isg BOOL              **
  623. MUIA_Gauge_Horiz                EQU $804232dd ;** V4 i.. BOOL              **
  624. MUIA_Gauge_InfoText             EQU $8042bf15 ;** V7 isg char *            **
  625. MUIA_Gauge_Max                  EQU $8042bcdb ;** V4 isg LONG              **
  626.  
  627.  
  628.  
  629. ;****************************************************************************
  630. ;** Scale                                                                  **
  631. ;****************************************************************************
  632.  
  633. ;** Attributes **
  634.  
  635. MUIA_Scale_Horiz                EQU $8042919a ;** V4 isg BOOL              **
  636.  
  637.  
  638.  
  639. ;****************************************************************************
  640. ;** Boopsi                                                                 **
  641. ;****************************************************************************
  642.  
  643. ;** Attributes **
  644.  
  645. MUIA_Boopsi_Class               EQU $80426999 ;** V4 isg struct IClass *   **
  646. MUIA_Boopsi_ClassID             EQU $8042bfa3 ;** V4 isg char *            **
  647. MUIA_Boopsi_MaxHeight           EQU $8042757f ;** V4 isg ULONG             **
  648. MUIA_Boopsi_MaxWidth            EQU $8042bcb1 ;** V4 isg ULONG             **
  649. MUIA_Boopsi_MinHeight           EQU $80422c93 ;** V4 isg ULONG             **
  650. MUIA_Boopsi_MinWidth            EQU $80428fb2 ;** V4 isg ULONG             **
  651. MUIA_Boopsi_Object              EQU $80420178 ;** V4 ..g Object *          **
  652. MUIA_Boopsi_Remember            EQU $8042f4bd ;** V4 i.. ULONG             **
  653. MUIA_Boopsi_TagDrawInfo         EQU $8042bae7 ;** V4 isg ULONG             **
  654. MUIA_Boopsi_TagScreen           EQU $8042bc71 ;** V4 isg ULONG             **
  655. MUIA_Boopsi_TagWindow           EQU $8042e11d ;** V4 isg ULONG             **
  656.  
  657.  
  658.  
  659. ;****************************************************************************
  660. ;** Colorfield                                                             **
  661. ;****************************************************************************
  662.  
  663. ;** Attributes **
  664.  
  665. MUIA_Colorfield_Blue            EQU $8042d3b0 ;** V4 isg ULONG             **
  666. MUIA_Colorfield_Green           EQU $80424466 ;** V4 isg ULONG             **
  667. MUIA_Colorfield_Pen             EQU $8042713a ;** V4 ..g ULONG             **
  668. MUIA_Colorfield_Red             EQU $804279f6 ;** V4 isg ULONG             **
  669. MUIA_Colorfield_RGB             EQU $8042677a ;** V4 isg ULONG *           **
  670.  
  671.  
  672.  
  673. ;****************************************************************************
  674. ;** List                                                                   **
  675. ;****************************************************************************
  676.  
  677. ;** Methods **
  678.  
  679. MUIM_List_Clear                EQU $8042ad89 ;** V4 **
  680. MUIM_List_Exchange             EQU $8042468c ;** V4 **
  681. MUIM_List_GetEntry             EQU $804280ec ;** V4 **
  682. MUIM_List_Insert               EQU $80426c87 ;** V4 **
  683. MUIM_List_InsertSingle         EQU $804254d5 ;** V7 **
  684. MUIM_List_Jump                 EQU $8042baab ;** V4 **
  685. MUIM_List_Move                 EQU $804253c2 ;** V9 **
  686. MUIM_List_NextSelected         EQU $80425f17 ;** V6 **
  687. MUIM_List_Redraw               EQU $80427993 ;** V4 **
  688. MUIM_List_Remove               EQU $8042647e ;** V4 **
  689. MUIM_List_Select               EQU $804252d8 ;** V4 **
  690. MUIM_List_Sort                 EQU $80422275 ;** V4 **
  691.  
  692. ;** Attributes **
  693.  
  694. MUIA_List_Active                EQU $8042391c ;** V4 isg LONG              **
  695. MUIA_List_AdjustHeight          EQU $8042850d ;** V4 i.. BOOL              **
  696. MUIA_List_AdjustWidth           EQU $8042354a ;** V4 i.. BOOL              **
  697. MUIA_List_CompareHook           EQU $80425c14 ;** V4 is. struct Hook *     **
  698. MUIA_List_ConstructHook         EQU $8042894f ;** V4 is. struct Hook *     **
  699. MUIA_List_DestructHook          EQU $804297ce ;** V4 is. struct Hook *     **
  700. MUIA_List_DisplayHook           EQU $8042b4d5 ;** V4 is. struct Hook *     **
  701. MUIA_List_Entries               EQU $80421654 ;** V4 ..g LONG              **
  702. MUIA_List_First                 EQU $804238d4 ;** V4 ..g LONG              **
  703. MUIA_List_Format                EQU $80423c0a ;** V4 isg STRPTR            **
  704. MUIA_List_InsertPosition        EQU $8042d0cd ;** V9 ..g LONG              **
  705. MUIA_List_MultiTestHook         EQU $8042c2c6 ;** V4 is. struct Hook *     **
  706. MUIA_List_Quiet                 EQU $8042d8c7 ;** V4 .s. BOOL              **
  707. MUIA_List_SourceArray           EQU $8042c0a0 ;** V4 i.. APTR              **
  708. MUIA_List_Title                 EQU $80423e66 ;** V6 isg char *            **
  709. MUIA_List_Visible               EQU $8042191f ;** V4 ..g LONG              **
  710.  
  711. MUIV_List_ActiveOff             EQU -1
  712. MUIV_List_ActiveTop             EQU -2
  713. MUIV_List_ActiveBottom          EQU -3
  714. MUIV_List_ActiveUp              EQU -4
  715. MUIV_List_ActiveDown            EQU -5
  716. MUIV_List_ActivePageUp          EQU -6
  717. MUIV_List_ActivePageDown        EQU -7
  718. MUIV_List_ConstructHookString   EQU -1
  719. MUIV_List_DestructHookString    EQU -1
  720.  
  721.  
  722. ;****************************************************************************
  723. ;** Floattext                                                              **
  724. ;****************************************************************************
  725.  
  726. ;** Attributes **
  727.  
  728. MUIA_Floattext_Justify          EQU $8042dc03 ;** V4 isg BOOL              **
  729. MUIA_Floattext_SkipChars        EQU $80425c7d ;** V4 is. STRPTR            **
  730. MUIA_Floattext_TabSize          EQU $80427d17 ;** V4 is. LONG              **
  731. MUIA_Floattext_Text             EQU $8042d16a ;** V4 isg STRPTR            **
  732.  
  733.  
  734.  
  735. ;****************************************************************************
  736. ;** Volumelist                                                             **
  737. ;****************************************************************************
  738.  
  739.  
  740. ;****************************************************************************
  741. ;** Scrmodelist                                                            **
  742. ;****************************************************************************
  743.  
  744. ;** Attributes **
  745.  
  746.  
  747.  
  748.  
  749. ;****************************************************************************
  750. ;** Dirlist                                                                **
  751. ;****************************************************************************
  752.  
  753. ;** Methods **
  754.  
  755. MUIM_Dirlist_ReRead            EQU $80422d71 ;** V4 **
  756.  
  757. ;** Attributes **
  758.  
  759. MUIA_Dirlist_AcceptPattern      EQU $8042760a ;** V4 is. STRPTR            **
  760. MUIA_Dirlist_Directory          EQU $8042ea41 ;** V4 is. STRPTR            **
  761. MUIA_Dirlist_DrawersOnly        EQU $8042b379 ;** V4 is. BOOL              **
  762. MUIA_Dirlist_FilesOnly          EQU $8042896a ;** V4 is. BOOL              **
  763. MUIA_Dirlist_FilterDrawers      EQU $80424ad2 ;** V4 is. BOOL              **
  764. MUIA_Dirlist_FilterHook         EQU $8042ae19 ;** V4 is. struct Hook *     **
  765. MUIA_Dirlist_MultiSelDirs       EQU $80428653 ;** V6 is. BOOL              **
  766. MUIA_Dirlist_NumBytes           EQU $80429e26 ;** V4 ..g LONG              **
  767. MUIA_Dirlist_NumDrawers         EQU $80429cb8 ;** V4 ..g LONG              **
  768. MUIA_Dirlist_NumFiles           EQU $8042a6f0 ;** V4 ..g LONG              **
  769. MUIA_Dirlist_Path               EQU $80426176 ;** V4 ..g STRPTR            **
  770. MUIA_Dirlist_RejectIcons        EQU $80424808 ;** V4 is. BOOL              **
  771. MUIA_Dirlist_RejectPattern      EQU $804259c7 ;** V4 is. STRPTR            **
  772. MUIA_Dirlist_SortDirs           EQU $8042bbb9 ;** V4 is. LONG              **
  773. MUIA_Dirlist_SortHighLow        EQU $80421896 ;** V4 is. BOOL              **
  774. MUIA_Dirlist_SortType           EQU $804228bc ;** V4 is. LONG              **
  775. MUIA_Dirlist_Status             EQU $804240de ;** V4 ..g LONG              **
  776.  
  777. MUIV_Dirlist_SortDirsFirst      EQU 0
  778. MUIV_Dirlist_SortDirsLast       EQU 1
  779. MUIV_Dirlist_SortDirsMix        EQU 2
  780. MUIV_Dirlist_SortTypeName       EQU 0
  781. MUIV_Dirlist_SortTypeDate       EQU 1
  782. MUIV_Dirlist_SortTypeSize       EQU 2
  783. MUIV_Dirlist_StatusInvalid      EQU 0
  784. MUIV_Dirlist_StatusReading      EQU 1
  785. MUIV_Dirlist_StatusValid        EQU 2
  786.  
  787.  
  788. ;****************************************************************************
  789. ;** Group                                                                  **
  790. ;****************************************************************************
  791.  
  792. ;** Methods **
  793.  
  794.  
  795. ;** Attributes **
  796.  
  797. MUIA_Group_ActivePage           EQU $80424199 ;** V5 isg LONG              **
  798. MUIA_Group_Child                EQU $804226e6 ;** V4 i.. Object *          **
  799. MUIA_Group_Columns              EQU $8042f416 ;** V4 is. LONG              **
  800. MUIA_Group_Horiz                EQU $8042536b ;** V4 i.. BOOL              **
  801. MUIA_Group_HorizSpacing         EQU $8042c651 ;** V4 is. LONG              **
  802. MUIA_Group_PageMode             EQU $80421a5f ;** V5 is. BOOL              **
  803. MUIA_Group_Rows                 EQU $8042b68f ;** V4 is. LONG              **
  804. MUIA_Group_SameHeight           EQU $8042037e ;** V4 i.. BOOL              **
  805. MUIA_Group_SameSize             EQU $80420860 ;** V4 i.. BOOL              **
  806. MUIA_Group_SameWidth            EQU $8042b3ec ;** V4 i.. BOOL              **
  807. MUIA_Group_Spacing              EQU $8042866d ;** V4 is. LONG              **
  808. MUIA_Group_VertSpacing          EQU $8042e1bf ;** V4 is. LONG              **
  809.  
  810. MUIV_Group_ActivePageFirst      EQU 0
  811. MUIV_Group_ActivePageLast       EQU -1
  812. MUIV_Group_ActivePagePrev       EQU -2
  813. MUIV_Group_ActivePageNext       EQU -3
  814.  
  815.  
  816. ;****************************************************************************
  817. ;** Register                                                               **
  818. ;****************************************************************************
  819.  
  820. ;** Attributes **
  821.  
  822. MUIA_Register_Frame             EQU $8042349b ;** V7 i.g BOOL              **
  823. MUIA_Register_Titles            EQU $804297ec ;** V7 i.g STRPTR *          **
  824.  
  825.  
  826.  
  827. ;****************************************************************************
  828. ;** Virtgroup                                                              **
  829. ;****************************************************************************
  830.  
  831. ;** Methods **
  832.  
  833.  
  834. ;** Attributes **
  835.  
  836. MUIA_Virtgroup_Height           EQU $80423038 ;** V6 ..g LONG              **
  837. MUIA_Virtgroup_Left             EQU $80429371 ;** V6 isg LONG              **
  838. MUIA_Virtgroup_Top              EQU $80425200 ;** V6 isg LONG              **
  839. MUIA_Virtgroup_Width            EQU $80427c49 ;** V6 ..g LONG              **
  840.  
  841.  
  842.  
  843. ;****************************************************************************
  844. ;** Scrollgroup                                                            **
  845. ;****************************************************************************
  846.  
  847. ;** Attributes **
  848.  
  849. MUIA_Scrollgroup_Contents       EQU $80421261 ;** V4 i.. Object *          **
  850. MUIA_Scrollgroup_FreeHoriz      EQU $804292f3 ;** V9 i.. BOOL              **
  851. MUIA_Scrollgroup_FreeVert       EQU $804224f2 ;** V9 i.. BOOL              **
  852.  
  853.  
  854.  
  855. ;****************************************************************************
  856. ;** Scrollbar                                                              **
  857. ;****************************************************************************
  858.  
  859.  
  860. ;****************************************************************************
  861. ;** Listview                                                               **
  862. ;****************************************************************************
  863.  
  864. ;** Attributes **
  865.  
  866. MUIA_Listview_ClickColumn       EQU $8042d1b3 ;** V7 ..g LONG              **
  867. MUIA_Listview_DefClickColumn    EQU $8042b296 ;** V7 isg LONG              **
  868. MUIA_Listview_DoubleClick       EQU $80424635 ;** V4 i.g BOOL              **
  869. MUIA_Listview_Input             EQU $8042682d ;** V4 i.. BOOL              **
  870. MUIA_Listview_List              EQU $8042bcce ;** V4 i.. Object *          **
  871. MUIA_Listview_MultiSelect       EQU $80427e08 ;** V7 i.. LONG              **
  872. MUIA_Listview_SelectChange      EQU $8042178f ;** V4 ..g BOOL              **
  873.  
  874. MUIV_Listview_MultiSelectNone   EQU 0
  875. MUIV_Listview_MultiSelectDefaul EQU 1
  876. MUIV_Listview_MultiSelectShifte EQU 2
  877. MUIV_Listview_MultiSelectAlways EQU 3
  878.  
  879.  
  880. ;****************************************************************************
  881. ;** Radio                                                                  **
  882. ;****************************************************************************
  883.  
  884. ;** Attributes **
  885.  
  886. MUIA_Radio_Active               EQU $80429b41 ;** V4 isg LONG              **
  887. MUIA_Radio_Entries              EQU $8042b6a1 ;** V4 i.. STRPTR *          **
  888.  
  889.  
  890.  
  891. ;****************************************************************************
  892. ;** Cycle                                                                  **
  893. ;****************************************************************************
  894.  
  895. ;** Attributes **
  896.  
  897. MUIA_Cycle_Active               EQU $80421788 ;** V4 isg LONG              **
  898. MUIA_Cycle_Entries              EQU $80420629 ;** V4 i.. STRPTR *          **
  899.  
  900. MUIV_Cycle_ActiveNext           EQU -1
  901. MUIV_Cycle_ActivePrev           EQU -2
  902.  
  903.  
  904. ;****************************************************************************
  905. ;** Slider                                                                 **
  906. ;****************************************************************************
  907.  
  908. ;** Attributes **
  909.  
  910. MUIA_Slider_Level               EQU $8042ae3a ;** V4 isg LONG              **
  911. MUIA_Slider_Max                 EQU $8042d78a ;** V4 isg LONG              **
  912. MUIA_Slider_Min                 EQU $8042e404 ;** V4 isg LONG              **
  913. MUIA_Slider_Quiet               EQU $80420b26 ;** V6 i.. BOOL              **
  914. MUIA_Slider_Reverse             EQU $8042f2a0 ;** V4 isg BOOL              **
  915.  
  916.  
  917.  
  918. ;****************************************************************************
  919. ;** Coloradjust                                                            **
  920. ;****************************************************************************
  921.  
  922. ;** Attributes **
  923.  
  924. MUIA_Coloradjust_Blue           EQU $8042b8a3 ;** V4 isg ULONG             **
  925. MUIA_Coloradjust_Green          EQU $804285ab ;** V4 isg ULONG             **
  926. MUIA_Coloradjust_ModeID         EQU $8042ec59 ;** V4 isg ULONG             **
  927. MUIA_Coloradjust_Red            EQU $80420eaa ;** V4 isg ULONG             **
  928. MUIA_Coloradjust_RGB            EQU $8042f899 ;** V4 isg ULONG *           **
  929.  
  930.  
  931.  
  932. ;****************************************************************************
  933. ;** Palette                                                                **
  934. ;****************************************************************************
  935.  
  936. ;** Attributes **
  937.  
  938. MUIA_Palette_Entries            EQU $8042a3d8 ;** V6 i.g struct MUI_Palette_Entry * **
  939. MUIA_Palette_Groupable          EQU $80423e67 ;** V6 isg BOOL              **
  940. MUIA_Palette_Names              EQU $8042c3a2 ;** V6 isg char **           **
  941.  
  942.  
  943.  
  944. ;****************************************************************************
  945. ;** Colorpanel                                                             **
  946. ;****************************************************************************
  947.  
  948. ;** Methods **
  949.  
  950.  
  951. ;** Attributes **
  952.  
  953.  
  954.  
  955.  
  956. ;****************************************************************************
  957. ;** Popstring                                                              **
  958. ;****************************************************************************
  959.  
  960. ;** Methods **
  961.  
  962. MUIM_Popstring_Close           EQU $8042dc52 ;** V7 **
  963. MUIM_Popstring_Open            EQU $804258ba ;** V7 **
  964.  
  965. ;** Attributes **
  966.  
  967. MUIA_Popstring_Button           EQU $8042d0b9 ;** V7 i.g Object *          **
  968. MUIA_Popstring_CloseHook        EQU $804256bf ;** V7 isg struct Hook *     **
  969. MUIA_Popstring_OpenHook         EQU $80429d00 ;** V7 isg struct Hook *     **
  970. MUIA_Popstring_String           EQU $804239ea ;** V7 i.g Object *          **
  971. MUIA_Popstring_Toggle           EQU $80422b7a ;** V7 isg BOOL              **
  972.  
  973.  
  974.  
  975. ;****************************************************************************
  976. ;** Popobject                                                              **
  977. ;****************************************************************************
  978.  
  979. ;** Attributes **
  980.  
  981. MUIA_Popobject_Follow           EQU $80424cb5 ;** V7 isg BOOL              **
  982. MUIA_Popobject_Light            EQU $8042a5a3 ;** V7 isg BOOL              **
  983. MUIA_Popobject_Object           EQU $804293e3 ;** V7 i.g Object *          **
  984. MUIA_Popobject_ObjStrHook       EQU $8042db44 ;** V7 isg struct Hook *     **
  985. MUIA_Popobject_StrObjHook       EQU $8042fbe1 ;** V7 isg struct Hook *     **
  986. MUIA_Popobject_Volatile         EQU $804252ec ;** V7 isg BOOL              **
  987. MUIA_Popobject_WindowHook       EQU $8042f194 ;** V9 isg struct Hook *     **
  988.  
  989.  
  990.  
  991. ;****************************************************************************
  992. ;** Poplist                                                                **
  993. ;****************************************************************************
  994.  
  995. ;** Attributes **
  996.  
  997. MUIA_Poplist_Array              EQU $8042084c ;** V8 i.. char **           **
  998.  
  999.  
  1000.  
  1001. ;****************************************************************************
  1002. ;** Popasl                                                                 **
  1003. ;****************************************************************************
  1004.  
  1005. ;** Attributes **
  1006.  
  1007. MUIA_Popasl_Active              EQU $80421b37 ;** V7 ..g BOOL              **
  1008. MUIA_Popasl_StartHook           EQU $8042b703 ;** V7 isg struct Hook *     **
  1009. MUIA_Popasl_StopHook            EQU $8042d8d2 ;** V7 isg struct Hook *     **
  1010. MUIA_Popasl_Type                EQU $8042df3d ;** V7 i.g ULONG             **
  1011.  
  1012.  
  1013. ****************************************************************************
  1014. **
  1015. ** Macro Section
  1016. ** -------------
  1017. **
  1018. ** To make GUI creation more easy and understandable, you can use the
  1019. ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
  1020. ** them.
  1021. **
  1022. ** These macros are available to C programmers only.
  1023. **
  1024. *** NOTE: This .i file contains the corresponding macros for
  1025. *** assembler programmers.  All assembler related comments are
  1026. *** marked with three *'s.  The original comments and examples for
  1027. *** C are still intact.
  1028. **
  1029. ****************************************************************************
  1030.  
  1031.    IFND MUI_NOSHORTCUTS
  1032.  
  1033.  
  1034.  
  1035. ****************************************************************************
  1036. **
  1037. ** Object Generation
  1038. ** -----------------
  1039. **
  1040. ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
  1041. ** Every xxxObject can be followed by tagitems specifying initial create
  1042. ** time attributes for the new object and must be terminated with the
  1043. ** End macro:
  1044. **
  1045. ** obj = StringObject,
  1046. **          MUIA_String_Contents, "foo",
  1047. **          MUIA_String_MaxLen  , 40,
  1048. **          End;
  1049. **
  1050. ** With the Child, SubWindow and WindowContents shortcuts you can
  1051. ** construct a complete GUI within one command:
  1052. **
  1053. ** app = ApplicationObject,
  1054. **
  1055. **          ...
  1056. **
  1057. **          SubWindow, WindowObject,
  1058. **             WindowContents, VGroup,
  1059. **                Child, String("foo",40),
  1060. **                Child, String("bar",50),
  1061. **                Child, HGroup,
  1062. **                   Child, CheckMark(TRUE),
  1063. **                   Child, CheckMark(FALSE),
  1064. **                   End,
  1065. **                End,
  1066. **             End,
  1067. **
  1068. **          SubWindow, WindowObject,
  1069. **             WindowContents, HGroup,
  1070. **                Child, ...,
  1071. **                Child, ...,
  1072. **                End,
  1073. **             End,
  1074. **
  1075. **          ...
  1076. **
  1077. **          End;
  1078. **
  1079. ****************************************************************************
  1080.  
  1081.  
  1082. ****************************************************************************
  1083. ***
  1084. *** These assembler macros behave somewhat in the same way as the C macros
  1085. *** but with some minor differences:
  1086. *** The macro names End, and SET are already in use in most assembler
  1087. *** compilers, so they are replaced with Endi and seti (for consistencys
  1088. *** sake get is also renamed to geti).
  1089. ***
  1090. *** You must provide memory for all the taglists needed in the object
  1091. *** creation.  The maximum memory needed is passed to you in the 
  1092. *** TAG_SPACE variable.  This is not the mimimum memory needed in most
  1093. *** cases and is often a few kilos too large, but this is the best I
  1094. *** could come up with the assembler macro commands.
  1095. *** Note that you must store the value of TAG_SPACE only after all
  1096. *** the objects are created.  TAG_SPACE is incremented as object
  1097. *** creation macros are called and in the end holds the maximum
  1098. *** theoretical tagitem space usage in bytes.  You pass the pointer to
  1099. *** this memory (which you have yourself allocated) in the register MR.
  1100. *** You can EQUR MR to any of the registers a3, a4 or a5 (the macros
  1101. *** don't use these registers).
  1102. ***
  1103. *** All calls to xxxObject and xxxGroup _must_ be finished with an Endi
  1104. *** call.  The Endi macro actually calls the MUI_NewObjectA function
  1105. *** and places the result object to the taglist.
  1106. ***
  1107. *** The MUIT macro is just a handy way of moving mixed stuff to the
  1108. *** taglist.  Upto 9 items can be moved to the stack on one source line.
  1109. *** You can move _only constants_ with the MUIT macro, use the
  1110. *** MUIT2 macro to move more mixed stuff (pointers, registers).
  1111. *** Remember to use # to denote constants when using MUIT2.
  1112. *** The Endi macro is a special case for the MUIT and MUIT2 macros.
  1113. *** This is snooped out and every 'MUIT Endi' call is converted to
  1114. *** an Endi macro call.
  1115. ***
  1116. *** Also the very common calls 'MUIT Child', 'MUIT SubWindow' and
  1117. *** 'MUIT WindowContents' have their own macros Childi, SubWindowi
  1118. *** and WindowContentsi.  Childi macro can take upto five arguments.
  1119. *** There are three versions of Childi: Childi, Child2 and Child3.
  1120. *** Templates for these macros are:
  1121. *** Childi [macro[,argument1[,argument2[,argument3[,argument4]]]]]
  1122. *** Child2 [macro[,macro[,macro[,macro[,macro]]]]]
  1123. *** Child3 [macro[,macro[,argument1[,argument2[,argument3]]]]]
  1124. *** Arguments for Childi are interpreted as the first one being a
  1125. *** full macro name and the last four arguments for this macro.
  1126. *** Arguments for Child2 are treated as macros placed on their
  1127. *** own separate lines.  These macros can't have any arguments.
  1128. *** Arguments for Child3 are treated as two macros placed on their
  1129. *** own separate lines.  The last macro can have three arguments.
  1130. ***
  1131. *** The C example above with these assembler macros:
  1132. ***
  1133. ***   ApplicationObject
  1134. ***   
  1135. ***      ...
  1136. ***
  1137. ***      SubWindowi
  1138. ***      WindowObject
  1139. ***         WindowContentsi
  1140. ***         VGroup
  1141. ***            Childi String,foo,40
  1142. ***            Childi String,bar,50
  1143. ***            Childi HGroup
  1144. ***               Childi Checkmark,TRUE
  1145. ***               Childi Checkmark,FALSE
  1146. ***               Endi
  1147. ***            Endi
  1148. ***         Endi
  1149. ***
  1150. ***      SubWindowi
  1151. ***      WindowObject
  1152. ***         WindowContentsi
  1153. ***         HGroup
  1154. ***            Childi
  1155. ***            ...
  1156. ***            Childi
  1157. ***            ...
  1158. ***            Endi
  1159. ***         Endi
  1160. ***
  1161. ***      ...
  1162. ***         
  1163. ***      Endi
  1164. ***      is app
  1165. ***
  1166. ***   app   dc.l  0
  1167. ***   bar   dc.b  "bar",0
  1168. ***   foo   dc.b  "foo",0
  1169. ***
  1170. ****************************************************************************
  1171.  
  1172. *** TAG_SPACE will hold the max taglist size in bytes
  1173.  
  1174. TAG_SPACE SET 0
  1175.  
  1176. *** Macros to move a tagitem to the taglist if it is given
  1177.  
  1178. cmv   MACRO ; Tag
  1179.    IFNC  '\1',''
  1180.    IFC   '\1','Endi'
  1181.       Endi
  1182.    ELSEIF
  1183.       move.l   #\1,(MR)+
  1184. TAG_SPACE SET TAG_SPACE+4
  1185.    ENDC
  1186.    ENDC
  1187.       ENDM
  1188.  
  1189. cmv2  MACRO ; Tag
  1190.    IFNC  '\1',''
  1191.    IFC   '\1','Endi'
  1192.       Endi
  1193.    ELSEIF
  1194.       move.l   \1,(MR)+
  1195. TAG_SPACE SET TAG_SPACE+4
  1196.    ENDC
  1197.    ENDC
  1198.       ENDM
  1199.  
  1200. *** Macro to move a tagitem to stack if it is given
  1201.  
  1202. cmv3  MACRO ; Tag
  1203.    IFNC  '\1',''
  1204.       move.l   \1,-(sp)
  1205.    ENDC
  1206.       ENDM
  1207.  
  1208. *** Macros to move max 9 tagitems to the taglist
  1209.  
  1210. MUIT  MACRO ; Tag1, [...]
  1211.       cmv   \1
  1212.       cmv   \2
  1213.       cmv   \3
  1214.       cmv   \4
  1215.       cmv   \5
  1216.       cmv   \6
  1217.       cmv   \7
  1218.       cmv   \8
  1219.       cmv   \9
  1220.       ENDM
  1221.  
  1222. MUIT2 MACRO ; Tag1, [...]
  1223.       cmv2  \1
  1224.       cmv2  \2
  1225.       cmv2  \3
  1226.       cmv2  \4
  1227.       cmv2  \5
  1228.       cmv2  \6
  1229.       cmv2  \7
  1230.       cmv2  \8
  1231.       cmv2  \9
  1232.       ENDM
  1233.  
  1234. *** DoMethod macro for easier assembler DoMethod'ing, max 20 tagitems.
  1235. *** Note that _DoMethod is defined in amiga.lib, so you must link
  1236. *** your own object code with it.
  1237.  
  1238. DoMethod    MACRO ; obj, MethodID, tag1, [...]
  1239.             movem.l  a0/a2,-(sp)
  1240.             move.l   sp,a2
  1241.             clr.l    -(sp)
  1242.             cmv3     \L
  1243.             cmv3     \K
  1244.             cmv3     \J
  1245.             cmv3     \I
  1246.             cmv3     \H
  1247.             cmv3     \G
  1248.             cmv3     \F
  1249.             cmv3     \E
  1250.             cmv3     \D
  1251.             cmv3     \C
  1252.             cmv3     \B
  1253.             cmv3     \A
  1254.             cmv3     \9
  1255.             cmv3     \8
  1256.             cmv3     \7
  1257.             cmv3     \6
  1258.             cmv3     \5
  1259.             cmv3     \4
  1260.             cmv3     \3
  1261.             cmv3     \2
  1262.             cmv3     \1
  1263.             jsr      _DoMethod
  1264.             move.l   a2,sp
  1265.             movem.l  (sp)+,a0/a2
  1266.             ENDM
  1267.  
  1268. *** MUI_Request macro for easier assembler MUI_Request'ing, max
  1269. *** 20 tagitems.
  1270.  
  1271. MUI_Request MACRO    ; app,win,flags,title,gadgets,format,[params,...]
  1272.             movem.l  a0-a4,-(sp)
  1273.             move.l   sp,a4
  1274.             cmv3     \L
  1275.             cmv3     \K
  1276.             cmv3     \J
  1277.             cmv3     \I
  1278.             cmv3     \H
  1279.             cmv3     \G
  1280.             cmv3     \F
  1281.             cmv3     \E
  1282.             cmv3     \D
  1283.             cmv3     \C
  1284.             cmv3     \B
  1285.             cmv3     \A
  1286.             cmv3     \9
  1287.             cmv3     \8
  1288.             cmv3     \7
  1289.             move.l   a4,a3
  1290.             move.l   #\6,a2
  1291.             move.l   #\5,a1
  1292.             move.l   #\4,a0
  1293.             move.l   #\3,d2
  1294.             move.l   \2,d1
  1295.             move.l   \1,d0
  1296.             CALLMUI  MUI_RequestA
  1297.             move.l   a4,sp
  1298.             movem.l  (sp)+,a0-a4
  1299.             ENDM
  1300.  
  1301. *** Macro for getting a pointer to an object you just created.
  1302. *** This is valid only after an Endi macro.
  1303.  
  1304. is          MACRO    ; pointer
  1305.             move.l   d0,\1
  1306.             ENDM
  1307.  
  1308. WindowObject         MACRO
  1309.                      movem.l  a0/a2,-(sp)
  1310.                      move.l   MUIC_Window,a0
  1311.                      move.l   a4,a2
  1312.                      ENDM
  1313. Endi                 MACRO
  1314.                      clr.l    (MR)+
  1315.                      move.l   a2,a1
  1316.                      CALLMUI  MUI_NewObjectA
  1317.                      move.l   a2,a4
  1318.                      movem.l  (sp)+,a0/a2
  1319.                      cmv2     d0
  1320.                      ENDM
  1321. ImageObject          MACRO
  1322.                      movem.l  a0/a2,-(sp)
  1323.                      move.l   MUIC_Image,a0
  1324.                      move.l   a4,a2
  1325.                      ENDM
  1326. NotifyWindowObject   MACRO
  1327.                      movem.l  a0/a2,-(sp)
  1328.                      move.l   MUIC_Notify,a0
  1329.                      move.l   a4,a2
  1330.                      ENDM
  1331. ApplicationObject    MACRO
  1332.                      movem.l  a0/a2,-(sp)
  1333.                      move.l   MUIC_Application,a0
  1334.                      move.l   a4,a2
  1335.                      ENDM
  1336. TextObject           MACRO
  1337.                      movem.l  a0/a2,-(sp)
  1338.                      move.l   MUIC_Text,a0
  1339.                      move.l   a4,a2
  1340.                      ENDM
  1341. RectangleObject      MACRO
  1342.                      movem.l  a0/a2,-(sp)
  1343.                      move.l   MUIC_Rectangle,a0
  1344.                      move.l   a4,a2
  1345.                      ENDM
  1346. ListObject           MACRO
  1347.                      movem.l  a0/a2,-(sp)
  1348.                      move.l   MUIC_List,a0
  1349.                      move.l   a4,a2
  1350.                      ENDM
  1351. PropObject           MACRO
  1352.                      movem.l  a0/a2,-(sp)
  1353.                      move.l   MUIC_Prop,a0
  1354.                      move.l   a4,a2
  1355.                      ENDM
  1356. StringObject         MACRO
  1357.                      movem.l  a0/a2,-(sp)
  1358.                      move.l   MUIC_String,a0
  1359.                      move.l   a4,a2
  1360.                      ENDM
  1361. ScrollbarObject      MACRO
  1362.                      movem.l  a0/a2,-(sp)
  1363.                      move.l   MUIC_Scrollbar,a0
  1364.                      move.l   a4,a2
  1365.                      ENDM
  1366. ListviewObject       MACRO
  1367.                      movem.l  a0/a2,-(sp)
  1368.                      move.l   MUIC_Listview,a0
  1369.                      move.l   a4,a2
  1370.                      ENDM
  1371. RadioObject          MACRO
  1372.                      movem.l  a0/a2,-(sp)
  1373.                      move.l   MUIC_Radio,a0
  1374.                      move.l   a4,a2
  1375.                      ENDM
  1376. VolumelistObject     MACRO
  1377.                      movem.l  a0/a2,-(sp)
  1378.                      move.l   MUIC_Volumelist,a0
  1379.                      move.l   a4,a2
  1380.                      ENDM
  1381. FloattextObject      MACRO
  1382.                      movem.l  a0/a2,-(sp)
  1383.                      move.l   MUIC_Floattext,a0
  1384.                      move.l   a4,a2
  1385.                      ENDM
  1386. DirlistObject        MACRO
  1387.                      movem.l  a0/a2,-(sp)
  1388.                      move.l   MUIC_Dirlist,a0
  1389.                      move.l   a4,a2
  1390.                      ENDM
  1391. ApplistObject        MACRO
  1392.                      movem.l  a0/a2,-(sp)
  1393.                      move.l   MUIC_Applist,a0
  1394.                      move.l   a4,a2
  1395.                      ENDM
  1396. DatatypeObject       MACRO
  1397.                      movem.l  a0/a2,-(sp)
  1398.                      move.l   MUIC_Datatype,a0
  1399.                      move.l   a4,a2
  1400.                      ENDM
  1401. SliderObject         MACRO
  1402.                      movem.l  a0/a2,-(sp)
  1403.                      move.l   MUIC_Slider,a0
  1404.                      move.l   a4,a2
  1405.                      ENDM
  1406. CycleObject          MACRO
  1407.                      movem.l  a0/a2,-(sp)
  1408.                      move.l   MUIC_Cycle,a0
  1409.                      move.l   a4,a2
  1410.                      ENDM
  1411. GaugeObject          MACRO
  1412.                      movem.l  a0/a2,-(sp)
  1413.                      move.l   MUIC_Gauge,a0
  1414.                      move.l   a4,a2
  1415.                      ENDM
  1416. ScaleObject          MACRO
  1417.                      movem.l  a0/a2,-(sp)
  1418.                      move.l   MUIC_Scale,a0
  1419.                      move.l   a4,a2
  1420.                      ENDM
  1421. BoopsiObject         MACRO
  1422.                      movem.l  a0/a2,-(sp)
  1423.                      move.l   MUIC_Boopsi,a0
  1424.                      move.l   a4,a2
  1425.                      ENDM
  1426. GroupObject          MACRO
  1427.                      movem.l  a0/a2,-(sp)
  1428.                      move.l   MUIC_Group,a0
  1429.                      move.l   a4,a2
  1430.                      ENDM
  1431. VGroup               MACRO
  1432.                      movem.l  a0/a2,-(sp)
  1433.                      move.l   MUIC_Group,a0
  1434.                      move.l   a4,a2
  1435.                      ENDM
  1436. HGroup               MACRO
  1437.                      movem.l  a0/a2,-(sp)
  1438.                      move.l   MUIC_Group,a0
  1439.                      move.l   a4,a2
  1440.                      MUIT     MUIA_Group_Horiz,TRUE
  1441.                      ENDM
  1442. ColGroup             MACRO ; cols
  1443.                      movem.l  a0/a2,-(sp)
  1444.                      move.l   MUIC_Group,a0
  1445.                      move.l   a4,a2
  1446.                      MUIT     MUIA_Group_Columns,\1
  1447.                      ENDM
  1448. RowGroup             MACRO ; rows
  1449.                      movem.l  a0/a2,-(sp)
  1450.                      move.l   MUIC_Group,a0
  1451.                      move.l   a4,a2
  1452.                      MUIT     MUIA_Group_Rows,\1
  1453.                      ENDM
  1454.  
  1455. Childi               MACRO ; [macro[,argument1[,argument2[,argument3[,argument4]]]]]
  1456.                      cmv   MUIA_Group_Child
  1457.                      \1 \2,\3,\4,\5
  1458.                      ENDM
  1459. Child2               MACRO ; [macro[,macro[,macro[,macro[,macro]]]]]
  1460.                      cmv   MUIA_Group_Child
  1461.                      \1
  1462.                      \2
  1463.                      \3
  1464.                      \4
  1465.                      \5
  1466.                      ENDM
  1467. Child3               MACRO ; [macro[,macro[,argument1[,argument2[,argument3]]]]]
  1468.                      cmv   MUIA_Group_Child
  1469.                      \1
  1470.                      \2 \3,\4,\5
  1471.                      ENDM
  1472. SubWindowi           MACRO
  1473.                      cmv   MUIA_Application_Window
  1474.                      ENDM
  1475. WindowContentsi      MACRO
  1476.                      cmv   MUIA_Window_RootObject
  1477.                      ENDM
  1478.  
  1479.  
  1480. Child          EQU   MUIA_Group_Child
  1481. SubWindow      EQU   MUIA_Application_Window
  1482. WindowContents EQU   MUIA_Window_RootObject
  1483.  
  1484.  
  1485.  
  1486. ****************************************************************************
  1487. **
  1488. ** Frame Types
  1489. ** -----------
  1490. **
  1491. ** These macros may be used to specify one of MUI's different frame types.
  1492. ** Note that every macro consists of one or more { ti_Tag, ti_Data }
  1493. ** pairs.
  1494. **
  1495. ** GroupFrameT() is a special kind of frame that contains a centered
  1496. ** title text.
  1497. **
  1498. ** HGroup, GroupFrameT("Horiz Groups"),
  1499. **    Child, RectangleObject, TextFrame  , End,
  1500. **    Child, RectangleObject, StringFrame, End,
  1501. **    Child, RectangleObject, ButtonFrame, End,
  1502. **    Child, RectangleObject, ListFrame  , End,
  1503. **    End,
  1504. **
  1505. ****************************************************************************
  1506.  
  1507. ****************************************************************************
  1508. ***
  1509. *** Assembler version of the above C example:
  1510. ***
  1511. *** HGroup
  1512. ***    GroupFrameT horizg
  1513. ***    Child2 RectangleObject,TextFrame,Endi
  1514. ***    Child2 RectangleObject,StringFrame,Endi
  1515. ***    Child2 RectangleObject,ButtonFrame,Endi
  1516. ***    Child2 RectangleObject,ListFrame,Endi
  1517. ***    Endi
  1518. ***
  1519. *** horizg  dc.b  "Horiz Groups",0
  1520. ***         even
  1521. ***
  1522. ****************************************************************************
  1523.  
  1524. *** These macros call MUIT themselves, do not use eg. 'MUIT NoFrame'
  1525.  
  1526. NoFrame     MACRO
  1527.             MUIT  MUIA_Frame,MUIV_FrameNone
  1528.             ENDM
  1529. ButtonFrame MACRO
  1530.             MUIT  MUIA_Frame,MUIV_FrameButton
  1531.             ENDM
  1532. ImageButtonFrame  MACRO
  1533.             MUIT  MUIA_Frame,MUIV_FrameImageButton
  1534.             ENDM
  1535. TextFrame   MACRO
  1536.             MUIT  MUIA_Frame,MUIV_FrameText
  1537.             ENDM
  1538. StringFrame MACRO
  1539.             MUIT  MUIA_Frame,MUIV_FrameString
  1540.             ENDM
  1541. ReadListFrame  MACRO
  1542.             MUIT  MUIA_Frame,MUIV_FrameReadList
  1543.             ENDM
  1544. InputListFrame MACRO
  1545.             MUIT  MUIA_Frame,MUIV_FrameInputList
  1546.             ENDM
  1547. PropFrame   MACRO
  1548.             MUIT  MUIA_Frame,MUIV_FrameProp
  1549.             ENDM
  1550. GaugeFrame  MACRO
  1551.             MUIT  MUIA_Frame,MUIV_FrameGauge
  1552.             ENDM
  1553. GroupFrame  MACRO
  1554.             MUIT  MUIA_Frame,MUIV_FrameGroup
  1555.             ENDM
  1556. GroupFrameT MACRO ; s
  1557.             MUIT  MUIA_Frame,MUIV_FrameGroup,MUIA_FrameTitle,\1
  1558.             ENDM
  1559.  
  1560.  
  1561.  
  1562. ****************************************************************************
  1563. **
  1564. ** Spacing Macros
  1565. ** --------------
  1566. **
  1567. ****************************************************************************
  1568.  
  1569. *** For these macros tagitem space is allocated from the stack and is
  1570. *** fixed in size.  So, there is no need for a separate Endi call.
  1571.  
  1572. HVSpace     MACRO
  1573.             move.l   a0,-(sp)
  1574.             move.l   MUIC_Rectangle,a0
  1575.             clr.l    -(sp)
  1576.             move.l   sp,a1
  1577.             CALLMUI  MUI_NewObjectA
  1578.             addq.l   #4,sp
  1579.             move.l   (sp)+,a0
  1580.             MUIT2    d0
  1581.             ENDM
  1582.    
  1583. HSpace      MACRO ; x
  1584.             move.l   a0,-(sp)
  1585.             move.l   MUIC_Rectangle,a0
  1586.             clr.l    -(sp)
  1587.             clr.l    -(sp)
  1588.             pea      MUIA_VertWeight
  1589.             move.l   #\1,-(sp)
  1590.          IFND  \1
  1591.             pea      MUIA_FixWidth
  1592.          ELSEIF
  1593.             pea      1.w
  1594.          ENDC
  1595.             move.l   sp,a1
  1596.             CALLMUI  MUI_NewObjectA
  1597.             lea      20(sp),sp
  1598.             move.l   (sp)+,a0
  1599.             MUIT2    d0
  1600.             ENDM
  1601.  
  1602. VSpace      MACRO ; x
  1603.             move.l   a0,-(sp)
  1604.             move.l   MUIC_Rectangle,a0
  1605.             clr.l    -(sp)
  1606.             clr.l    -(sp)
  1607.             pea      MUIA_HorizWeight
  1608.             move.l   #\1,-(sp)
  1609.          IFND  \1
  1610.             pea      MUIA_FixHeight
  1611.          ELSEIF
  1612.             pea      1.w
  1613.          ENDC
  1614.             move.l   sp,a1
  1615.             CALLMUI  MUI_NewObjectA
  1616.             lea      20(sp),sp
  1617.             move.l   (sp)+,a0
  1618.             MUIT2    d0
  1619.             ENDM
  1620.  
  1621. HCenter     MACRO ; obj
  1622.             HGroup
  1623.                GroupSpacing 0
  1624.                Childi HSpace,0
  1625.                Childi MUIT2,\1
  1626.                Childi HSpace,0
  1627.                Endi
  1628.             ENDM
  1629.  
  1630. VCenter     MACRO ; obj
  1631.             VGroup
  1632.                GroupSpacing 0
  1633.                Childi VSpace,0
  1634.                Childi MUIT2,\1
  1635.                Childi VSpace,0
  1636.                Endi
  1637.             ENDM
  1638.  
  1639. InnerSpacing   MACRO ; h,v
  1640.                MUIT MUIA_InnerLeft,\1,MUIA_InnerRight,\1,MUIA_InnerTop,\2,MUIA_InnerBottom,\2
  1641.                ENDM
  1642.  
  1643. GroupSpacing   MACRO ; x
  1644.                MUIT  MUIA_Group_Spacing,\1
  1645.                ENDM
  1646.  
  1647.  
  1648.  
  1649. ****************************************************************************
  1650. ***
  1651. *** You use these assembler macros like this:
  1652. ***
  1653. *** String mystr1,40
  1654. ***
  1655. *** CheckMark TRUE
  1656. ***
  1657. *** SimpleButton mysbut1
  1658. ***
  1659. *** KeyButton mykbut1,"c"
  1660. ***
  1661. *** Cycle myentr1
  1662. ***
  1663. *** KeyCycle myentr1,"k"
  1664. ***
  1665. *** Radio rname1,rbuts1
  1666. ***
  1667. *** String mystr1,35
  1668. *** is strobj1
  1669. *** Popup ST_Font,strobj1,MyHook,MUII_Popup
  1670. ***
  1671. ***
  1672. *** MyHook  rts   ; dummy hook, does nothing
  1673. *** mysrt1  dc.b  "String contents",0
  1674. ***         even
  1675. *** mysbut1 dc.b  "Button",0
  1676. ***         even
  1677. *** mykbut1 dc.b  "Cancel",0
  1678. ***         even
  1679. *** myentr1 dc.l  entrs1,entrs2,entrs3,NULL
  1680. *** entrs1  dc.b  "One",0
  1681. *** entrs2  dc.b  "Two",0
  1682. *** entrs3  dc.b  "Three",0
  1683. ***         even
  1684. *** rname1  dc.b  "Radio Buttons:",0
  1685. ***         even
  1686. *** rbuts1  dc.l  rbut1,rbut2,rbut3,NULL
  1687. *** rbut1   dc.b  "Button1",0
  1688. ***         even
  1689. *** rbut2   dc.b  "Button2",0
  1690. ***         even
  1691. *** rbut3   dc.b  "Button3",0
  1692. ***         even
  1693. *** strobj  dc.l  0
  1694. *** ST_Font dc.l  0
  1695. ***
  1696. ***
  1697. ****************************************************************************
  1698.  
  1699. ****************************************************************************
  1700. **
  1701. ** String-Object
  1702. ** -------------
  1703. **
  1704. ** The following macro creates a simple string gadget.
  1705. **
  1706. ****************************************************************************
  1707.  
  1708. String MACRO ; contents,maxlen
  1709.    StringObject
  1710.       StringFrame
  1711.       MUIT MUIA_String_MaxLen,\2
  1712.       MUIT MUIA_String_Contents,\1
  1713.       Endi
  1714.    ENDM
  1715.  
  1716.  
  1717. ****************************************************************************
  1718. **
  1719. ** CheckMark-Object
  1720. ** ----------------
  1721. **
  1722. ** The following macro creates a checkmark gadget.
  1723. **
  1724. ****************************************************************************
  1725.  
  1726. CheckMark MACRO ; selected
  1727.    ImageObject
  1728.       ImageButtonFrame
  1729.       MUIT MUIA_InputMode,MUIV_InputModeToggle
  1730.       MUIT MUIA_Image_Spec,MUII_CheckMark
  1731.       MUIT MUIA_Image_FreeVert,TRUE
  1732.       MUIT MUIA_Selected,\1
  1733.       MUIT MUIA_Background,MUII_ButtonBack
  1734.       MUIT MUIA_ShowSelState,FALSE
  1735.       Endi
  1736.    ENDM
  1737.  
  1738.  
  1739. ****************************************************************************
  1740. **
  1741. ** Button-Objects
  1742. ** --------------
  1743. **
  1744. ** Note: Use small letters for KeyButtons, e.g.
  1745. **       KeyButton("Cancel",'c')  and not  KeyButton("Cancel",'C') !!
  1746. **
  1747. ****************************************************************************
  1748.  
  1749. SimpleButton MACRO ; name
  1750.    TextObject
  1751.       ButtonFrame
  1752.       MUIT MUIA_Text_Contents,\1
  1753.       MUIT MUIA_Text_PreParse,PreParse
  1754.       MUIT MUIA_Text_SetMax,FALSE
  1755.       MUIT MUIA_InputMode,MUIV_InputModeRelVerify
  1756.       MUIT MUIA_Background,MUII_ButtonBack
  1757.       Endi
  1758.    ENDM
  1759.  
  1760. KeyButton MACRO ; name,key
  1761.    TextObject
  1762.       ButtonFrame
  1763.       MUIT MUIA_Text_Contents,\1
  1764.       MUIT MUIA_Text_PreParse,PreParse
  1765.       MUIT MUIA_Text_SetMax,FALSE
  1766.       MUIT MUIA_Text_HiChar,\2
  1767.       MUIT MUIA_ControlChar,\2
  1768.       MUIT MUIA_InputMode,MUIV_InputModeRelVerify
  1769.       MUIT MUIA_Background,MUII_ButtonBack
  1770.       Endi
  1771.    ENDM
  1772.  
  1773.  
  1774.  
  1775. ****************************************************************************
  1776. **
  1777. ** Cycle-Object
  1778. ** ------------
  1779. **
  1780. ****************************************************************************
  1781.  
  1782. Cycle MACRO ; entries
  1783.    CycleObject
  1784.       MUIT MUIA_Cycle_Entries,\1
  1785.       Endi
  1786.    ENDM
  1787.  
  1788. KeyCycle MACRO ; entries,key
  1789.    CycleObject
  1790.       MUIT  MUIA_Cycle_Entries,\1,MUIA_ControlChar,\2
  1791.       Endi
  1792.    ENDM
  1793.  
  1794.  
  1795.  
  1796. ****************************************************************************
  1797. **
  1798. ** Radio-Object
  1799. ** ------------
  1800. **
  1801. ****************************************************************************
  1802.  
  1803. Radio MACRO ; name,array
  1804.    RadioObject
  1805.       GroupFrameT \1
  1806.       MUIT  MUIA_Radio_Entries,\2
  1807.       Endi
  1808.    ENDM
  1809.  
  1810.  
  1811.  
  1812. ****************************************************************************
  1813. **
  1814. ** Popup-Object
  1815. ** ------------
  1816. **
  1817. ** An often needed GUI element is a string gadget with a little button
  1818. ** that opens up a (small) window with a list containing possible entries
  1819. ** for this gadget. Together with the Popup and the String macro,
  1820. ** such a thing would look like
  1821. **
  1822. ** VGroup,
  1823. **    Child, Popup(ST_Font, String("helvetica/13",32), &Hook, MUII_Popup),
  1824. **    ...,
  1825. **
  1826. ** ST_Font will hold a pointer to the embedded string gadget and can
  1827. ** be used to set and get its contents as with every other string object.
  1828. **
  1829. ** The hook will be called with the string gadget as object whenever
  1830. ** the user releases the popup button and could look like this:
  1831. **
  1832. ** ULONG __asm __saveds HookFunc(register __a2 APTR obj,MUII_File)
  1833. ** {
  1834. **    ...
  1835. **
  1836. **    // put our application to sleep while displaying the requester
  1837. **    set(Application,MUIA_Application_Sleep,TRUE);
  1838. **
  1839. **    // get the calling objects window and position
  1840. **    get(obj,MUIA_Window  ,&window);
  1841. **    get(obj,MUIA_LeftEdge,&l);
  1842. **    get(obj,MUIA_TopEdge ,&t);
  1843. **    get(obj,MUIA_Width   ,&w);
  1844. **    get(obj,MUIA_Height  ,&h);
  1845. **
  1846. **    if (req=MUI_AllocAslRequestTags(ASL_FontRequest,TAG_DONE))
  1847. **    {
  1848. **       if (MUI_AslRequestTags(req,
  1849. **          ASLFO_Window         ,window,
  1850. **          ASLFO_PrivateIDCMP   ,TRUE,
  1851. **          ASLFO_TitleText      ,"Select Font",
  1852. **          ASLFO_InitialLeftEdge,window->LeftEdge + l,
  1853. **          ASLFO_InitialTopEdge ,window->TopEdge  + t+h,
  1854. **          ASLFO_InitialWidth   ,w,
  1855. **          ASLFO_InitialHeight  ,250,
  1856. **          TAG_DONE))
  1857. **       {
  1858. **          // set the new contents for our string gadget
  1859. **          set(obj,MUIA_String_Contents,req->fo_Attr.ta_Name);
  1860. **       }
  1861. **       MUI_FreeAslRequest(req);
  1862. **    }
  1863. **
  1864. **    // wake up our application again
  1865. **    set(Application,MUIA_Application_Sleep,FALSE);
  1866. **
  1867. **    return(0);
  1868. ** }
  1869. **
  1870. ** Note: This macro needs a "APTR dummy;" declaration somewhere in your
  1871. **       code to work.
  1872. **
  1873. ****************************************************************************
  1874.  
  1875. Popup MACRO ; ptr,obj,hook,img
  1876.    HGroup
  1877.       GroupSpacing 1
  1878.       MUIT2 #Child,\2
  1879.       move.l   \2,\1
  1880.       Child2 ImageObject,ImageButtonFrame
  1881.          MUIT MUIA_Image_Spec,\4
  1882.          MUIT MUIA_Image_FontMatchWidth,TRUE
  1883.          MUIT MUIA_Image_FreeVert,TRUE
  1884.          MUIT MUIA_InputMode,MUIV_InputModeRelVerify
  1885.          MUIT MUIA_Background,MUII_BACKGROUND
  1886.          Endi
  1887.       move.l   (sp),dummy
  1888.       MUIT TAG_IGNORE
  1889.       tst.l dummy
  1890.       beq.b pop\@
  1891.       tst.l \1
  1892.       beq.b pop\@
  1893.       DoMethod dummy,#MUIM_Notify,#MUIA_Pressed,#FALSE,\1,#2,#MUIM_CallHook,\2
  1894.       MUIT2 d0
  1895.       bra.b pup\@
  1896. pop\@ MUIT  0
  1897. pup\@ Endi
  1898.    ENDM
  1899.  
  1900.  
  1901.  
  1902. ****************************************************************************
  1903. **
  1904. ** Labeling Objects
  1905. ** ----------------
  1906. **
  1907. ** Labeling objects, e.g. a group of string gadgets,
  1908. **
  1909. **   Small: |foo   |
  1910. **  Normal: |bar   |
  1911. **     Big: |foobar|
  1912. **    Huge: |barfoo|
  1913. **
  1914. ** is done using a 2 column group:
  1915. **
  1916. ** ColGroup(2),
  1917. **    Child, Label2("Small:" ),
  1918. **    Child, StringObject, End,
  1919. **    Child, Label2("Normal:"),
  1920. **    Child, StringObject, End,
  1921. **    Child, Label2("Big:"   ),
  1922. **    Child, StringObject, End,
  1923. **    Child, Label2("Huge:"  ),
  1924. **    Child, StringObject, End,
  1925. **    End,
  1926. **
  1927. ** Note that we have three versions of the label macro, depending on
  1928. ** the frame type of the right hand object:
  1929. **
  1930. ** Label1(): For use with standard frames (e.g. checkmarks).
  1931. ** Label2(): For use with double high frames (e.g. string gadgets).
  1932. ** Label() : For use with objects without a frame.
  1933. **
  1934. ** These macros ensure that your label will look fine even if the
  1935. ** user of your application configured some strange spacing values.
  1936. ** If you want to use your own labeling, you'll have to pay attention
  1937. ** on this topic yourself.
  1938. **
  1939. ****************************************************************************
  1940.  
  1941. ****************************************************************************
  1942. ***
  1943. *** And the above C example in assembler:
  1944. ***
  1945. *** ColGroup 2
  1946. ***   Childi Label2,small
  1947. ***   Child2 StringObject,Endi
  1948. ***   Childi Label2,normal
  1949. ***   Child2 StringObject,Endi
  1950. ***   Childi Label2,big
  1951. ***   Child2 StringObject,Endi
  1952. ***   Childi Label2,huge
  1953. ***   Child2 StringObject,Endi
  1954. ***   Endi
  1955. ***
  1956. *** small   dc.b  "Small:",0
  1957. ***         even
  1958. *** normal  dc.b  "Normal:",0
  1959. ***         even
  1960. *** big     dc.b  "Big:",0
  1961. ***         even
  1962. *** huge    dc.b  "Huge:",0
  1963. ***         even
  1964. ***
  1965. ****************************************************************************
  1966.  
  1967. Label MACRO ; label
  1968.    TextObject
  1969.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1
  1970.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0
  1971.       Endi
  1972.    ENDM
  1973.  
  1974. Label1 MACRO ; label
  1975.    TextObject
  1976.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1
  1977.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0
  1978.       ButtonFrame
  1979.       MUIT MUIA_FramePhantomHoriz,TRUE
  1980.       Endi
  1981.    ENDM
  1982.  
  1983. Label2 MACRO ; label
  1984.    TextObject
  1985.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1,
  1986.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0
  1987.       StringFrame
  1988.       MUIT MUIA_FramePhantomHoriz,TRUE
  1989.       Endi
  1990.    ENDM
  1991.  
  1992. KeyLabel MACRO ; label,hichar
  1993.    TextObject
  1994.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1
  1995.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0,
  1996.       MUIT MUIA_Text_HiChar,\2
  1997.       Endi
  1998.    ENDM
  1999.  
  2000. KeyLabel1 MACRO ; label,hichar
  2001.    TextObject
  2002.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1
  2003.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0
  2004.       MUIT MUIA_Text_HiChar,\2
  2005.       ButtonFrame
  2006.       MUIT MUIA_FramePhantomHoriz,TRUE
  2007.       Endi
  2008.    ENDM
  2009.  
  2010. KeyLabel2 MACRO ; label,hichar
  2011.    TextObject
  2012.       MUIT MUIA_Text_PreParse,PreParse2,MUIA_Text_Contents,\1
  2013.       MUIT MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0
  2014.       MUIT MUIA_Text_HiChar,\2
  2015.       StringFrame
  2016.       MUIT MUIA_FramePhantomHoriz,TRUE
  2017.       Endi
  2018.    ENDM
  2019.  
  2020.  
  2021.  
  2022. ****************************************************************************
  2023. **
  2024. ** Controlling Objects
  2025. ** -------------------
  2026. **
  2027. ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
  2028. ** calls:
  2029. **
  2030. ** {
  2031. **    char *x;
  2032. **
  2033. **    set(obj,MUIA_String_Contents,"foobar");
  2034. **    get(obj,MUIA_String_Contents,&x);
  2035. **
  2036. **    printf("gadget contains '%s'\n",x);
  2037. ** }
  2038. **
  2039. ****************************************************************************
  2040.  
  2041. ****************************************************************************
  2042. ***
  2043. *** And the above C example in assembler:
  2044. ***
  2045. *** seti obj,#MUIA_String_Contents,#foobar
  2046. *** geti obj,#MUIA_String_Contents,#x
  2047. ***   move.l   #myfmt,d1
  2048. ***   move.l   #data,d2
  2049. ***   CALLDOS VPrintf
  2050. ***
  2051. *** foobar     dc.b  "foobar",0
  2052. ***            even
  2053. *** data       dc.l  x
  2054. *** x          dcb.b 10
  2055. *** myfmt      dc.b  "gadget contains '%s'",10,0
  2056. ***            even
  2057. ***
  2058. *** The names of the set and get macros have been changed to seti and geti
  2059. *** since most assemblers already have the pseudo op-code SET.
  2060. *** Note that seti is designed to take multiple tagitems (max 8).
  2061. ***
  2062. ****************************************************************************
  2063.  
  2064. geti  MACRO ; obj,attr,store
  2065.       move.l   \2,d0
  2066.       move.l   \1,a0
  2067.       move.l   \3,a1
  2068.       CALLINT GetAttr
  2069.       ENDM
  2070. seti  MACRO ; obj,attr,value [,attr,value,...]
  2071.       move.l   sp,a2
  2072.       cmv3     #TAG_DONE
  2073.       cmv3     \9
  2074.       cmv3     \8
  2075.       cmv3     \7
  2076.       cmv3     \6
  2077.       cmv3     \5
  2078.       cmv3     \4
  2079.       cmv3     \3
  2080.       cmv3     \2
  2081.       move.l   \1,a0
  2082.       move.l   sp,a1
  2083.       CALLINT SetAttrsA
  2084.       move.l   a2,sp
  2085.       ENDM
  2086.  
  2087. setmutex MACRO ; obj,n
  2088.       seti \1,#MUIA_Radio_Active,\2
  2089.       ENDM
  2090. setcycle MACRO ; obj,n
  2091.       seti \1,#MUIA_Cycle_Active,\2
  2092.       ENDM
  2093. setstring MACRO ; obj,s
  2094.       seti \1,#MUIA_String_Contents,\2
  2095.       ENDM
  2096. setcheckmark MACRO ; obj,b
  2097.       seti \1,#MUIA_Selected,\2
  2098.       ENDM
  2099. setslider MACRO ; obj,l
  2100.       seti \1,#MUIA_Slider_Level,\2
  2101.       ENDM
  2102.  
  2103.  
  2104.    ENDC  ;MUI_NOSHORTCUTS
  2105.  
  2106.    ENDC  ;LIBRARIES_MUI_I
  2107.