Changeset 104:3926f6c95d6f

Show
Ignore:
Timestamp:
02/10/08 15:46:13 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix: Scrollbar events

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dsss.conf

    r93 r104  
    33[dwt] 
    44type=library 
     5debugflags+=-g -gc -debug 
    56 
    67 
  • dwt/widgets/ScrollBar.d

    r82 r104  
    2727 
    2828import dwt.dwthelper.utils; 
     29import tango.util.log.Trace; 
     30void trc( long line ){ 
     31    //Trace.formatln( "ScrollBar {}", line ); 
     32} 
    2933 
    3034/** 
     
    896900 
    897901LRESULT wmScrollChild (int wParam, int lParam) { 
     902trc(__LINE__); 
    898903 
    899904    /* Do nothing when scrolling is ending */ 
  • dwt/widgets/Scrollable.d

    r82 r104  
    2424 
    2525import dwt.dwthelper.utils; 
     26import tango.util.log.Trace; 
     27void trc( long line ){ 
     28    //Trace.formatln( "Scrollable {}", line ); 
     29} 
    2630 
    2731/** 
     
    256260 
    257261override LRESULT WM_HSCROLL (int wParam, int lParam) { 
     262trc(__LINE__); 
    258263    LRESULT result = super.WM_HSCROLL (wParam, lParam); 
    259     if (result !is 0) return result; 
     264    if (result !is LRESULT.NULL) return result; 
    260265 
    261266    /* 
     
    273278 
    274279override LRESULT WM_MOUSEWHEEL (int wParam, int lParam) { 
     280trc(__LINE__); 
    275281    LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam); 
    276     if (result !is 0) return result; 
     282    if (result !is LRESULT.NULL) return result; 
    277283 
    278284    /* 
     
    342348 
    343349override LRESULT WM_SIZE (int wParam, int lParam) { 
     350trc(__LINE__); 
    344351    LRESULT code = callWindowProc (handle, OS.WM_SIZE, wParam, lParam); 
     352    assert( code !is LRESULT.NULL ); 
    345353    super.WM_SIZE (wParam, lParam); 
    346354    // widget may be disposed at this point 
     
    350358 
    351359override LRESULT WM_VSCROLL (int wParam, int lParam) { 
     360trc(__LINE__); 
    352361    LRESULT result = super.WM_VSCROLL (wParam, lParam); 
    353     if (result !is 0) return result; 
     362    if (result !is LRESULT.NULL) return result; 
    354363    /* 
    355364    * Bug on WinCE.  lParam should be NULL when the message is not sent 
     
    366375 
    367376LRESULT wmScroll (ScrollBar bar, bool update, HWND hwnd, int msg, int wParam, int lParam) { 
     377trc(__LINE__); 
    368378    LRESULT result = LRESULT.NULL; 
    369379    if (update) { 
  • dwt/widgets/Widget.d

    r82 r104  
    3131import tango.core.Thread; 
    3232import dwt.dwthelper.utils; 
     33import tango.util.log.Trace; 
     34void trc( long line ){ 
     35    //Trace.formatln( "Widget {}", line ); 
     36} 
    3337 
    3438/**