Changeset 642 for trunk/ab5.0
- Timestamp:
- Oct 17, 2008, 12:45:59 AM (16 years ago)
- Location:
- trunk/ab5.0/ablib
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/TestCase/UI_Sample/mouse_watcher.ab
r611 r642 2 2 #require <Classes/ActiveBasic/Windows/UI/ListBox.ab> 3 3 #require <Classes/ActiveBasic/Windows/UI/Application.ab> 4 #require <Classes/ActiveBasic/Windows/UI/CheckBox.ab> 4 5 5 6 #resource "UI_Sample.rc" … … 43 44 End With 44 45 46 checkBoxShowMoveEvent = New CheckBox 47 With checkBoxShowMoveEvent 48 .Create(This, 0, 0, 0) 49 .Move(320, 60, 200, 20) 50 .Text = "Moveイベントを表示する" 51 .SendMessage(WM_SETFONT, wpFont, 0) 52 End With 53 45 54 Show(SW_SHOWDEFAULT) 46 55 End Sub … … 51 60 list.Items.Clear() 52 61 LockWindowUpdate(0) 62 checkBoxShowMoveEvent.AutoCheck = False 53 63 End Sub 54 64 … … 66 76 67 77 Sub OnMouseMove(sender As Object, e As MouseArgs) 68 OnMouseEvent("Move", e) 78 If checkBoxShowMoveEvent.Checked Then 79 OnMouseEvent("Move", e) 80 End If 69 81 End Sub 70 82 … … 98 110 list As ListBox 99 111 buttonClear As Button 112 checkBoxShowMoveEvent As CheckBox 100 113 End Class 101 114 -
trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/Button.ab
r637 r642 1 1 'Classes/ActiveBasic/Windows/UI/Button.ab 2 2 3 #require <Classes/ActiveBasic/Windows/UI/ Control.ab>3 #require <Classes/ActiveBasic/Windows/UI/ButtonBase.ab> 4 4 5 5 Namespace ActiveBasic … … 13 13 */ 14 14 Class Button 15 Inherits WmCommandControl15 Inherits ButtonBase 16 16 Protected 17 17 Override Sub GetCreateStruct(ByRef cs As CREATESTRUCT) 18 With cs 19 .lpszClass = "BUTTON" 20 .style Or= BS_PUSHBUTTON 21 End With 18 Super.GetCreateStruct(cs) 19 cs.style Or= BS_PUSHBUTTON 22 20 End Sub 23 21 Public 24 Sub RaiseClick()25 OnClick(Args.Empty)26 End Sub27 28 Override Function RaiseCommandEvent(notificationCode As Word) As Boolean29 Dim lr As LRESULT30 RaiseCommandEvent = False31 Select Case notificationCode32 Case BN_CLICKED33 RaiseCommandEvent = OnClick(Args.Empty)34 Case BN_DBLCLK35 RaiseCommandEvent = OnDoubleClick(Args.Empty)36 Case BN_SETFOCUS37 RaiseCommandEvent = ProcessMessage(WM_SETFOCUS, 0, 0, lr)38 Case BN_KILLFOCUS39 RaiseCommandEvent = ProcessMessage(WM_KILLFOCUS, 0, 0, lr)40 'ここに挙げられなかったBNメッセージは、16ビットWindowsとの互換性のためとされているもの。41 End Select42 End Function43 22 44 23 End Class
Note:
See TracChangeset
for help on using the changeset viewer.