Changeset 4 for trunk/txlib

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

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

Location:
trunk/txlib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/txvers.h

    r1 r4  
    4040// Originally developed for LPTool/DFSee utilities, open-sourced in 2005 
    4141// 
    42 #define TXLIB_V "1.02 02-12-2005" // JvW Add EventHook/Async Input functions 
     42#define TXLIB_V "1.03 08-12-2005" // JvW Home/End in SBVIEW now PgLeft/PgRight 
     43//efine TXLIB_V "1.02 02-12-2005" // JvW Add EventHook/Async Input functions 
    4344//efine TXLIB_V "1.02 30-11-2005" // JvW PromptBox with Widgets fixed width 76 
    4445//efine TXLIB_V "1.02 29-11-2005" // JvW minor updates for NetLabs release 
  • 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            }