Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two-line title in Grid.Column.Header.Caption
Message
From
17/08/2000 03:15:43
 
 
To
17/08/2000 01:26:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00405926
Message ID:
00405966
Views:
34
I thought it might be useful to share a private reply to a meesage I recieved to illustrate how to do this.
*!* Begin Sample

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

*!* End Sample
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! :)
Previous
Reply
Map
View

Click here to load this message in the networking platform