- Timestamp:
- Jul 21, 2008, 6:31:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/EventArgs.ab
r551 r561 23 23 End Sub 24 24 25 Function Msg() As DWord25 Const Function Msg() As DWord 26 26 Msg = msg 27 27 End Function 28 28 29 ' Function HWnd() As HWND29 ' Const Function HWnd() As HWND 30 30 ' HWnd = hwnd 31 31 ' End Function 32 32 33 Function WParam() As WPARAM33 Const Function WParam() As WPARAM 34 34 WParam = wp 35 35 End Function 36 36 37 Function LParam() As LPARAM37 Const Function LParam() As LPARAM 38 38 LParam = lp 39 39 End Function 40 40 41 Function LResult() As LRESULT41 Const Function LResult() As LRESULT 42 42 LResult = lr 43 43 End Function … … 64 64 End Sub 65 65 66 Function Handle() As HDC66 Const Function Handle() As HDC 67 67 Handle = hdc 68 68 End Function 69 69 70 Function ClipRect() As RECT70 Const Function ClipRect() As RECT 71 71 ClipRect = rc 72 72 End Function … … 86 86 End Sub 87 87 88 Function Handled() As Boolean88 Const Function Handled() As Boolean 89 89 Handled = h 90 90 End Function … … 386 386 End Sub 387 387 388 Function Alt() As Boolean388 Const Function Alt() As Boolean 389 389 Alt = key And Keys.Menu 390 390 End Function 391 391 392 Function Control() As Boolean392 Const Function Control() As Boolean 393 393 Control = key And Keys.Control 394 394 End Function 395 395 396 Function Shift() As Boolean396 Const Function Shift() As Boolean 397 397 Shift = key And Keys.Shift 398 398 End Function 399 399 400 Function KeyCode() As Keys400 Const Function KeyCode() As Keys 401 401 Dim k = key As DWord 402 402 Dim mask = Keys.KeyCode As DWord … … 404 404 End Function 405 405 406 Function KeyData() As Keys406 Const Function KeyData() As Keys 407 407 KeyData = key 408 408 End Function 409 409 410 Function Modifiers() As Keys410 Const Function Modifiers() As Keys 411 411 Dim k = key As DWord 412 412 Dim mask = Keys.Modifiers As DWord … … 414 414 End Function 415 415 416 Function KeyValue() As Long416 Const Function KeyValue() As Long 417 417 KeyValue = key As Long 418 418 End Function … … 422 422 End Sub 423 423 424 Function Handled() As Boolean424 Const Function Handled() As Boolean 425 425 Handled = h 426 426 End Function … … 498 498 End Sub 499 499 500 Function Cancel() As Boolean500 Const Function Cancel() As Boolean 501 501 Cancel = c 502 502 End Function … … 510 510 511 511 Delegate Sub FormClosingHandler(sender As Object, e As FormClosingArgs) 512 513 Class ResizeArgs 514 Inherits Args 515 Public 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 539 Private 540 rt As Long 541 x As Long 542 y As Long 543 End Class 544 545 Delegate Sub ResizeHandler(sender As Object, e As ResizeArgs) 512 546 513 547 End Namespace 'UI
Note:
See TracChangeset
for help on using the changeset viewer.