wwWebControl::HookupEvent

Attaches an event an event handler to a control event.

For example, you use this method to wire an a button's Click event to your form's handler method that handles this event.

o.HookupEvent(lcEvent,loHandler,lcMethod)

Parameters

lcEvent

loHandler

lcMethod

Example

*** Hookup button click event to btnDelete_Click on Page Class
THIS.btnDelete = CREATEOBJECT("wwwebbutton",THIS)
THIS.btnDelete.Id = "btnDelete"
THIS.btnDelete.HookupEvent("Click",THIS,"btnDelete_Click")
THIS.btnDelete.Text = [Delete]
THIS.AddControl(THIS.btnDelete)

See also:

Class wwWebControl

© West Wind Technologies, 1996-2018 • Updated: 04/03/13
Comment or report problem with topic