' *********************************************************************
'            popupmenu.library 9.0 (20.4.99) by Henrik Isaksson
'                   HBASIC constants 9.03.0 (6.6.00)
'
'                     C->HBASIC manual conversion
'               © Dámaso D. Estévez <amidde@arrakis.es>
' *********************************************************************
'   (Hisoft|Maxon) Basic don't support some C features like macros...
' if you want to understand the C examples included in the developper
' package see the libraries/pm.h file and the documentation included
'                in the Mr Isaksson developper package.
'
'     (Hisoft|Maxon) Basic no soporta algunas prestaciones del C
'   como las macros... si desea entender los ejemplos en C incluidos
'       en el paquete para desarrolladores consulte el fichero
'          "libraries/pm.h" y la documentación incluida en
'                    el paquete del Sr. Isaksson.
' ********************************************************************

REM $underlines

CONST POPUPMENU_VERSION& = 9&

' PM_OpenPopupMenuA, PM_FilterIMsgA

CONST PM_Menu&             = &h80000004&
CONST PM_Top&              = &h8000000C&
CONST PM_Left&             = &h8000000D&
CONST PM_Code&             = &h8000000E&
CONST PM_Right&            = &h8000000F&
CONST PM_Bottom&           = &h80000010&
CONST PM_MinWidth&         = &h80000011&
CONST PM_MinHeight&        = &h80000012&
CONST PM_ForceFont&        = &h80000013&
CONST PM_PullDown&         = &h8000005A&
CONST PM_MenuHandler&      = &h8000005B&
CONST PM_AutoPullDown&     = &h8000005C&
CONST PM_LocaleHook&       = &h8000005D&
CONST PM_CenterScreen&     = &h8000005E&
CONST PM_UseLMB&           = &h8000005F&
CONST PM_DRIPensOnly&      = &h80000060&
CONST PM_HintBox&          = &h80000061&

' MakeItemA

CONST PM_Title&            = &h80000014&
CONST PM_UserData&         = &h80000015&
CONST PM_ID&               = &h80000016&
CONST PM_CommKey&          = &h8000002F&
CONST PM_TitleID&          = &h80000031&
CONST PM_Object&           = &h8000002B&

' Submenu and layout / Submenús y colocación de elementos

CONST PM_Sub&              = &h80000017&
CONST PM_Members&          = &h80000041&
CONST PM_LayoutMode&       = &h80000040&

' Text attrib / Atributos para texto

CONST PM_FillPen&          = &h8000001A&
CONST PM_Italic&           = &h8000001D&
CONST PM_Bold&             = &h8000001E&
CONST PM_Underlined&       = &h8000001F&
CONST PM_ShadowPen&        = &h80000022&
CONST PM_ShinePen&         = &h80000023&
CONST PM_Center&           = &h80000024&
CONST PM_TextPen&          = &h8000002D&
CONST PM_Shadowed&         = &h80000030&

' Other item attrib / Otros atributos de los ítems

CONST PM_TitleBar&         = &h80000020&
CONST PM_WideTitleBar&     = &h80000021&
CONST PM_NoSelect&         = &h80000019&
CONST PM_Disabled&         = &h80000026&
CONST PM_Hidden&           = &h8000003F&

' Images and icons / Imágenes e iconos

CONST PM_ImageSelected&    = &h80000027&
CONST PM_ImageUnselected&  = &h80000028&
CONST PM_IconSelected&     = &h80000029&
CONST PM_IconUnselected&   = &h8000002A&

' Checkmark & MX items / Marcas de verificación y botones radiales

CONST PM_Checkit&          = &h8000001B&
CONST PM_Checked&          = &h8000001C&
CONST PM_AutoStore&        = &h8000002C&
CONST PM_Exclude&          = &h80000025&

' Dynamic construction and destruction / Construcción y destrucción dinámica

CONST PM_SubConstruct&     = &h8000003D&
CONST PM_SubDestruct&      = &h8000003E&

' Special and misc. stuff / Etiquetas especiales y de miscelánea

CONST PM_UserDataString&   = &h8000002E&
CONST PM_Flags&            = &h80000018&
CONST PM_ColourBox&        = &h8000003C&

' MakeMenuA

CONST PM_Item&             = &h80000032&
CONST PM_Dummy&            = &h80000033&

' MakeIDList

CONST PM_ExcludeID&        = &h80000037&
CONST PM_IncludeID&        = &h80000038&
CONST PM_ReflectID&        = &h80000039&
CONST PM_InverseID&        = &h8000003A&

' PM_InsertMenuItemA

CONST PM_Insert_Before&    = &h800000C8&
CONST PM_Insert_BeforeID&  = &h800000C9&
CONST PM_Insert_After&     = &h800000CA&
CONST PM_Insert_AfterID&   = &h800000CB&
CONST PM_Insert_Last&      = &h800000CD&
CONST PM_Insert_First&     = &h800000D1&
CONST PM_InsertSub_First&  = &h800000CE&
CONST PM_InsertSub_Last&   = &h800000CF&
CONST PM_InsertSub_Sorted& = &h800000D0&
CONST PM_Insert_Item&      = &h800000D2&


' Layout methods / Métodos para colocar los elementos

CONST PML_None&            =   0&
CONST PML_Horizontal&      =   1&
CONST PML_Vertical&        =   2&
CONST PML_Table&           =   3&
CONST PML_Default&         = 255&


CONST PMERR& = -5&


'   PopupMenuBase fields
' -------------------------
CONST pmb_Library%          =  0%
CONST pmb_SegList%          = 34%
CONST pmb_Flags%            = 38%
CONST pmb_ExecBase%         = 42%
CONST pmb_UtilityBase%      = 46%
CONST pmb_IntuitionBase%    = 50%
CONST pmb_GfxBase%          = 54%
CONST pmb_DOSBase%          = 58%
CONST pmb_NewPrefs%         = 62%
CONST pmb_CxBase%           = 64%
' -------------------------
CONST PopupMenuBase_sizeof% = 68%


'                   PopupMenu fields
'      BEWARE! Theses can change in future releases!
' ¡CUIDADO! ¡Pueden ser modificados en versiones futuras!
' -------------------------------------------------------
CONST pm_Next%          = &h00%
CONST pm_Sub%           = &h04%
CONST pm_Title%         = &h08%
CONST pm_TitleID%       = &h08%
CONST pm_Object%        = &h08%
CONST pm_Flags%         = &h0C%  ' Private / Privado
CONST pm_ID%            = &h10%
CONST pm_UserData%      = &h14%
CONST pm_Left%          = &h18%  ' Private / Privado
CONST pm_Top%           = &h1A%  ' Private / Privado
CONST pm_Width%         = &h1C%  ' Private / Privado
CONST pm_Height%        = &h1E%  ' Private / Privado
' -------------------------------------------------------
'CONST pm_ExtFlags%      = &h20%
'CONST pm_Layout%        = &h22%
'CONST pm_ColBox%        = &h23%
'CONST pm_Exclude%       = &h24%
'CONST pm_AutoSetPtr%    = &h28%
'CONST pm_Images%        = &h2C%
'CONST pm_Masks%         = &h30%
'CONST pm_CommKey%       = &h31%
'CONST pm_Weight%        = &h32%
'CONST pm_TextPen%       = &h33%
'CONST pm_SubConstruct%  = &h37%
'CONST pm_SubDestruct%   = &h3B%
' -------------------------------------------------------
PopupMenu_sizeof% = &h3C%

