Changeset 94 for trunk/Lucide/SOURCE/gui


Ignore:
Timestamp:
Aug 7, 2006, 4:34:19 PM (15 years ago)
Author:
Eugene Romanenko
Message:

font substitution fixes, fixed missed 'Page' in NLS-file

Location:
trunk/Lucide/SOURCE/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/indexWindow.cpp

    r91 r94  
    4343#include "luutils.h"
    4444#include "tb_spl.h"
     45#include "messages.h"
    4546
    4647
     
    167168void IndexWindow::loadPagesList()
    168169{
     170    char *msgpage = newstrdupL( MSGS_PAGE );
    169171    CNRINFO ci;
    170172    ci.cb = sizeof( CNRINFO );
     
    174176    WinSendMsg( hWndIndex, CM_SETCNRINFO, MPFROMP( &ci ), MPFROMLONG( CMA_FLWINDOWATTR ) );
    175177
    176     char pgbuf[ 20 ];
     178    char pgbuf[ 64 ];
    177179    for ( int i = 0; i < totalpages; i++ )
    178180    {
    179         snprintf( pgbuf, sizeof(pgbuf), "Page %d", i + 1 );
     181        snprintf( pgbuf, sizeof(pgbuf), "%s %d", msgpage, i + 1 );
    180182        RECORDINSERT ri;
    181183        TreeRecord *pr = (TreeRecord *)WinSendMsg( hWndIndex, CM_ALLOCRECORD,
     
    198200        WinSendMsg( hWndIndex, CM_INSERTRECORD, MPFROMP( pr ), MPFROMP( &ri ) );
    199201    }
     202    delete msgpage;
    200203}
    201204
     
    225228        return true;
    226229    }
    227        
     230
    228231    SHORT atr = ( parent == NULL ) ? CMA_FIRST : CMA_FIRSTCHILD;
    229232    TreeRecord *pr = (TreeRecord *)WinSendMsg( hWndIndex, CM_QUERYRECORD,
  • trunk/Lucide/SOURCE/gui/messages.cpp

    r91 r94  
    6161const char *MSGS_OVERWRITE_FILE   = "MSGS_OVERWRITE_FILE";
    6262const char *MSGS_FILE_SAVE_ERROR  = "MSGS_FILE_SAVE_ERROR";
     63const char *MSGS_PAGE             = "MSGS_PAGE";
    6364
    6465// Settings dialog
  • trunk/Lucide/SOURCE/gui/messages.h

    r91 r94  
    6161extern const char *MSGS_OVERWRITE_FILE;
    6262extern const char *MSGS_FILE_SAVE_ERROR;
     63extern const char *MSGS_PAGE;
    6364
    6465// Settings dialog
Note: See TracChangeset for help on using the changeset viewer.