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.
To add column headers to a lookup window, use the following procedure.
The column header fields are typically local fields for the lookup form. They have the following characteristics:
Control Type |
Push Button |
Static Type |
Text |
Specify a text caption that is appropriate for each column of the lookup.
Set the following Object properties for each field:
TabStop |
False |
Set the following Visual properties for each field:
Alignment |
Left |
Appearance |
3D Highlight |
BackColor |
System - List Header2 |
Border |
True |
FontColor |
System - List Header2 Text |
Style |
Text Only |
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:
Appearance |
2D Border |
LineColor |
System |
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';