|
|
| version 1.5, 2003/11/05 16:15:44 | version 1.6, 2003/11/05 17:43:57 |
|---|---|
| Line 824 void toolwin_open(void) { | Line 824 void toolwin_open(void) { |
| if (!isPUMA) { | if (!isPUMA) { |
| toolwincreate(hWnd); | toolwincreate(hWnd); |
| } | } |
| #ifndef AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
| if (np2tool.posy < 35) np2tool.posy = 35; | |
| if (np2tool.posx < 5 ) np2tool.posx = 5; | |
| MoveWindow(hWnd, np2tool.posx, np2tool.posy, true); | |
| ShowWindow(hWnd); | |
| #else | |
| if (isPUMA) { | if (isPUMA) { |
| if (np2tool.posy < 35) np2tool.posy = 35; | if (np2tool.posy < 35) np2tool.posy = 35; |
| if (np2tool.posx < 5 ) np2tool.posx = 5; | if (np2tool.posx < 5 ) np2tool.posx = 5; |
| MoveWindow(hWnd, np2tool.posx, np2tool.posy, true); | MoveWindow(hWnd, np2tool.posx, np2tool.posy, true); |
| ShowWindow(hWnd); | ShowWindow(hWnd); |
| } | } |
| else{ | else { |
| SetDrawerParent(hWnd, hWndMain); | SetDrawerParent(hWnd, hWndMain); |
| SetDrawerOffsets(hWnd, (640-(bounds.right-bounds.left))/2-11, (640-(bounds.right-bounds.left))/2-11); | SetDrawerOffsets(hWnd, (640-(bounds.right-bounds.left))/2-11, (640-(bounds.right-bounds.left))/2-11); |
| SetDrawerPreferredEdge(hWnd, kWindowEdgeTop); | SetDrawerPreferredEdge(hWnd, kWindowEdgeTop); |
| OpenDrawer(hWnd, kWindowEdgeDefault, 1); | OpenDrawer(hWnd, kWindowEdgeDefault, 1); |
| } | } |
| #endif | |
| return; | return; |
| Line 851 twope_err1: | Line 857 twope_err1: |
| void toolwin_close(void) { | void toolwin_close(void) { |
| if (toolwin.hwnd) { | if (toolwin.hwnd) { |
| #ifndef AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER | |
| HideWindow(toolwin.hwnd); | |
| #else | |
| if (isPUMA) { | if (isPUMA) { |
| HideWindow(toolwin.hwnd); | HideWindow(toolwin.hwnd); |
| } | } |
| else { | else { |
| CloseDrawer(toolwin.hwnd, 0); | CloseDrawer(toolwin.hwnd, 0); |
| } | } |
| #endif | |
| RemoveReceiveHandler(dr, toolwin.hwnd); | RemoveReceiveHandler(dr, toolwin.hwnd); |
| toolwindestroy(); | toolwindestroy(); |
| DisposeWindow(toolwin.hwnd); | DisposeWindow(toolwin.hwnd); |