Changeset 103 for trunk/Lucide


Ignore:
Timestamp:
Aug 26, 2006, 6:26:12 PM (15 years ago)
Author:
Eugene Romanenko
Message:

fixes for zoom combo behaviour

Location:
trunk/Lucide
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/makefile

    r102 r103  
    11.autodepend
    22
    3 TEST=1
    4 VERSION=Beta 2.1
     3TEST=0
     4VERSION=Beta 3
    55
    66!if $(TEST)==1
  • trunk/Lucide/SOURCE/gui/toolbar.cpp

    r89 r103  
    112112static MRESULT EXPENTRY zeProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
    113113{
     114    char tmp[ 255 ] = "";
     115
    114116    switch ( msg )
    115117    {
     118
     119        // clear field on click
     120        case WM_BUTTON1CLICK:
     121        {
     122            WinQueryWindowText( hwnd, sizeof( tmp ), tmp );
     123            if ( strlen( tmp ) > 0 ) {
     124                strcpy( savedZeText, tmp );
     125            }
     126            WinSetWindowText( hwnd, "" );
     127        }
     128        break;
     129
     130        // restore text if empty when losing focus
    116131        case WM_SETFOCUS:
    117132        {
    118             char tmp[ 255 ] = "";
    119 
    120             if ( SHORT1FROMMP( mp2 ) )
    121             {
    122                 WinQueryWindowText( hwnd, sizeof( tmp ), tmp );
    123                 if ( strlen( tmp ) > 0 ) {
    124                     strcpy( savedZeText, tmp );
    125                 }
    126                 WinSetWindowText( hwnd, "" );
    127             }
    128             else
     133            if ( !SHORT1FROMMP( mp2 ) )
    129134            {
    130135                WinQueryWindowText( hwnd, sizeof( tmp ), tmp );
     
    135140        }
    136141        break;
     142
    137143    }
    138144    return pOldZeProc( hwnd, msg, mp1, mp2 );
  • trunk/Lucide/changelog

    r81 r103  
     1Beta-3:
     2  - Added basic printing features, you may print documents as image or
     3    as postscript on postscript-capable printers.
     4  - Fixed scrolling problem introduced in beta2 (closed tickets #53, #56, #64).
     5  - Drawing fixes and improvements (closed ticket #69).
     6  - Added 'Go to page' dialog, 'Save As...' menuitem works.
     7  - Djvu plugin improvements, get rid of ddjvuapi.dll.
     8  - Ability to compile plugins with gcc.
     9  - Fixes for font substitution (closed ticket #70).
     10  - NLS-files updates.
     11 
     12
    113Beta-2:
    214  - Avoided using of fontconfig library, created replacement, testing
Note: See TracChangeset for help on using the changeset viewer.