home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / Hdr / ActionButt next >
Encoding:
Text File  |  1995-09-05  |  3.0 KB  |  116 lines

  1. ;Assembler header file for ActionButton
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 16:30:09 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_Toolbox
  16.         GBLS    Get_Toolbox
  17.         ]
  18.         [       :LNOT: :DEF: Toolbox_Hdr
  19. Get_Toolbox                     SETS    "GET OS:Hdr.Toolbox"
  20.         |
  21. Get_Toolbox                     SETS    ""
  22.         ]
  23.         $Get_Toolbox
  24.  
  25.         [       :LNOT: :DEF: Get_Gadget
  26.         GBLS    Get_Gadget
  27.         ]
  28.         [       :LNOT: :DEF: Gadget_Hdr
  29. Get_Gadget                      SETS    "GET OS:Hdr.Gadget"
  30.         |
  31. Get_Gadget                      SETS    ""
  32.         ]
  33.         $Get_Gadget
  34.  
  35.         [       :LNOT: :DEF: ActionButton_Hdr
  36.         GBLS    ActionButton_Hdr
  37.  
  38. ;Symbols for constants
  39. Class_ActionButton              *       &80
  40. ActionButton_IsDefault          *       &1
  41. ActionButton_IsCancel           *       &2
  42. ActionButton_IsLocal            *       &4
  43. ActionButton_IsMenu             *       &8
  44. Action_ActionButtonSelected     *       &82881
  45. ActionButton_SelectedAdjust     *       &1
  46. ActionButton_SelectedSelect     *       &4
  47. ActionButton_SelectedDefault    *       &8
  48. ActionButton_SelectedCancel     *       &10
  49. ActionButton_SelectedLocal      *       &20
  50.  
  51. ;Symbols for structure offsets and sizes
  52.                                 ^       0
  53. ActionButton_Gadget_text        #       Toolbox_MsgReference
  54. ActionButton_Gadget_text_limit  #       Int
  55. ActionButton_Gadget_click_show  #       Toolbox_StringReference
  56. ActionButton_Gadget_action      #       Bits
  57. ActionButton_Gadget             *       @
  58.  
  59.  
  60. ;Symbols for SWI's and SWI reason codes
  61. ActionButton_SetText            *       &80
  62.    ;Entry
  63.    ;  R0 = flags (Bits)
  64.    ;  R1 = window (Toolbox_O)
  65.    ;  R2 = &80
  66.    ;  R3 = action_button (Toolbox_C)
  67.    ;  R4 -> text (String)
  68.  
  69. ActionButton_GetText            *       &81
  70.    ;Entry
  71.    ;  R0 = flags (Bits)
  72.    ;  R1 = window (Toolbox_O)
  73.    ;  R2 = &81
  74.    ;  R3 = action_button (Toolbox_C)
  75.    ;  R4 = text (pointer to String)
  76.    ;  R5 = size (Int)
  77.    ;Exit
  78.    ;  R5 = used (Int)
  79.  
  80. ActionButton_SetAction          *       &82
  81.    ;Entry
  82.    ;  R0 = flags (Bits)
  83.    ;  R1 = window (Toolbox_O)
  84.    ;  R2 = &82
  85.    ;  R3 = action_button (Toolbox_C)
  86.    ;  R4 = action (Bits)
  87.  
  88. ActionButton_GetAction          *       &83
  89.    ;Entry
  90.    ;  R0 = flags (Bits)
  91.    ;  R1 = window (Toolbox_O)
  92.    ;  R2 = &83
  93.    ;  R3 = action_button (Toolbox_C)
  94.    ;Exit
  95.    ;  R0 = action (Bits)
  96.  
  97. ActionButton_SetClickShow       *       &84
  98.    ;Entry
  99.    ;  R0 = flags (Bits)
  100.    ;  R1 = window (Toolbox_O)
  101.    ;  R2 = &84
  102.    ;  R3 = action_button (Toolbox_C)
  103.    ;  R4 = obj (Toolbox_O)
  104.  
  105. ActionButton_GetClickShow       *       &85
  106.    ;Entry
  107.    ;  R0 = flags (Bits)
  108.    ;  R1 = window (Toolbox_O)
  109.    ;  R2 = &85
  110.    ;  R3 = action_button (Toolbox_C)
  111.    ;Exit
  112.    ;  R0 = obj (Toolbox_O)
  113.  
  114.         ]
  115.         END
  116.