home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Programowanie / BASIC / pmDevBas.lha / BH / pm.bc next >
Encoding:
Text File  |  2001-01-17  |  6.5 KB  |  204 lines

  1. ' *********************************************************************
  2. '         popupmenu.library 10.05 (11.11.00) by Henrik Isaksson
  3. '                  HBASIC constants 10.8.0.0 (17.1.01)
  4. '
  5. '                     C->HBASIC manual conversion
  6. '               © Dámaso D. Estévez <amidde@arrakis.es>
  7. ' *********************************************************************
  8. '   (Hisoft|Maxon) Basic don't support some C features like macros...
  9. ' if you want to understand the C examples included in the developper
  10. ' package see the libraries/pm.h file and the documentation included
  11. '                in the Mr Isaksson developper package.
  12. '
  13. '     (Hisoft|Maxon) Basic no soporta algunas prestaciones del C
  14. '   como las macros... si desea entender los ejemplos en C incluidos
  15. '       en el paquete para desarrolladores consulte el fichero
  16. '          "libraries/pm.h" y la documentación incluida en
  17. '                    el paquete del Sr. Isaksson.
  18. ' ********************************************************************
  19.  
  20. REM $underlines
  21.  
  22. CONST POPUPMENU_VERSION& = 10&
  23.  
  24. ' PM_OpenPopupMenuA, PM_FilterIMsgA
  25.  
  26. CONST PM_Menu&             = &h80000004&
  27. CONST PM_Top&              = &h8000000C&
  28. CONST PM_Left&             = &h8000000D&
  29. CONST PM_Code&             = &h8000000E&
  30. CONST PM_Right&            = &h8000000F&
  31. CONST PM_Bottom&           = &h80000010&
  32. CONST PM_MinWidth&         = &h80000011&
  33. CONST PM_MinHeight&        = &h80000012&
  34. CONST PM_ForceFont&        = &h80000013&
  35. CONST PM_PullDown&         = &h8000005A&
  36. CONST PM_MenuHandler&      = &h8000005B&
  37. CONST PM_AutoPullDown&     = &h8000005C&
  38. CONST PM_LocaleHook&       = &h8000005D&
  39. CONST PM_CenterScreen&     = &h8000005E&
  40. CONST PM_UseLMB&           = &h8000005F&
  41. CONST PM_DRIPensOnly&      = &h80000060&
  42. CONST PM_HintBox&          = &h80000061&
  43.  
  44. ' MakeItemA
  45.  
  46. CONST PM_Title&            = &h80000014&
  47. CONST PM_UserData&         = &h80000015&
  48. CONST PM_ID&               = &h80000016&
  49. CONST PM_CommKey&          = &h8000002F&
  50. CONST PM_TitleID&          = &h80000031&
  51. CONST PM_Object&           = &h8000002B&
  52.  
  53. ' Submenu and layout / Submenús y colocación de elementos
  54.  
  55. CONST PM_Sub&              = &h80000017&
  56. CONST PM_Members&          = &h80000041&
  57. CONST PM_LayoutMode&       = &h80000040&
  58.  
  59. ' Text attrib / Atributos para texto
  60.  
  61. CONST PM_FillPen&          = &h8000001A&
  62. CONST PM_Italic&           = &h8000001D&
  63. CONST PM_Bold&             = &h8000001E&
  64. CONST PM_Underlined&       = &h8000001F&
  65. CONST PM_ShadowPen&        = &h80000022&
  66. CONST PM_ShinePen&         = &h80000023&
  67. CONST PM_Center&           = &h80000024&
  68. CONST PM_Centre&           = &h80000024&
  69. CONST PM_TextPen&          = &h8000002D&
  70. CONST PM_Shadowed&         = &h80000030&
  71.  
  72. ' Other item attrib / Otros atributos de los ítems
  73.  
  74. CONST PM_TitleBar&         = &h80000020&
  75. CONST PM_WideTitleBar&     = &h80000021&
  76. CONST PM_NoSelect&         = &h80000019&
  77. CONST PM_Disabled&         = &h80000026&
  78. CONST PM_Hidden&           = &h8000003F&
  79.  
  80. ' Images and icons / Imágenes e iconos
  81.  
  82. CONST PM_ImageSelected&    = &h80000027&
  83. CONST PM_ImageUnselected&  = &h80000028&
  84. CONST PM_IconSelected&     = &h80000029&
  85. CONST PM_IconUnselected&   = &h8000002A&
  86.  
  87. ' Checkmark & MX items / Marcas de verificación y botones radiales
  88.  
  89. CONST PM_Checkit&          = &h8000001B&
  90. CONST PM_Checked&          = &h8000001C&
  91. CONST PM_AutoStore&        = &h8000002C&
  92. CONST PM_Exclude&          = &h80000025&
  93. CONST PM_ExcludeShared&    = &h80000065&
  94. CONST PM_Toggle&           = &h80000064&
  95.  
  96. ' Dynamic construction and destruction / Construcción y destrucción dinámica
  97.  
  98. CONST PM_SubConstruct&     = &h8000003D&
  99. CONST PM_SubDestruct&      = &h8000003E&
  100.  
  101. ' Special and misc. stuff / Etiquetas especiales y de miscelánea
  102.  
  103. CONST PM_UserDataString&   = &h8000002E&
  104. CONST PM_Flags&            = &h80000018&
  105. CONST PM_ColourBox&        = &h8000003C&
  106. CONST PM_ColorBox&         = &h8000003C&
  107.  
  108. ' MakeMenuA
  109.  
  110. CONST PM_Item&             = &h80000032&
  111. CONST PM_Dummy&            = &h80000033&
  112.  
  113. ' MakeIDList
  114.  
  115. CONST PM_ExcludeID&        = &h80000037&
  116. CONST PM_IncludeID&        = &h80000038&
  117. CONST PM_ReflectID&        = &h80000039&
  118. CONST PM_InverseID&        = &h8000003A&
  119.  
  120. ' PM_InsertMenuItemA
  121.  
  122. CONST PM_Insert_Before&    = &h800000C8&
  123. CONST PM_Insert_BeforeID&  = &h800000C9&
  124. CONST PM_Insert_After&     = &h800000CA&
  125. CONST PM_Insert_AfterID&   = &h800000CB&
  126. CONST PM_Insert_Last&      = &h800000CD&
  127. CONST PM_Insert_First&     = &h800000D1&
  128. CONST PM_InsertSub_First&  = &h800000CE&
  129. CONST PM_InsertSub_Last&   = &h800000CF&
  130. CONST PM_InsertSub_Sorted& = &h800000D0&
  131. CONST PM_Insert_Item&      = &h800000D2&
  132.  
  133.  
  134. ' Layout methods / Métodos para colocar los elementos
  135.  
  136. CONST PML_None&            =   0&
  137. CONST PML_Horizontal&      =   1&
  138. CONST PML_Vertical&        =   2&
  139. CONST PML_Table&           =   3&
  140. CONST PML_Default&         = 255&
  141.  
  142. ' Public flags / Atributos públicos
  143.  
  144. CONST PMF_CHECKIT&          = &h40000000&
  145. CONST PMF_CHECKED&          = &h80000000&
  146.  
  147.  
  148. CONST PMERR& = -5&
  149.  
  150.  
  151. '   PopupMenuBase fields
  152. ' -------------------------
  153. CONST pmb_Library%          =  0%
  154. CONST pmb_SegList%          = 34%
  155. CONST pmb_Flags%            = 38%
  156. CONST pmb_ExecBase%         = 42%
  157. CONST pmb_UtilityBase%      = 46%
  158. CONST pmb_IntuitionBase%    = 50%
  159. CONST pmb_GfxBase%          = 54%
  160. CONST pmb_DOSBase%          = 58%
  161. CONST pmb_NewPrefs%         = 62%
  162. CONST pmb_CxBase%           = 64%
  163. CONST pmb_LayersBase%       = 68%
  164. CONST pmb_CyberGfxBase%     = 72%
  165. ' -------------------------
  166. CONST PopupMenuBase_sizeof% = 76%
  167.  
  168.  
  169. '                   PopupMenu fields
  170. '      BEWARE! Theses can change in future releases!
  171. ' ¡CUIDADO! ¡Pueden ser modificados en versiones futuras!
  172. ' -------------------------------------------------------
  173. CONST pm_Next%           =  0%
  174. CONST pm_Sub%            =  4%
  175. CONST pm_Group%          =  4%
  176. CONST pm_Title%          =  8%
  177. CONST pm_TitleID%        =  8%
  178. CONST pm_Object%         =  8%
  179. CONST pm_Flags%          = 12%
  180. CONST pm_ID%             = 16%
  181. CONST pm_UserData%       = 20%
  182. CONST pm_Left%           = 24%
  183. CONST pm_Top%            = 26%
  184. CONST pm_Width%          = 28%
  185. CONST pm_Height%         = 30%
  186. ' --------------------------------
  187. ' Private fields / Campos privados
  188. ' --------------------------------
  189. CONST pm_ExtFlags%       = 32%
  190. CONST pm_Layout%         = 34%
  191. CONST pm_CBox%           = 35%
  192. CONST pm_Exclude%        = 36%
  193. CONST pm_AutoSetPtr%     = 40%
  194. CONST pm_Images%         = 44%
  195. CONST pm_IconID%         = 44%
  196. CONST pm_CommKey%        = 48%
  197. CONST pm_Weight%         = 49%
  198. CONST pm_SubConstruct%   = 50%
  199. CONST pm_SubDestruct%    = 54%
  200. CONST pm_TextPen%        = 58%
  201. CONST pm_Pad%            = 59%
  202. ' -------------------------------------------------------
  203. PopupMenu_sizeof%        = 60%
  204.