Subject Re: [IBO] Long Title in IB_GRID in two rows?
Author L'Attila
Thanks for your ideas.
gdtWordWrap really works, if all rows will be with same height: 34.
gdtEllipsis is not good for me, because more title starting with same
string: 'Rendelt menny' and 'Rend datuma', but the data is shorter, like
'9.200' and '2001.01.01'
So I did it with BorderRows=1 and gdtWordWrap:=True. When I write the
titles, using OnDrawTitle event Rect.Top := Rect.Top-17, Rect.Bottom :=
Rect.Top+34, then DefaultDrawTitle(...) . It means, that the first row of
title is going to BorderRow and the second to TitleRow. It's not too
elegant, but good way.

Ludvig Attila
Kondor & Sragner Kft.
Tel.: 20/3645385
sragner@...
-----Eredeti üzenet-----
Feladó: "Kaputnik" <delphi@...>
Címzett: <IBObjects@yahoogroups.com>
Elküldve: 2001. november 3. 13:27
Tárgy: RE: [IBO] Long Title in IB_GRID in two rows?


> Indeed you can:
>
> Either use gdtEllipsis or gdtWordWrap in the DrawTitleTextOptions of the
> IB_Grid.
> The first one will strip your title to fit in the cell and draw an
> ellipsis (...), the second one will wrap the title if needed to show the
> complete title....
>
> Works with IBO3.6Dg
>
> CU,
>
> Nick Josipovic
>
> BIT Institute
> Prof. Dr. Franz Steffens
> University of Mannheim
> T: ++49 621 181 1621
> M: ++49 179 133 44 16
> S: ++49 621 181 1622
> F: ++49 621 181 1618
>
> nick.josipovic@...
>
>
> > -----Original Message-----
> > From: L'Attila [mailto:sragner@...]
> > Sent: Saturday, November 03, 2001 10:53 AM
> > To: IBObjects@yahoogroups.com
> > Subject: [IBO] Long Title in IB_GRID in two rows?
> >
> > Hi All!
> >
> > I try to use IBO3.6 Eval.
> > I've got long title in IB_GRID, it would take 2 rows (height: 34),
> data-
> > rows
> > only 1 (height: 17).
> > Can I do it on simple and elegant way?
> > Thanks in advance:
> >
> > Ludvig Attila
> > Kondor & Sragner Kft.
> > Tel.: 20/3645385
> > sragner@...
> >
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>