Develop and Download Open Source Software

Browse CVS Repository

Contents of /exerb/exerbtk/test/form_event.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Fri Feb 13 15:05:04 2004 UTC (20 years, 2 months ago) by yuya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
* etk/etk.rb経由でetklib.soを読み込むように変更

1 #! /usr/bin/ruby
2
3 #==============================================================================#
4 # $Id: form_event.rb,v 1.3 2004/01/25 05:25:40 yuya Exp $
5 #==============================================================================#
6
7 require 'etk/etk'
8
9 #==============================================================================#
10
11 class MyForm < Etk::Form
12
13 def initialize
14 self.set_client_size(300, 200)
15 end
16
17 def on_load(arg)
18 p([:on_load, arg])
19 end
20
21 def on_disposed(arg)
22 p([:on_disposed, arg])
23 end
24
25 def on_closed(arg)
26 p([:on_closed, arg])
27 end
28
29 def on_click(arg)
30 p([:on_click, arg])
31 end
32
33 def on_doubleclick(arg)
34 p([:on_doubleclick, arg])
35 end
36
37 def on_mouse_down(arg)
38 p([:on_mouse_down, arg])
39 end
40
41 def on_mouse_up(arg)
42 p([:on_mouse_up, arg])
43 end
44
45 end
46
47 #==============================================================================#
48
49 Etk.main(MyForm.new)
50
51 #==============================================================================#
52 #==============================================================================#

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26