Changeset 373 for trunk/src/helpers/textview.c
- Timestamp:
- Nov 16, 2008, 11:36:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/textview.c
r243 r373 183 183 184 184 /* 185 * Copyright (C) 2000 Ulrich Mller.185 * Copyright (C) 2000-2008 Ulrich Mller. 186 186 * This program is part of the XWorkplace package. 187 187 * This program is free software; you can redistribute it and/or modify … … 1100 1100 * 1101 1101 *@@changed V0.9.3 (2000-05-06) [umoeller]: largely rewritten; now handling paragraph and character formats 1102 *@@changed V1.0.18 (2008-11-16) [pr]: bodge formatting to remove unwanted scroll bars @@fixes 1086 1102 1103 *@@todo TXVWORDF_GLUEWITHNEXT 1103 1104 */ … … 1310 1311 { 1311 1312 // yes: check if the word still fits 1312 if ( (flbuf.lXCurrent + pWordThis->ulCXWithSpaces // ### 1313 // WarpIN V1.0.18 @@todo add fudge factor of 2 - makes things work 1314 if ( (flbuf.lXCurrent + pWordThis->ulCXWithSpaces + 2 1313 1315 > prclView->xRight) 1314 1316 // > ulWinCX) … … 1954 1956 * -- rclViewText: the text subrectangle (which 1955 1957 * is rclViewPaint minus borders). 1958 * 1959 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: fix cut/paste/typo. errors @@fixes 1086 1956 1960 */ 1957 1961 … … 1984 1988 ptxvd->rclViewText.yBottom = ptxvd->rclViewPaint.yBottom + ptxvd->cdata.ulYBorder; 1985 1989 ptxvd->rclViewText.xRight = ptxvd->rclViewPaint.xRight - ptxvd->cdata.ulXBorder; 1986 ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ul XBorder;1990 ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ulYBorder; // WarpIN V1.0.18 1987 1991 1988 1992 // now reposition scroll bars; their sizes may change … … 1994 1998 ulOfs = 0; 1995 1999 if (ptxvd->fHScrollVisible) 1996 ulOfs = ulScrollC X;2000 ulOfs = ulScrollCY; // WarpIN V1.0.18 1997 2001 WinSetWindowPos(ptxvd->scrw.hwndVScroll, 1998 2002 HWND_TOP, … … 2026 2030 * 2027 2031 *@@changed V0.9.3 (2000-05-05) [umoeller]: fixed buggy vertical scroll bars 2032 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: fix buggy horiz. scroll bars @@fixes 1086 2028 2033 */ 2029 2034 … … 2102 2107 AdjustViewRects(hwndTextView, 2103 2108 ptxvd); 2109 FormatText2Screen(hwndTextView, // WarpIN V1.0.18 2110 ptxvd, 2111 TRUE, // fAlreadyRecursing 2112 FALSE); // quick format 2104 2113 } 2105 2114 } … … 2562 2571 * 2563 2572 *@@added V1.0.1 (2003-01-25) [umoeller] 2573 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: check for horiz. scroll message @@fixes 1086 2564 2574 */ 2565 2575 … … 2585 2595 mp2); 2586 2596 } 2587 else if (ptxvd->fHScrollVisible) 2597 else if ( (msg == WM_HSCROLL) // WarpIN V1.0.18 2598 && (ptxvd->fHScrollVisible) 2599 ) 2588 2600 { 2589 2601 LONG cx = ptxvd->rclViewText.xRight - ptxvd->rclViewText.xLeft; … … 2786 2798 * 2787 2799 *@@added V1.0.0 (2002-08-12) [umoeller] 2800 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: added correct ID for horiz. scroll @@fixes 1086 2788 2801 */ 2789 2802 … … 2823 2836 ulMsg = WM_HSCROLL; 2824 2837 usCmd = SB_LINERIGHT; 2838 usID = ID_HSCROLL; // WarpIN V1.0.18 2825 2839 break; 2826 2840 … … 2828 2842 ulMsg = WM_HSCROLL; 2829 2843 usCmd = SB_LINELEFT; 2844 usID = ID_HSCROLL; // WarpIN V1.0.18 2830 2845 break; 2831 2846 … … 2857 2872 ulMsg = WM_VSCROLL; 2858 2873 else 2874 { 2859 2875 ulMsg = WM_HSCROLL; 2876 usID = ID_HSCROLL; // WarpIN V1.0.18 2877 } 2860 2878 2861 2879 sPos = 0; … … 2874 2892 ulMsg = WM_HSCROLL; 2875 2893 sPos = ptxvd->xfd.szlWorkspace.cx; 2894 usID = ID_HSCROLL; // WarpIN V1.0.18 2876 2895 } 2877 2896
Note:
See TracChangeset
for help on using the changeset viewer.