Changeset 453


Ignore:
Timestamp:
May 10, 2010, 8:01:31 AM (12 years ago)
Author:
Silvan Scherrer
Message:

some cosmetic changes

Location:
trunk/Lucide
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/toolbar.cpp

    r451 r453  
    164164    pOldTbProc = WinSubclassWindow( hToolBar, tbProc );
    165165
     166    // used for different purposes
     167    char pgnum[ 32 ];
     168    HPS hps;
     169
    166170    AddBtnStruct bs;
    167171
     
    236240                                     0,0,0,0, hToolBar, HWND_TOP, TBID_PAGENUM, NULL, NULL );
    237241    WinSetPresParam( cs.ctrlHandle, PP_FONTNAMESIZE, deffontlen, deffont );
    238     cs.cx = 50;
    239     cs.cy = 0;
     242    // calculate the width
     243    snprintf( pgnum, sizeof( pgnum ), "%d", 99999 );
     244    hps = WinGetPS( cs.ctrlHandle );
     245    cs.cx = getStringPixSize( hps, pgnum ) + 4;
     246    WinReleasePS( hps );
     247
     248    cs.cy = 2;
    240249    cs.bubbleText = NULL;
    241250    WinSendMsg( hToolBar, TBM_ADDCONTROL, (MPARAM)&cs, MPVOID );
     
    248257    WinSetPresParam( cs.ctrlHandle, PP_BACKGROUNDCOLORINDEX, sizeof( ULONG ), &syscmenu );
    249258    char *pgfrm = newstrdupL( TB_PAGENUM );
    250     char pgnum[ 32 ];
    251     snprintf( pgnum, sizeof( pgnum ), pgfrm, 9999 );
     259    snprintf( pgnum, sizeof( pgnum ), pgfrm, 99999 );
    252260    delete pgfrm;
    253     HPS hps = WinGetPS( cs.ctrlHandle );
    254     cs.cx = getStringPixSize( hps, pgnum ) + 4;
     261    hps = WinGetPS( cs.ctrlHandle );
     262    cs.cx = getStringPixSize( hps, pgnum );
    255263    WinReleasePS( hps );
    256264    cs.cy = 0;
  • trunk/Lucide/lng/Lucide_de.lng

    r451 r453  
    165165#
    166166AD_ABOUT=šber
    167 AD_DESCRIPTION=Plugin-basierter Dokumentbetrachter fr zahlreicher Dateiformate
     167AD_DESCRIPTION=Plugin-basierter Dokumentbetrachter fr zahlreiche Dateiformate
    168168AD_COPYRIGHTS=(c) Eugene Romanenko, Dmitry A. Kuminov (netlabs.org) in Zusammenarbeit mit Serenity Systems International
    169169AD_OK=~OK
Note: See TracChangeset for help on using the changeset viewer.