Mercurial > dwindows
comparison mac/dw.m @ 1212:5271d5cb27ac
Implemented dw_container_set_row_bg() on Windows.
Current immplementation is a bit slow, it does more redrawing than necessary...
but it works for now... will look to improve it in the future.
Also removed a lot of dead code from a previous attempt at implementation.
Also flipped the default colors on Mac since the first index is even (0) not odd (1).
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 09 Oct 2011 09:50:07 +0000 |
parents | 5a016a5a7412 |
children | dc8ea09605f7 |
comparison
equal
deleted
inserted
replaced
1211:70dca53cb071 | 1212:5271d5cb27ac |
---|---|
5759 void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) | 5759 void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) |
5760 { | 5760 { |
5761 int _locked_by_me = FALSE; | 5761 int _locked_by_me = FALSE; |
5762 DW_MUTEX_LOCK; | 5762 DW_MUTEX_LOCK; |
5763 DWContainer *cont = handle; | 5763 DWContainer *cont = handle; |
5764 [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB_TRANSPARENT : oddcolor) | 5764 [cont setRowBgOdd:(oddcolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : oddcolor) |
5765 andEven:(evencolor == DW_CLR_DEFAULT ? DW_RGB(230,230,230) : evencolor)]; | 5765 andEven:(evencolor == DW_CLR_DEFAULT ? DW_RGB_TRANSPARENT : evencolor)]; |
5766 DW_MUTEX_UNLOCK; | 5766 DW_MUTEX_UNLOCK; |
5767 } | 5767 } |
5768 | 5768 |
5769 /* | 5769 /* |
5770 * Sets the width of a column in the container. | 5770 * Sets the width of a column in the container. |