Mercurial > dwindows
comparison os2/dw.c @ 1814:b301d86a2683
Fixes for that last commit for OS/2... also now have the
notebook subclassed in case I need to make a change for
proper drawing of the notebook control with no pages packed.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 09 Oct 2012 04:57:52 +0000 |
parents | 9cb8660c5fa3 |
children | 6ae40234d531 |
comparison
equal
deleted
inserted
replaced
1813:9cb8660c5fa3 | 1814:b301d86a2683 |
---|---|
787 thisbox = WinQueryWindowPtr(box, QWP_USER); | 787 thisbox = WinQueryWindowPtr(box, QWP_USER); |
788 else | 788 else |
789 return 1; | 789 return 1; |
790 | 790 |
791 if(thisbox) | 791 if(thisbox) |
792 _focus_check_box(thisbox, handle, 3, thisbox->defaultitem); | 792 _focus_check_box(thisbox, handle, 3, _DW_DIRECTION_FORWARD, thisbox->defaultitem); |
793 return 0; | 793 return 0; |
794 } | 794 } |
795 | 795 |
796 /* This function finds the current widget in the | 796 /* This function finds the current widget in the |
797 * layout and moves the current focus to the next item. | 797 * layout and moves the current focus to the next item. |
4168 WinSendMsg(hwnd, BM_SETDEFAULT, 0, 0); | 4168 WinSendMsg(hwnd, BM_SETDEFAULT, 0, 0); |
4169 return FALSE; | 4169 return FALSE; |
4170 } | 4170 } |
4171 else if(!(CHARMSG(&msg)->fs & KC_KEYUP) && (CHARMSG(&msg)->vkey == VK_LEFT || CHARMSG(&msg)->vkey == VK_UP)) | 4171 else if(!(CHARMSG(&msg)->fs & KC_KEYUP) && (CHARMSG(&msg)->vkey == VK_LEFT || CHARMSG(&msg)->vkey == VK_UP)) |
4172 { | 4172 { |
4173 _shift_focus_back(hwnd); | 4173 _shift_focus(hwnd, _DW_DIRECTION_BACKWARD); |
4174 return FALSE; | 4174 return FALSE; |
4175 } | 4175 } |
4176 else if(!(CHARMSG(&msg)->fs & KC_KEYUP) && (CHARMSG(&msg)->vkey == VK_RIGHT || CHARMSG(&msg)->vkey == VK_DOWN)) | 4176 else if(!(CHARMSG(&msg)->fs & KC_KEYUP) && (CHARMSG(&msg)->vkey == VK_RIGHT || CHARMSG(&msg)->vkey == VK_DOWN)) |
4177 { | 4177 { |
4178 _shift_focus(hwnd, _DW_DIRECTION_FORWARD); | 4178 _shift_focus(hwnd, _DW_DIRECTION_FORWARD); |