Module_WindowBobjs

Type: Module Parent Module: N/A

OMNIS 7 libraries that are converted to OMNIS Studio using the built-in converter display a different combination of foreground and background color in background objects on window classes. Also the width of Omnis 7 labels is often insufficient to accomodate the text to be displayed which results in truncation. This module can be used to set the back pattern, backcolor, forecolor and width properties of all window background objects. You can change the pattern, color and width used to suit your requirements.

Functionality

Only process window objects. Reports are not processed.

Process each background object on the window in turn.

Background objects of type kText only

These will be processed if any of the following apply:

  1. They have a backpattern property value not = 15
  2. They have a backcolor property value not = kColorWindow
  3. They have a width property value less than 80 pixels

For background objects that are processed:

  1. The backpattern property value is set to 15
  2. The backcolor property value is set to kColorWindow
  3. The width property value is set to 80

A count of the number of objects fixed in each class is recorded in the log.

Assumptions

  1. None.

User Setup Required for this Module

  1. Prior to running this module, the developer should review the default color and backpattern that will be set, and if these are not correct make any changes required to the code (see above).