Changeset 374 for branches/branch-1-0/src/helpers/textview.c
- Timestamp:
- Nov 17, 2008, 12:17:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/textview.c
r229 r374 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) … … 1955 1957 * -- rclViewText: the text subrectangle (which 1956 1958 * is rclViewPaint minus borders). 1959 * 1960 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: fix cut/paste/typo. errors @@fixes 1086 1957 1961 */ 1958 1962 … … 1985 1989 ptxvd->rclViewText.yBottom = ptxvd->rclViewPaint.yBottom + ptxvd->cdata.ulYBorder; 1986 1990 ptxvd->rclViewText.xRight = ptxvd->rclViewPaint.xRight - ptxvd->cdata.ulXBorder; 1987 ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ul XBorder;1991 ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ulYBorder; // WarpIN V1.0.18 1988 1992 1989 1993 // now reposition scroll bars; their sizes may change … … 1995 1999 ulOfs = 0; 1996 2000 if (ptxvd->fHScrollVisible) 1997 ulOfs = ulScrollC X;2001 ulOfs = ulScrollCY; // WarpIN V1.0.18 1998 2002 WinSetWindowPos(ptxvd->hwndVScroll, 1999 2003 HWND_TOP, … … 2027 2031 * 2028 2032 *@@changed V0.9.3 (2000-05-05) [umoeller]: fixed buggy vertical scroll bars 2033 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: fix buggy horiz. scroll bars @@fixes 1086 2029 2034 */ 2030 2035 … … 2103 2108 AdjustViewRects(hwndTextView, 2104 2109 ptxvd); 2110 FormatText2Screen(hwndTextView, // WarpIN V1.0.18 2111 ptxvd, 2112 TRUE, // fAlreadyRecursing 2113 FALSE); // quick format 2105 2114 } 2106 2115 } … … 2767 2776 * 2768 2777 *@@added V1.0.0 (2002-08-12) [umoeller] 2778 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: added correct ID for horiz. scroll @@fixes 1086 2769 2779 */ 2770 2780 … … 2804 2814 ulMsg = WM_HSCROLL; 2805 2815 usCmd = SB_LINERIGHT; 2816 usID = ID_HSCROLL; // WarpIN V1.0.18 2806 2817 break; 2807 2818 … … 2809 2820 ulMsg = WM_HSCROLL; 2810 2821 usCmd = SB_LINELEFT; 2822 usID = ID_HSCROLL; // WarpIN V1.0.18 2811 2823 break; 2812 2824 … … 2838 2850 ulMsg = WM_VSCROLL; 2839 2851 else 2852 { 2840 2853 ulMsg = WM_HSCROLL; 2854 usID = ID_HSCROLL; // WarpIN V1.0.18 2855 } 2841 2856 2842 2857 sPos = 0; … … 2855 2870 ulMsg = WM_HSCROLL; 2856 2871 sPos = ptxvd->xfd.szlWorkspace.cx; 2872 usID = ID_HSCROLL; // WarpIN V1.0.18 2857 2873 } 2858 2874
Note:
See TracChangeset
for help on using the changeset viewer.