# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301439872 0 # Node ID d51e958aad95bcb480dbd2de485cd67ac9469449 # Parent 89dd3e442e7ea8c6e2044a14caa915bf189d7167 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. diff -r 89dd3e442e7e -r d51e958aad95 gtk/dw.c --- 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. diff -r 89dd3e442e7e -r d51e958aad95 gtk3/dw.c --- 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. diff -r 89dd3e442e7e -r d51e958aad95 win/dw.c --- 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;