46 #ifndef __D4D_SCROLL_BAR_H
47 #define __D4D_SCROLL_BAR_H
60 #ifndef D4D_SCRLBR_F_DEFAULT
61 #define D4D_SCRLBR_F_DEFAULT (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_MOUSE_NORMAL | D4D_OBJECT_F_FOCUSRECT)
66 #ifndef D4D_SCRLBAR_MIN_TAB_SIZE
67 #define D4D_SCRLBAR_MIN_TAB_SIZE ( 4 )
122 #define D4D_GET_SCROLL_BAR(pObj) ((D4D_SCROLL_BAR*)((pObj)->pParam))
123 #define D4D_GET_SCROLL_BAR_DATA(pObj) (D4D_GET_SCROLL_BAR(pObj)->pData)
153 #define _D4D_DECLARE_SCROLL_BAR(type, name, x, y, cx, cy, radius, pMargin, pRelations, flags, pScheme, pUser, pOnChange, pOnUsrMsg) \
154 static D4D_SCRLBAR_DATA name##_data = { 0, 0, 100, 1, 0};\
155 static type D4D_SCROLL_BAR name##_params = \
161 D4D_DECLARE_OBJECT(type, name, x, y, cx, cy, radius, pMargin, pRelations, pOnUsrMsg, &d4d_scroll_barSysFunc, &(name##_params), flags, pUser, pScheme)
182 #define D4D_DECLARE_SCROLL_BAR(name, x, y, cx, cy, flags, pScheme, pUser, pOnChange, pOnUsrMsg)\
183 _D4D_DECLARE_SCROLL_BAR(D4D_CONST, name, x, y, cx, cy, 0, NULL, NULL, flags, pScheme, pUser, pOnChange, pOnUsrMsg)
199 #define D4D_DECLARE_STD_SCROLL_BAR(name, x, y, cx, cy, pOnChange)\
200 D4D_DECLARE_SCROLL_BAR(name, x, y, cx, cy, D4D_SCRLBR_F_DEFAULT, NULL, NULL, pOnChange, NULL)
222 #define D4D_DECLARE_RSCROLL_BAR(name, x, y, cx, cy, radius, flags, pScheme, pUser, pOnChange, pOnUsrMsg)\
223 _D4D_DECLARE_SCROLL_BAR(D4D_CONST, name, x, y, cx, cy, radius, NULL, NULL, flags, pScheme, pUser, pOnChange, pOnUsrMsg)
240 #define D4D_DECLARE_STD_RSCROLL_BAR(name, x, y, cx, cy, radius, pOnChange)\
241 D4D_DECLARE_RSCROLL_BAR(name, x, y, cx, cy, radius, D4D_SCRLBR_F_DEFAULT, NULL, NULL, pOnChange, NULL)
248 #define D4D_DECLARE_SCROLL_BAR_INRAM(name, x, y, cx, cy, flags, pScheme, pUser, pOnChange, pOnUsrMsg)\
249 _D4D_DECLARE_SCROLL_BAR(D4D_NO_CONST, name, x, y, cx, cy, 0, NULL, NULL, flags, pScheme, pUser, pOnChange, pOnUsrMsg)
254 #define D4D_DECLARE_STD_SCROLL_BAR_INRAM(name, x, y, cx, cy, pOnChange)\
255 D4D_DECLARE_SCROLL_BAR_INRAM(name, x, y, cx, cy, D4D_SCRLBR_F_DEFAULT, NULL, NULL, pOnChange, NULL)
262 #define D4D_DECLARE_RSCROLL_BAR_INRAM(name, x, y, cx, cy, radius, flags, pScheme, pUser, pOnChange, pOnUsrMsg)\
263 _D4D_DECLARE_SCROLL_BAR(D4D_NO_CONST, name, x, y, cx, cy, radius, NULL, NULL, flags, pScheme, pUser, pOnChange, pOnUsrMsg)
268 #define D4D_DECLARE_STD_RSCROLL_BAR_INRAM(name, x, y, cx, cy, radius, pOnChange)\
269 D4D_DECLARE_RSCROLL_BAR_INRAM(name, x, y, cx, cy, radius, D4D_SCRLBR_F_DEFAULT, NULL, NULL, pOnChange, NULL)
LWord D4D_INDEX
Type definition of eGUI general index variables.
The object main structure type definition.
The object system function needed for each object - this is part of D4D_OBJECT main structure...
sLWord D4D_INDEX_DELTA
Type definition of eGUI general index variables for signed offsets.
D4D_SCRLBR_ON_CHANGE OnChange