source: trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/Button.ab@ 551

Last change on this file since 551 was 551, checked in by イグトランス (egtra), 16 years ago

Buttonの追加。WM_COMMANDから子のClickイベントを発生させる仕組みの追加など。

File size: 652 bytes
Line 
1'Classes/ActiveBasic/Windows/UI/Button.ab
2
3#require <Classes/ActiveBasic/Windows/UI/Control.ab>
4
5Namespace ActiveBasic
6Namespace Windows
7Namespace UI
8
9/*!
10@date 2008/07/13
11@brief ボタンを表すクラス。
12@author Egtra
13*/
14Class Button
15 Inherits Control
16Protected
17 Override Sub GetCreateStruct(ByRef cs As CREATESTRUCT)
18 With cs
19 .lpszClass = "BUTTON"
20 .style Or= BS_PUSHBUTTON
21 .x = 0
22 .y = 0
23 .cx = 0
24 .cy = 0
25 End With
26 End Sub
27Public
28 Sub RaiseClick()
29 OutputDebugString(Ex"RaiseClick\r\n")
30 OnClick(Args.Empty)
31 End Sub
32
33End Class
34
35End Namespace 'UI
36End Namespace 'Widnows
37End Namespace 'ActiveBasic
Note: See TracBrowser for help on using the repository browser.