Ignore:
Timestamp:
Jul 21, 2008, 6:31:41 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

EditBox, TaskMsgの追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/EventArgs.ab

    r551 r561  
    2323    End Sub
    2424
    25     Function Msg() As DWord
     25    Const Function Msg() As DWord
    2626        Msg = msg
    2727    End Function
    2828
    29 '   Function HWnd() As HWND
     29'   Const Function HWnd() As HWND
    3030'       HWnd = hwnd
    3131'   End Function
    3232
    33     Function WParam() As WPARAM
     33    Const Function WParam() As WPARAM
    3434        WParam = wp
    3535    End Function
    3636
    37     Function LParam() As LPARAM
     37    Const Function LParam() As LPARAM
    3838        LParam = lp
    3939    End Function
    4040
    41     Function LResult() As LRESULT
     41    Const Function LResult() As LRESULT
    4242        LResult = lr
    4343    End Function
     
    6464    End Sub
    6565
    66     Function Handle() As HDC
     66    Const Function Handle() As HDC
    6767        Handle = hdc
    6868    End Function
    6969
    70     Function ClipRect() As RECT
     70    Const Function ClipRect() As RECT
    7171        ClipRect = rc
    7272    End Function
     
    8686    End Sub
    8787
    88     Function Handled() As Boolean
     88    Const Function Handled() As Boolean
    8989        Handled = h
    9090    End Function
     
    386386    End Sub
    387387
    388     Function Alt() As Boolean
     388    Const Function Alt() As Boolean
    389389        Alt = key And Keys.Menu
    390390    End Function
    391391
    392     Function Control() As Boolean
     392    Const Function Control() As Boolean
    393393        Control = key And Keys.Control
    394394    End Function
    395395
    396     Function Shift() As Boolean
     396    Const Function Shift() As Boolean
    397397        Shift = key And Keys.Shift
    398398    End Function
    399399
    400     Function KeyCode() As Keys
     400    Const Function KeyCode() As Keys
    401401        Dim k = key As DWord
    402402        Dim mask = Keys.KeyCode As DWord
     
    404404    End Function
    405405
    406     Function KeyData() As Keys
     406    Const Function KeyData() As Keys
    407407        KeyData = key
    408408    End Function
    409409
    410     Function Modifiers() As Keys
     410    Const Function Modifiers() As Keys
    411411        Dim k = key As DWord
    412412        Dim mask = Keys.Modifiers As DWord
     
    414414    End Function
    415415
    416     Function KeyValue() As Long
     416    Const Function KeyValue() As Long
    417417        KeyValue = key As Long
    418418    End Function
     
    422422    End Sub
    423423
    424     Function Handled() As Boolean
     424    Const Function Handled() As Boolean
    425425        Handled = h
    426426    End Function
     
    498498    End Sub
    499499
    500     Function Cancel() As Boolean
     500    Const Function Cancel() As Boolean
    501501        Cancel = c
    502502    End Function
     
    510510
    511511Delegate Sub FormClosingHandler(sender As Object, e As FormClosingArgs)
     512
     513Class ResizeArgs
     514    Inherits Args
     515Public
     516    Sub ResizeArgs(resizeType As Long, X As Long, Y As Long)
     517        rt = resizeType
     518        x = X
     519        y = Y
     520    End Sub
     521
     522    Sub ResizeArgs(wp As WPARAM, lp As LPARAM)
     523        rt = wp As Long
     524        x = GET_X_LPARAM(lp)
     525        y = GET_Y_LPARAM(lp)
     526    End Sub
     527
     528    Function ResizeType() As Long
     529        ResizeType = rt
     530    End Function
     531
     532    Function X() As Long
     533        X = x
     534    End Function
     535
     536    Function Y() As Long
     537        Y = y
     538    End Function
     539Private
     540    rt As Long
     541    x As Long
     542    y As Long
     543End Class
     544
     545Delegate Sub ResizeHandler(sender As Object, e As ResizeArgs)
    512546
    513547End Namespace 'UI
Note: See TracChangeset for help on using the changeset viewer.