comparison os2/dw.c @ 904:6ed34b83a741

Fixed scrollbox tab and shift tab focus shifting on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 19 Apr 2011 04:47:38 +0000
parents 39a74ebfdd0d
children 71b0e132d9df
comparison
equal deleted inserted replaced
903:db26726118ba 904:6ed34b83a741
589 589
590 if(notebox && _focus_check_box(notebox, handle, start == 3 ? 3 : 0, defaultitem)) 590 if(notebox && _focus_check_box(notebox, handle, start == 3 ? 3 : 0, defaultitem))
591 return 1; 591 return 1;
592 } 592 }
593 } 593 }
594 else if(strncmp(tmpbuf, ScrollClassName, strlen(ScrollClassName)+1)==0) /* Scrollbox */
595 {
596 /* Get the box window handle */
597 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_box");
598
599 if(mybox)
600 {
601 Box *scrollbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER);
602
603 if(scrollbox && _focus_check_box(scrollbox, handle, start == 3 ? 3 : 0, defaultitem))
604 return 1;
605 }
606 }
594 } 607 }
595 } 608 }
596 } 609 }
597 return 0; 610 return 0;
598 } 611 }
710 notebox = (Box *)WinQueryWindowPtr(page, QWP_USER); 723 notebox = (Box *)WinQueryWindowPtr(page, QWP_USER);
711 724
712 if(notebox && _focus_check_box_back(notebox, handle, start == 3 ? 3 : 0, defaultitem)) 725 if(notebox && _focus_check_box_back(notebox, handle, start == 3 ? 3 : 0, defaultitem))
713 return 1; 726 return 1;
714 } 727 }
728 }
729 else if(strncmp(tmpbuf, ScrollClassName, strlen(ScrollClassName)+1)==0) /* Scrollbox */
730 {
731 /* Get the box window handle */
732 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_box");
733
734 if(mybox)
735 {
736 Box *scrollbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER);
737
738 if(scrollbox && _focus_check_box_back(scrollbox, handle, start == 3 ? 3 : 0, defaultitem))
739 return 1;
740 }
715 } 741 }
716 } 742 }
717 } 743 }
718 } 744 }
719 return 0; 745 return 0;