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

foxpro
foxpro
* ** 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, 2025 • Updated: 2025-03-12
Comment or report problem with topic