changeset 1208:53547c9c99a2

Added dw_container_set_row_bg() stubs on the remaining platforms. It is possible but complicated to implement on Windows... will implement when I find time. Researching GTK1/2 support since they use GtkCList instead of GtkTreeView like GTK3. OS/2 I believe this is impossible to implement.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 08 Oct 2011 19:20:09 +0000
parents 423da07c8f05
children a99a08671b64
files dw.def dww.def gtk/dw.c os2/dw.c template/dw.c win/dw.c
diffstat 6 files changed, 55 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw.def	Sat Oct 08 19:01:53 2011 +0000
+++ b/dw.def	Sat Oct 08 19:20:09 2011 +0000
@@ -145,6 +145,7 @@
   dw_container_change_item               @236
   dw_container_get_column_type           @237
   dw_container_change_row_title          @238
+  dw_container_set_row_bg                @239
 
   dw_filesystem_setup                    @240
   dw_filesystem_set_item                 @241
--- a/dww.def	Sat Oct 08 19:01:53 2011 +0000
+++ b/dww.def	Sat Oct 08 19:20:09 2011 +0000
@@ -142,6 +142,7 @@
   dw_container_change_item               @236
   dw_container_get_column_type           @237
   dw_container_change_row_title          @238
+  dw_container_set_row_bg                @239
 
   dw_filesystem_setup                    @240
   dw_filesystem_set_item                 @241
--- a/gtk/dw.c	Sat Oct 08 19:01:53 2011 +0000
+++ b/gtk/dw.c	Sat Oct 08 19:20:09 2011 +0000
@@ -7117,6 +7117,19 @@
 }
 
 /*
+ * Sets the alternating row colors for container window (widget) handle.
+ * Parameters:
+ *          handle: The window (widget) handle.
+ *          oddcolor: Odd row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring odd rows.
+ *          evencolor: Even row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring even rows.
+ */
+void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor)
+{
+}
+
+/*
  * Sets the width of a column in the container.
  * Parameters:
  *          handle: Handle to window (widget) of container.
--- a/os2/dw.c	Sat Oct 08 19:01:53 2011 +0000
+++ b/os2/dw.c	Sat Oct 08 19:20:09 2011 +0000
@@ -7695,6 +7695,20 @@
 }
 
 /*
+ * Sets the alternating row colors for container window (widget) handle.
+ * Parameters:
+ *          handle: The window (widget) handle.
+ *          oddcolor: Odd row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring odd rows.
+ *          evencolor: Even row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring even rows.
+ */
+void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor)
+{
+    /* Don't think this is possible on OS/2 */
+}
+
+/*
  * Sets the width of a column in the container.
  * Parameters:
  *          handle: Handle to window (widget) of container.
--- a/template/dw.c	Sat Oct 08 19:01:53 2011 +0000
+++ b/template/dw.c	Sat Oct 08 19:20:09 2011 +0000
@@ -1847,6 +1847,19 @@
 }
 
 /*
+ * Sets the alternating row colors for container window (widget) handle.
+ * Parameters:
+ *          handle: The window (widget) handle.
+ *          oddcolor: Odd row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring odd rows.
+ *          evencolor: Even row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring even rows.
+ */
+void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor)
+{
+}
+
+/*
  * Sets the width of a column in the container.
  * Parameters:
  *          handle: Handle to window (widget) of container.
--- a/win/dw.c	Sat Oct 08 19:01:53 2011 +0000
+++ b/win/dw.c	Sat Oct 08 19:20:09 2011 +0000
@@ -8020,6 +8020,19 @@
 }
 
 /*
+ * Sets the alternating row colors for container window (widget) handle.
+ * Parameters:
+ *          handle: The window (widget) handle.
+ *          oddcolor: Odd row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring odd rows.
+ *          evencolor: Even row background color in DW_RGB format or a default color index.
+ *                    DW_CLR_DEFAULT will disable coloring even rows.
+ */
+void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor)
+{
+}
+
+/*
  * Sets the width of a column in the container.
  * Parameters:
  *          handle: Handle to window (widget) of container.