changeset 538:5c1ee7f6e7ff

More merging with Windows, removed code to reverse tabbing for vertical boxes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 25 Mar 2004 19:52:57 +0000
parents a3b2e2244c18
children 8f80ed604a89
files os2/dw.c
diffstat 1 files changed, 6 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Wed Mar 24 07:43:23 2004 +0000
+++ b/os2/dw.c	Thu Mar 25 19:52:57 2004 +0000
@@ -457,7 +457,7 @@
 
 int _focus_check_box(Box *box, HWND handle, int start, HWND defaultitem)
 {
-	int z, n;
+	int z;
 	static HWND lasthwnd, firsthwnd;
     static int finish_searching;
 
@@ -483,14 +483,8 @@
 		firsthwnd = 0;
 	}
 
-	for(n=0;n<box->count;n++)
-	{
-		/* Vertical boxes are inverted on OS/2 */
-		if(box->type == DW_VERT)
-			z = n;
-		else
-			z = box->count - n - 1;
-
+	for(z=box->count-1;z>-1;z--)
+	{
 		if(box->items[z].type == TYPEBOX)
 		{
 			Box *thisbox = WinQueryWindowPtr(box->items[z].hwnd, QWP_USER);
@@ -585,7 +579,7 @@
 
 int _focus_check_box_back(Box *box, HWND handle, int start, HWND defaultitem)
 {
-	int z, n;
+	int z;
 	static HWND lasthwnd, firsthwnd;
     static int finish_searching;
 
@@ -611,14 +605,8 @@
 		firsthwnd = 0;
 	}
 
-	for(n=0;n<box->count;n++)
-	{
-		/* Vertical boxes are inverted on OS/2 */
-		if(box->type == DW_VERT)
-			z = box->count - n - 1;
-		else
-			z = n;
-
+	for(z=0;z<box->count;z++)
+	{
 		if(box->items[z].type == TYPEBOX)
 		{
 			Box *thisbox = WinQueryWindowPtr(box->items[z].hwnd, QWP_USER);