Changeset 51

Show
Ignore:
Timestamp:
03/07/08 11:34:49 (7 months ago)
Author:
Chris Miller
Message:

Fixed issues with DMD 1.028.
Added RichTextBox?.selectionBold.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/win32/dfl/base.d

    r49 r51  
    349349abstract class WaitHandle 
    350350{ 
    351     const int WAIT_TIMEOUT = .WAIT_TIMEOUT; 
     351    const int WAIT_TIMEOUT = dfl.internal.winapi.WAIT_TIMEOUT; // DMD 1.028: needs fqn, otherwise conflicts with std.thread 
    352352    const HANDLE INVALID_HANDLE = .INVALID_HANDLE_VALUE; 
    353353     
  • trunk/win32/dfl/control.d

    r49 r51  
    10471047            +/ 
    10481048             
    1049             return droptarget != null; 
     1049            return droptarget !is null; 
    10501050        } 
    10511051    } 
  • trunk/win32/dfl/richtextbox.d

    r49 r51  
    577577     
    578578    /// 
     579    final void selectionBold(bool byes) // setter 
     580    { 
     581        if(!created) 
     582            return; 
     583         
     584        CHARFORMAT2A cf; 
     585         
     586        cf.cbSize = cf.sizeof; 
     587        cf.dwMask = CFM_BOLD; 
     588        if(byes) 
     589            cf.dwEffects |= CFE_BOLD; 
     590        else 
     591            cf.dwEffects &= ~CFE_BOLD; 
     592        _setFormat(&cf); 
     593    } 
     594     
     595    /// ditto 
     596    final bool selectionBold() // getter 
     597    { 
     598        if(created) 
     599        { 
     600            CHARFORMAT2A cf; 
     601             
     602            cf.cbSize = cf.sizeof; 
     603            cf.dwMask = CFM_BOLD; 
     604            _getFormat(&cf); 
     605             
     606            return (cf.dwEffects & CFE_BOLD) == CFE_BOLD; 
     607        } 
     608        return false; 
     609    } 
     610     
     611     
     612    /// 
    579613    final void selectionUnderline(bool byes) // setter 
    580614    {