home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / actlib11 / tvtools / patches.tv < prev    next >
Encoding:
Text File  |  1993-01-21  |  4.2 KB  |  139 lines

  1. TV 1.03
  2. =======
  3.  
  4.  
  5. * TINPUTLI.CPP:
  6.  
  7.   BUG - When in overwrite mode at the end of the line,
  8.         strange characters may be added to the end.
  9.  
  10.    change  244:    if( (state & sfCursorIns) != 0 )
  11.            245:      strcpy( data + curPos, data + curPos + 1 );
  12.            246:    else
  13.  
  14.    into    244:    if( (state & sfCursorIns) != 0 )
  15.            245:      { if ( strlen(data) < maxLen ) strcpy( data + curPos, data + curPos + 1 ); }
  16.            246:    else
  17.  
  18.  
  19. * TEDITOR2.CPP:
  20.  
  21.   BUG - change   ushort TEditor::nextWord( ushort p )
  22.                  {
  23.                    while( p < bufLen && isWordChar(bufChar(p)) != 0 )
  24.                         p = nextChar(p);
  25.                    while( p < bufLen && isWordChar(bufChar(p)) == 0 )
  26.                         p = nextChar(p);
  27.                    return p;
  28.                  }
  29.  
  30.         into     ushort TEditor::nextWord( ushort p )
  31.                  {
  32.                    if ( isWordChar(bufChar(p)) )
  33.                       while ( p < bufLen && isWordChar(bufChar(p)) ) p = nextChar(p);
  34.                    else p = nextChar(p);
  35.  
  36.                    while( p < bufLen && ! isWordChar(bufChar(p)) ) p = nextChar(p);
  37.  
  38.                    return p;
  39.                  }
  40.                  
  41.  
  42. * TPARAMTE.CPP
  43.  
  44.   BUG - Displays garbage with format where sizeof() != 4.
  45.  
  46.         change      49:   paramList = &rec;
  47.         into        49:   paramList = rec;
  48.  
  49. * MSGBOX.CPP:
  50.  
  51.   BUG - messageBoxRect(), messageBox():
  52.         add   va_end( argptr );
  53.  
  54.   BUG - messageBoxRect(), messageBox():
  55.         change   va_start( argptr, aOptions )
  56.         into     va_start( argptr, fmt );
  57.  
  58.  
  59.   Adapt input line length:
  60.     inputBox(): change TRect r(0, 0, 60, 8);
  61.                 into   ushort len = max( strlen(aLabel) + 9 + limit, strlen(Title) + 11 );
  62.                        len = min( len, 60 );
  63.                        len = max( len , 24 );
  64.                        TRect r(0, 0, len, 8);
  65.  
  66.     inputBoxRect(): change TRect( 4 + strlen(aLabel), 2, dialog->size.x - 3, 3 );
  67.                     into   uchar x = 4 + strlen( aLabel );
  68.                            r = TRect( x, 2, min(x + limit + 2, dialog->size.x - 3), 3 );
  69.  
  70.  
  71.   Center 'OK/Cancel' buttons:
  72.     inputBoxRect(): change
  73.     r = TRect( dialog->size.x - 24, dialog->size.y - 4,
  74.                dialog->size.x - 14 , dialog->size.y - 2);
  75.                     into
  76.     r = TRect( dialog->size.x / 2 - 11, dialog->size.y - 4,
  77.                dialog->size.x / 2 - 1 , dialog->size.y - 2);
  78.  
  79.  
  80.  
  81. * HELP.H :   add   '#define Uses_fpstream'
  82.  
  83.  
  84. * Wrong system error messages
  85.   ===========================
  86.  
  87.   SYSTEM.H:  BUG   change   errorString[14]   into   errorString[15]
  88.  
  89.   TVTEXT2.CPP:  BUG
  90.  
  91.                 change
  92.  
  93.                 const char * const near TSystemError::errorString[] =
  94.                 {
  95.                 ...
  96.                 }  
  97.  
  98.                 into
  99.  
  100.                 const char * const near TSystemError::errorString[] =
  101.                 {
  102.                   "Disk is write-protected in drive %c",
  103.                   "Critical disk error on drive %c",     // unknown unit
  104.                   "Disk is not ready in drive %c",
  105.                   "Critical disk error on drive %c",     // unknown command
  106.                   "Data integrity error on drive %c",    // bad CRC
  107.                   "Critical disk error on drive %c",     // bad request
  108.                   "Seek error on drive %c",
  109.                   "Unknown media type in drive %c",
  110.                   "Sector not found on drive %c",
  111.                   "Printer out of paper",
  112.                   "Write fault on drive %c",
  113.                   "Read fault on drive %c",
  114.                   "General failure on drive %c",
  115.                   "Bad memory image of FAT detected",
  116.                   "Device access error"
  117.                   // invalid disk change ??
  118.                 }
  119.  
  120.  
  121. * SYSERR.CPP:
  122.  
  123.   Drive letter in uppercase:  change   drive + 'a'   into   drive + 'A'
  124.  
  125.  
  126.  
  127. * TWINDOW.CPP
  128.  
  129.   Allow use of arrows like Tab/shift-Tab.
  130.  
  131.   handleEvent(): after    case  kbTab:
  132.                  add      case  kbDown:
  133.                           case  kbRight:
  134.  
  135.                  after    case  kbShiftTab:
  136.                  add      case  kbUp:
  137.                           case  kbLeft:
  138.  
  139.