Module_MissingOnEvClicks

Type: Module Parent Module: N/A

On the Macintosh platform certain fields such as pushbuttons only generate #CLICK events. Therefore it is common practice for Mac only applications to omit the code that checks for a specific event. This module adds 'On evClick' commands to event handlers for Push button, Button areas, Radio buttons and Checkboxes where there was previously no such check. This is to make applications that were written to run only on Macintosh work properly under Windows.

Functionality

Check each field on all window classes. Only Push button, Button area, Radio button and Checkboxe fields are to be processed, ignore others. For each such field:

  1. Locate the $event method. If the field doesn't have one then ignore it.
  2. Check whether any line in the $event method starts with 'On ev'.
  3. If no such line was found then add a new line immediately prior to the first executable code line containing 'On evClick'.

Assumptions

None.

User Setup Required for this Module

None.