Ignore:
Timestamp:
Nov 17, 2008, 12:17:05 AM (17 years ago)
Author:
pr
Message:

Fix scroll bar bugs in textview controls. Bug 1086.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/textview.c

    r229 r374  
    183183
    184184/*
    185  *      Copyright (C) 2000 Ulrich M”ller.
     185 *      Copyright (C) 2000-2008 Ulrich M”ller.
    186186 *      This program is part of the XWorkplace package.
    187187 *      This program is free software; you can redistribute it and/or modify
     
    11001100 *
    11011101 *@@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
    11021103 *@@todo TXVWORDF_GLUEWITHNEXT
    11031104 */
     
    13101311                            {
    13111312                                // 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
    13131315                                             > prclView->xRight)
    13141316                                             // > ulWinCX)
     
    19551957 *      -- rclViewText: the text subrectangle (which
    19561958 *         is rclViewPaint minus borders).
     1959 *
     1960 *@@changed WarpIN V1.0.18 (2008-11-16) [pr]: fix cut/paste/typo. errors @@fixes 1086
    19571961 */
    19581962
     
    19851989    ptxvd->rclViewText.yBottom = ptxvd->rclViewPaint.yBottom + ptxvd->cdata.ulYBorder;
    19861990    ptxvd->rclViewText.xRight = ptxvd->rclViewPaint.xRight - ptxvd->cdata.ulXBorder;
    1987     ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ulXBorder;
     1991    ptxvd->rclViewText.yTop = ptxvd->rclViewPaint.yTop - ptxvd->cdata.ulYBorder;  // WarpIN V1.0.18
    19881992
    19891993    // now reposition scroll bars; their sizes may change
     
    19951999        ulOfs = 0;
    19962000        if (ptxvd->fHScrollVisible)
    1997             ulOfs = ulScrollCX;
     2001            ulOfs = ulScrollCY;  // WarpIN V1.0.18
    19982002        WinSetWindowPos(ptxvd->hwndVScroll,
    19992003                        HWND_TOP,
     
    20272031 *
    20282032 *@@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
    20292034 */
    20302035
     
    21032108                    AdjustViewRects(hwndTextView,
    21042109                                    ptxvd);
     2110                    FormatText2Screen(hwndTextView,  // WarpIN V1.0.18
     2111                                      ptxvd,
     2112                                      TRUE,   // fAlreadyRecursing
     2113                                      FALSE);   // quick format
    21052114                }
    21062115        }
     
    27672776 *
    27682777 *@@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
    27692779 */
    27702780
     
    28042814                    ulMsg = WM_HSCROLL;
    28052815                    usCmd = SB_LINERIGHT;
     2816                    usID = ID_HSCROLL;  // WarpIN V1.0.18
    28062817                break;
    28072818
     
    28092820                    ulMsg = WM_HSCROLL;
    28102821                    usCmd = SB_LINELEFT;
     2822                    usID = ID_HSCROLL;  // WarpIN V1.0.18
    28112823                break;
    28122824
     
    28382850                        ulMsg = WM_VSCROLL;
    28392851                    else
     2852                    {
    28402853                        ulMsg = WM_HSCROLL;
     2854                        usID = ID_HSCROLL;  // WarpIN V1.0.18
     2855                    }
    28412856
    28422857                    sPos = 0;
     
    28552870                        ulMsg = WM_HSCROLL;
    28562871                        sPos = ptxvd->xfd.szlWorkspace.cx;
     2872                        usID = ID_HSCROLL;  // WarpIN V1.0.18
    28572873                    }
    28582874
Note: See TracChangeset for help on using the changeset viewer.