Changeset 37

Show
Ignore:
Timestamp:
02/26/08 06:19:03 (8 months ago)
Author:
Chris Miller
Message:

Minor changes.

Files:

Legend:

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

    r33 r37  
    143143    // Call onLoad/load and focus a control at old time. 
    144144    FORM_LOAD_096 = 0x10, 
     145     
     146    // Parent controls now need to be container-controls; this removes that limit. 
     147    CONTROL_PARENT_096 = 0x20, 
    145148} 
    146149 
  • trunk/win32/dfl/control.d

    r36 r37  
    969969    private void _ctrladded(ControlEventArgs cea) 
    970970    { 
    971         /+ 
    972         if(!(_exStyle() & WS_EX_CONTROLPARENT)) 
    973         { 
    974             if(!(cbits & CBits.FORM)) 
    975             { 
    976                 //if((cea.control._style() & WS_TABSTOP) || (cea.control._exStyle() & WS_EX_CONTROLPARENT)) 
    977                     _exStyle(_exStyle() | WS_EX_CONTROLPARENT); 
    978             } 
    979         } 
    980         +/ 
    981         assert(getStyle(ControlStyles.CONTAINER_CONTROL), "Control added to non-container parent"); 
     971        if(Application._compat & DflCompat.CONTROL_PARENT_096) 
     972        { 
     973            if(!(_exStyle() & WS_EX_CONTROLPARENT)) 
     974            { 
     975                if(!(cbits & CBits.FORM)) 
     976                { 
     977                    //if((cea.control._style() & WS_TABSTOP) || (cea.control._exStyle() & WS_EX_CONTROLPARENT)) 
     978                        _exStyle(_exStyle() | WS_EX_CONTROLPARENT); 
     979                } 
     980            } 
     981        } 
     982        else 
     983        { 
     984            assert(getStyle(ControlStyles.CONTAINER_CONTROL), "Control added to non-container parent"); 
     985        } 
    982986         
    983987        onControlAdded(cea); 
  • trunk/win32/dfl/form.d

    r36 r37  
    28962896            else if(m.hWnd == form.handle || IsChild(form.handle, m.hWnd)) 
    28972897            { 
     2898                { 
     2899                    HWND hwfocus = GetFocus(); 
     2900                    if(IsChild(form.handle, hwfocus)) 
     2901                        form._lastSel = hwfocus; // ? 
     2902                } 
     2903                 
    28982904                switch(m.msg) 
    28992905                {