Mercurial > dwindows
comparison os2/dw.c @ 1507:fbe9028af341
Make sure OS/2 tooltips are visible on the screen.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 27 Dec 2011 00:15:51 +0000 |
parents | c6ab88dcf016 |
children | 65861fedc4b4 |
comparison
equal
deleted
inserted
replaced
1506:308bfa8426db | 1507:fbe9028af341 |
---|---|
1648 txtPointl[TXTBOX_TOPLEFT ].x + 8; | 1648 txtPointl[TXTBOX_TOPLEFT ].x + 8; |
1649 | 1649 |
1650 lHight = txtPointl[TXTBOX_TOPLEFT].y - | 1650 lHight = txtPointl[TXTBOX_TOPLEFT].y - |
1651 txtPointl[TXTBOX_BOTTOMLEFT].y + 8; | 1651 txtPointl[TXTBOX_BOTTOMLEFT].y + 8; |
1652 | 1652 |
1653 ptlWork.y -= lHight; | 1653 ptlWork.y -= lHight + 2; |
1654 | |
1655 /* Make sure it is visible on the screen */ | |
1656 if(ptlWork.x + lWidth > dw_screen_width()) | |
1657 { | |
1658 ptlWork.x = dw_screen_width() - lWidth; | |
1659 if(ptlWork.x < 0) | |
1660 ptlWork.x = 0; | |
1661 } | |
1654 | 1662 |
1655 bubbleproc = (void *)WinSubclassWindow(hwndBubble, _BubbleProc); | 1663 bubbleproc = (void *)WinSubclassWindow(hwndBubble, _BubbleProc); |
1656 | 1664 |
1657 if(bubbleproc) | 1665 if(bubbleproc) |
1658 WinSetWindowPtr(hwndBubble, QWP_USER, bubbleproc); | 1666 WinSetWindowPtr(hwndBubble, QWP_USER, bubbleproc); |