HeaderImages Property
Specifies images for Grid and Browse
headers
Syntax:
HeaderImages (acValue)
This is a character array containing image filenames or resourcenames (one for each column).
To change a header's image at runtime you must specify the column position as argument.
Sample (Control definition):
DEFINE GRID Grid_1
ROW 10
COL 10
WIDTH 500
HEIGHT 330
HEADERS {'Last Name','First Name','Phone'}
WIDTHS {140,140,140}
ITEMS LoadItems()
VALUE 1
HEADERIMAGES { '00.bmp' , '01.bmp' , '02.bmp' }
END GRID
Sample (Set image at runtime):
Form_1.Grid_1.HeaderImages(1) := '03.bmp'
Sample (Get Image at runtime):
MsgInfo ( Form_1.Grid_1.HeaderImages(1) )
More Samples: \hmg\samples\grid_18, \hmg\samples\browse_6