home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / MUI / MCC_NList / Developer / C / Examples / NList-Demo2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-30  |  1.5 KB  |  61 lines

  1.  
  2. extern const struct Hook DisplayLI_TextHook;
  3. extern const struct Hook CompareLI_TextHook;
  4. extern const struct Hook ConstructLI_TextHook;
  5. extern const struct Hook DestructLI_TextHook;
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. /* MUI STUFF */
  13.  
  14. #ifndef MAKE_ID
  15. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  16. #endif
  17.  
  18. /* *********************************************** */
  19.  
  20. #define SimpleButtonCycle(name) \
  21.   TextObject, \
  22.     ButtonFrame, \
  23.     MUIA_CycleChain, 1, \
  24.     MUIA_Font, MUIV_Font_Button, \
  25.     MUIA_Text_Contents, name, \
  26.     MUIA_Text_PreParse, "\33c", \
  27.     MUIA_InputMode    , MUIV_InputMode_RelVerify, \
  28.     MUIA_Background   , MUII_ButtonBack, \
  29.   End
  30.  
  31. /* *********************************************** */
  32.  
  33. #define SimpleButtonTiny(name) \
  34.   TextObject, \
  35.     ButtonFrame, \
  36.     MUIA_Font, MUIV_Font_Tiny, \
  37.     MUIA_Text_Contents, name, \
  38.     MUIA_Text_PreParse, "\33c", \
  39.     MUIA_InputMode    , MUIV_InputMode_RelVerify, \
  40.     MUIA_Background   , MUII_ButtonBack, \
  41.   End
  42.  
  43. /* *********************************************** */
  44.  
  45. #define NFloattext(ftxt) \
  46.     NListviewObject, \
  47.       MUIA_Weight, 50, \
  48.       MUIA_CycleChain, 1, \
  49.       MUIA_NListview_Horiz_ScrollBar, MUIV_NListview_HSB_None, \
  50.       MUIA_NListview_Vert_ScrollBar, MUIV_NListview_VSB_Always, \
  51.       MUIA_NListview_NList,NFloattextObject, \
  52.         MUIA_NList_DefaultObjectOnClick, TRUE, \
  53.         MUIA_NFloattext_Text, ftxt, \
  54.         MUIA_NFloattext_TabSize, 4, \
  55.         MUIA_NFloattext_Justify, TRUE, \
  56.       End, \
  57.     End
  58.  
  59. /* *********************************************** */
  60.  
  61.