Merging NList MCC 0.119 into the main branch.
[AROS.git] / workbench / classes / zune / nlist / demo / NList-Demo2.h
blob5e61b11dafbe5f75bd1049d21954c076b0d79665
1 /***************************************************************************
3 NList.mcc - New List MUI Custom Class
4 Registered MUI class, Serial Number: 1d51 0x9d510030 to 0x9d5100A0
5 0x9d5100C0 to 0x9d5100FF
7 Copyright (C) 1996-2001 by Gilles Masson
8 Copyright (C) 2001-2014 NList Open Source Team
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 NList classes Support Site: http://www.sf.net/projects/nlist-classes
22 $Id$
24 ***************************************************************************/
26 extern struct Hook DisplayLI_TextHook;
27 extern struct Hook CompareLI_TextHook;
28 extern struct Hook ConstructLI_TextHook;
29 extern struct Hook DestructLI_TextHook;
31 /* MUI STUFF */
33 #ifndef MAKE_ID
34 #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
35 #endif
37 /* *********************************************** */
39 #define SimpleButtonCycle(name) \
40 TextObject, \
41 ButtonFrame, \
42 MUIA_CycleChain, 1, \
43 MUIA_Font, MUIV_Font_Button, \
44 MUIA_Text_Contents, name, \
45 MUIA_Text_PreParse, "\33c", \
46 MUIA_InputMode , MUIV_InputMode_RelVerify, \
47 MUIA_Background , MUII_ButtonBack, \
48 End
50 /* *********************************************** */
52 #define SimpleButtonTiny(name) \
53 TextObject, \
54 ButtonFrame, \
55 MUIA_Font, MUIV_Font_Tiny, \
56 MUIA_Text_Contents, name, \
57 MUIA_Text_PreParse, "\33c", \
58 MUIA_InputMode , MUIV_InputMode_RelVerify, \
59 MUIA_Background , MUII_ButtonBack, \
60 End
62 /* *********************************************** */
64 #define NFloattext(ftxt) \
65 NListviewObject, \
66 MUIA_Weight, 50, \
67 MUIA_CycleChain, 1, \
68 MUIA_NListview_Horiz_ScrollBar, MUIV_NListview_HSB_None, \
69 MUIA_NListview_Vert_ScrollBar, MUIV_NListview_VSB_Always, \
70 MUIA_NListview_NList,NFloattextObject, \
71 MUIA_NList_DefaultObjectOnClick, TRUE, \
72 MUIA_NFloattext_Text, ftxt, \
73 MUIA_NFloattext_TabSize, 4, \
74 MUIA_NFloattext_Justify, TRUE, \
75 End, \
76 End
78 /* *********************************************** */