Subject | RE: [IBO] Wrapping long titles - RowHeights[] |
---|---|
Author | Norman Dunbar |
Post date | 2002-08-19T09:27:49Z |
The following will work in C++ Builder :
TDrawGrid *Temp;
Temp = reinterpret_cast<TDrawGrid *>(IB_Grid1);
if (Temp)
Temp->RowHeights[0] = 30;
else
ShowMessage("oops!");
You cannot use dynamic_cast in this case as it will not allow you to cast
from IB_Grid* to TDrawGrid *, but reinterpret_cast assumes you know what you
are doing :o)
I've tested both, and the above does indeed change the grid header height as
required.
Cheers,
Norman.
-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar@...
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------
-----Original Message-----
From: Steve Fields [mailto:fields24@...]
Sent: Monday, August 19, 2002 5:29 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Wrapping long titles - RowHeights[]
I have had luck with:
TDrawGrid(MyIBOGrid).RowHeights[0] := 30;
I do not know how you would do this in
C++ but it may give you an idea....
Steve Fields
This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you are not an addressee you
must not read it and must not use any information contained in it, nor copy
it, nor inform any person other than Lynx Financial Systems or the
addressees of its existence or contents. If you have received this email
and are not a named addressee, please delete it and notify the Lynx
Financial Systems IT Department on 0113 2892990.
TDrawGrid *Temp;
Temp = reinterpret_cast<TDrawGrid *>(IB_Grid1);
if (Temp)
Temp->RowHeights[0] = 30;
else
ShowMessage("oops!");
You cannot use dynamic_cast in this case as it will not allow you to cast
from IB_Grid* to TDrawGrid *, but reinterpret_cast assumes you know what you
are doing :o)
I've tested both, and the above does indeed change the grid header height as
required.
Cheers,
Norman.
-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar@...
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------
-----Original Message-----
From: Steve Fields [mailto:fields24@...]
Sent: Monday, August 19, 2002 5:29 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Wrapping long titles - RowHeights[]
I have had luck with:
TDrawGrid(MyIBOGrid).RowHeights[0] := 30;
I do not know how you would do this in
C++ but it may give you an idea....
Steve Fields
This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you are not an addressee you
must not read it and must not use any information contained in it, nor copy
it, nor inform any person other than Lynx Financial Systems or the
addressees of its existence or contents. If you have received this email
and are not a named addressee, please delete it and notify the Lynx
Financial Systems IT Department on 0113 2892990.