D4CD_DATE - Gargy007/D4CD GitHub Wiki
D4CD_DATE user defined object is defined to show and set the date. The date object can show the day, date, month and year and all this items could be individually showed or hided in any combination. The object also support setting of date with undo operation during setting phase.
Example:
- (red - day, green - date, blue - month, magenta - year)
Declaration
D4CD_DECLARE_DATE(name, x, y, cx, pDayNames, pMonthNames, flags, pUser, onSet, pOnUsrMsg)
- name - name of object
- x,y - coordination of date
- cx - full length of date object
- pDayNames - pointer on strings of days
- pMonthNames - pointer on strings of months
- flags - system flags of object
- pUser - user data/pointer
- OnSet - pointer on OnSet function
- pOnUsrMsg - pointer on user message function
API functions
Function that sets the date value in runtime.
void D4CD_DateSetValue(D4CD_OBJECT_PTR pThis, Byte day, Byte date, Byte month, Word year)
Function returns current value of date object in runtime.
D4CD_DATE_VALUE* D4CD_DateGetValue(D4CD_OBJECT_PTR pThis)
Function sets the visibility of individual items of date object.
void D4CD_DateSetVisibility(D4CD_OBJECT_PTR pThis, D4CD_BOOL day, D4CD_BOOL date, D4CD_BOOL month, D4CD_BOOL year)