I thought it might be useful to share a private reply to a meesage I recieved to illustrate how to do this.
USE
CREATE TABLE foo (a c(5), b c(5), c c(5), d c(5), e c(5))
FOR i = 1 TO 5
APPEND BLANK
REPLACE a WITH [aaaaa]
REPLACE b WITH [bbbbb]
REPLACE c WITH [ccccc]
REPLACE d WITH [ddddd]
REPLACE e WITH [eeeee]
ENDFOR
GO TOP
PUBLIC oForm1
oForm1 = CREATEOBJECT([oForm])
oForm1.SHOW
oForm1.AUTOCENTER = .T.
DEFINE CLASS oForm AS FORM
ADD OBJECT oGrid1 AS oGrid WITH ;
TOP = 25
ADD OBJECT oImage AS IMAGE WITH ;
PICTURE = [YourGraphic.bmp], ;
LEFT = 18, ;
TOP = 10, ;
HEIGHT = 35, ;
WIDTH = 41
ENDDEFINE
DEFINE CLASS oGrid AS GRID
countrolsource = "foo"
ENDDEFINE
Dave
>This is not natively available in VFP6. It can be simulated buy creating an image that looks like a Header on top of the Grid's header.
>
>This feature will be available in the next version of VFP.
>
>Dave
>
>>Can anybody tell me how to create a two-line caption in a Grid’s column header caption?
>>Example: I want amount and date to be separated in two lines in the Grid.column.header.caption.
>>So, the Grid’s column header caption should appear as:
>>
>>
>>------------
>> Amount
>> mm/dd/yyyy
>>------------
>>
>>
>>It should not appear as:
>>-------------------
>> Amount mm/dd/yyyy
>>-------------------
>>
>>Please HELP! :)