comparison mac/dw.m @ 1291:b99b0b2c2826

Renamed dw_container_set_row_bg() to dw_container_set_stripe().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 01 Nov 2011 04:06:46 +0000
parents d10969835d2d
children 40d62db77c90
comparison
equal deleted inserted replaced
1290:d2c4deea6bf6 1291:b99b0b2c2826
5900 * oddcolor: Odd row background color in DW_RGB format or a default color index. 5900 * oddcolor: Odd row background color in DW_RGB format or a default color index.
5901 * evencolor: Even row background color in DW_RGB format or a default color index. 5901 * evencolor: Even row background color in DW_RGB format or a default color index.
5902 * DW_RGB_TRANSPARENT will disable coloring rows. 5902 * DW_RGB_TRANSPARENT will disable coloring rows.
5903 * DW_CLR_DEFAULT will use the system default alternating row colors. 5903 * DW_CLR_DEFAULT will use the system default alternating row colors.
5904 */ 5904 */
5905 void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) 5905 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor)
5906 { 5906 {
5907 int _locked_by_me = FALSE; 5907 int _locked_by_me = FALSE;
5908 DW_MUTEX_LOCK; 5908 DW_MUTEX_LOCK;
5909 DWContainer *cont = handle; 5909 DWContainer *cont = handle;
5910 [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : oddcolor) 5910 [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : oddcolor)