changeset 843:d51e958aad95

Updates to the comments about scrollboxes and removing them from incomplete status. Will be functional on 4 of the 5 platforms today... and will be implementing on OS/2 as soon as I decide the best way.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 29 Mar 2011 23:04:32 +0000
parents 89dd3e442e7e
children 5103d132c3cd
files gtk/dw.c gtk3/dw.c win/dw.c
diffstat 3 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Tue Mar 29 22:57:49 2011 +0000
+++ b/gtk/dw.c	Tue Mar 29 23:04:32 2011 +0000
@@ -3221,13 +3221,11 @@
    return tmp;
 }
 
-#ifndef INCOMPLETE
 /*
  * Create a new scrollable Box to be packed.
  * Parameters:
  *       type: Either DW_VERT (vertical) or DW_HORZ (horizontal).
  *       pad: Number of pixels to pad around the box.
- * This works fine under GTK+, but is incomplete on other platforms
  */
 HWND dw_scrollbox_new( int type, int pad )
 {
@@ -3307,7 +3305,6 @@
    DW_MUTEX_UNLOCK;
    return range;
 }
-#endif
 
 /*
  * Create a new Group Box to be packed.
--- a/gtk3/dw.c	Tue Mar 29 22:57:49 2011 +0000
+++ b/gtk3/dw.c	Tue Mar 29 23:04:32 2011 +0000
@@ -2993,13 +2993,11 @@
    return tmp;
 }
 
-#ifndef INCOMPLETE
 /*
  * Create a new scrollable Box to be packed.
  * Parameters:
  *       type: Either DW_VERT (vertical) or DW_HORZ (horizontal).
  *       pad: Number of pixels to pad around the box.
- * This works fine under GTK+, but is incomplete on other platforms
  */
 HWND dw_scrollbox_new( int type, int pad )
 {
@@ -3079,7 +3077,6 @@
    DW_MUTEX_UNLOCK;
    return range;
 }
-#endif
 
 /*
  * Create a new Group Box to be packed.
--- a/win/dw.c	Tue Mar 29 22:57:49 2011 +0000
+++ b/win/dw.c	Tue Mar 29 23:04:32 2011 +0000
@@ -4578,6 +4578,12 @@
     return hwndframe;
 }
 
+/*
+ * Returns the position of the scrollbar in the scrollbox
+ * Parameters:
+ *          handle: Handle to the scrollbox to be queried.
+ *          orient: The vertical or horizontal scrollbar.
+ */
 int API dw_scrollbox_get_pos( HWND handle, int orient )
 {
     SCROLLINFO si;
@@ -4591,7 +4597,7 @@
     si.cbSize = sizeof(SCROLLINFO);
     si.fMask = SIF_POS;
 
-    /* Save the current scroll positions */
+    /* Get the current scroll positions */
     if(!GetScrollInfo(handle, bar, &si))
     {
         return -1;
@@ -4599,6 +4605,12 @@
     return si.nPos;
 }
 
+/*
+ * Gets the range for the scrollbar in the scrollbox.
+ * Parameters:
+ *          handle: Handle to the scrollbox to be queried.
+ *          orient: The vertical or horizontal scrollbar.
+ */
 int API dw_scrollbox_get_range( HWND handle, int orient )
 {
     SCROLLINFO si;
@@ -4612,7 +4624,7 @@
     si.cbSize = sizeof(SCROLLINFO);
     si.fMask = SIF_RANGE;
 
-    /* Save the current scroll positions */
+    /* Get the current scroll positions */
     if(!GetScrollInfo(handle, bar, &si))
     {
         return -1;