Thread Rating:
  • 487 Vote(s) - 2.87 Average
  • 1
  • 2
  • 3
  • 4
  • 5
イベントハンドラについて
09-22-2011, 10:25 AM, (This post was last modified: 09-22-2011, 10:27 AM by nasuB.)
#3
RE: イベントハンドラについて

こにゃにゃちわ。

リゾート地で、バケーションだったのですっかり焼きナス状態です。

onマクロ使わない方法は、こんなんでいかがっすか?

Code:
{def eh = {EventHandler
                    Action,
                   {proc {e:Event, et:EventTarget}:void
                            {popup-message "Fired....."}
                   }
                }
}
{CommandButton
       label = "fire!",
       eh
}

もしくはコード内でEventHandlerを追加するには、

Code:
{def cb = {CommandButton
                   label = "fire!"
               }
}
{value
    {cb.add-event-handler eh}
     cb
}


ただ、この場合でもonマクロを使った方がシンプルかも。。

Code:
{def eh = {on Action do
                    {popup-message "Fired....."}
               }
}

VLEは分からないので、誰かヘルプ!!


-B


Messages In This Thread
イベントハンドラについて - by tutumi - 09-21-2011, 10:57 AM
RE: イベントハンドラについて - by nasuB - 09-22-2011, 10:25 AM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('283')