Last change
on this file since 557 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 |
|
---|
5 | Namespace ActiveBasic
|
---|
6 | Namespace Windows
|
---|
7 | Namespace UI
|
---|
8 |
|
---|
9 | /*!
|
---|
10 | @date 2008/07/13
|
---|
11 | @brief ボタンを表すクラス。
|
---|
12 | @author Egtra
|
---|
13 | */
|
---|
14 | Class Button
|
---|
15 | Inherits Control
|
---|
16 | Protected
|
---|
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
|
---|
27 | Public
|
---|
28 | Sub RaiseClick()
|
---|
29 | OutputDebugString(Ex"RaiseClick\r\n")
|
---|
30 | OnClick(Args.Empty)
|
---|
31 | End Sub
|
---|
32 |
|
---|
33 | End Class
|
---|
34 |
|
---|
35 | End Namespace 'UI
|
---|
36 | End Namespace 'Widnows
|
---|
37 | End Namespace 'ActiveBasic
|
---|
Note:
See
TracBrowser
for help on using the repository browser.