Ignore:
Timestamp:
Jul 22, 2008, 1:12:35 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

MouseLeave, MouseHoverが動作するようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/ControlEvent.sbp

    r561 r564  
    176176
    177177Public
    178     Sub AddMouseLeave(h As MouseHandler)
     178    Sub AddMouseLeave(h As Handler)
    179179        If IsNothing(mouseLeave) Then
    180180            mouseLeave = h
     
    183183        End If
    184184    End Sub
    185     Sub RemoveMouseLeave(h As MouseHandler)
     185    Sub RemoveMouseLeave(h As Handler)
    186186        If Not IsNothing(mouseLeave) Then
    187187            mouseLeave -= h
     
    189189    End Sub
    190190Protected
    191     Sub OnMouseLeave(e As MouseArgs)
     191    Sub OnMouseLeave(e As Args)
    192192        If Not IsNothing(mouseLeave) Then
    193193            mouseLeave(This, e)
     
    195195    End Sub
    196196Private
    197     mouseLeave As MouseHandler
     197    mouseLeave As Handler
    198198
    199199Public
     
    395395    destroy As Handler
    396396
     397Public
     398    Sub AddPaintBackground(h As PaintBackgroundHandler)
     399        If IsNothing(paintBackground) Then
     400            paintBackground = h
     401        Else
     402            paintBackground += h
     403        End If
     404    End Sub
     405    Sub RemovePaintBackground(h As PaintBackgroundHandler)
     406        If Not IsNothing(paintBackground) Then
     407            paintBackground -= h
     408        End If
     409    End Sub
     410Protected
     411    Sub OnPaintBackground(e As PaintBackgroundArgs)
     412        If Not IsNothing(paintBackground) Then
     413            paintBackground(This, e)
     414        End If
     415    End Sub
     416Private
     417    paintBackground As PaintBackgroundHandler
     418
Note: See TracChangeset for help on using the changeset viewer.