Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

Rowheight of a DBGrid

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,
Is it possible to set the height of individual rows in a DBGrid ? I have a database containing multi-line texts. I now can display these lines, but more than two lines of text in a rowheigth of 18 will be problematic. I could modify the defaultrowheight but then also the fixed row height will be bigger.

I found some code to calculate the required height, but I get a compile-error on this line :
WidgetSet.DrawText(DC, pChar(str), Length(str), fRect, DT_CALCRECT or Options);
Where do I find that WidgetSet ?

Thanks for any pointers.

Koenraad Lelong

Reply by email