Changeset 4 for trunk/txlib/txwikey.c

Show
Ignore:
Timestamp:
12/11/05 17:00:44 (3 years ago)
Author:
jvw
Message:

Use Home/End as PgLeft/PgRight? in SBVIEW class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/txwikey.c

    r1 r4  
    386386            if (dat->leftcol != 0) 
    387387            { 
    388                dat->leftcol = 0; 
     388               if (dat->leftcol > sx) 
     389               { 
     390                  dat->leftcol -= sx; 
     391               } 
     392               else 
     393               { 
     394                  dat->leftcol = 0; 
     395               } 
    389396               upd = TRUE; 
    390397            } 
     
    394401            if (dat->leftcol != dat->maxcol) 
    395402            { 
    396                dat->leftcol = dat->maxcol; 
     403               if (dat->leftcol + sx < dat->maxcol) 
     404               { 
     405                  dat->leftcol += sx; 
     406               } 
     407               else 
     408               { 
     409                  dat->leftcol = dat->maxcol; 
     410               } 
    397411               upd = TRUE; 
    398412            }