Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
by Unlicensed Unknown user

Read Part 2

Moving on with the UI code, I'd really like this class to handle the clicking events automatically, without my having to add in any code in the Accept loop of whatever procedure uses the class. 

...

 The Clarion Help has this to say about Register:

Panel

REGISTER( event, handler, object [,window] [,control] )

 

REGISTER

Registers an event handling procedure.

event

An integer constant, variable, expression, or EQUATE containing an event number. A value in the range 400h to 0FFFh is a User-defined event.

handler

A LONG variable, or expression containing the return value from ADDRESS for the PROCEDURE to handle the event.

object

A LONG integer constant, variable, or expression containing any 32-bit unique value to identify the specific handler. This is generally the return value of ADDRESS(SELF) when the handler is a CLASS method.

window

The label of the WINDOW or REPORT whose event to handle. If omitted, the current target WINDOW or REPORT is assumed.

control

An integer constant, EQUATE, variable, or expression containing the field number of the specific control whose event to handle. If omitted, the event is handled for every control on the window.

Can also be prototyped as REGISTEREVENT.

REGISTER registers an event handler PROCEDURE called internally by the currently active ACCEPT loop of the specified window whenever the specified event occurs. This may be a User-defined event, or any other event. User-defined event numbers can be defined as any integer between 400h and 0FFFh.

...