Column headers

The column headers indicate what information is displayed in the scrolling window when it’s in normal mode. Typically, each header is a push button that the user can click to indicate how the lookup should be sorted.

[spacer]

Adding column headers

To add column headers to a lookup window, use the following procedure.

  1. Create the column header fields.

The column header fields are typically local fields for the lookup form. They have the following characteristics:

[spacer]

Control Type

Push Button

Static Type

Text


Specify a text caption that is appropriate for each column of the lookup.

  1. Add the column header fields to the lookup window.

Set the following Object properties for each field:

[spacer]

TabStop

False


Set the following Visual properties for each field:

[spacer]

Alignment

Left

Appearance

3D Highlight

BackColor

System - List Header2

Border

True

FontColor

System - List Header2 Text

Style

Text Only


  1. Add divider lines for the header fields.

Using the line tool, add a vertical divider line between each header field. Also add a vertical divider line at the beginning and end of the header row. Set the following Visual properties for each divider line:

[spacer]

Appearance

2D Border

LineColor

System


  1. Attach a change script.

Attach a change script to each column header field, similar to the following example. This script sets the Sort By field to indicate what key to use when displaying records in the lookup window, then runs the change script for that field.

'(L) Sort By' = 1;
run script '(L) Sort By';


Documentation Feedback