You are not logged in.
Pages: 1
I've got a problem changing the font when creating a TSQLTableToGrid in a form's onShow event.
DrawGrid.Font.Size := 12;
TableToGrid := TSQLTableToGrid.Create(DrawGrid, Table, database);
The Drawgrid font size gets set ok but the row height gets adjusted to the smaller default font size by the following lines in TSQLTableToGrid.Create
with aOwner.Canvas.TextExtent('jQH°;') do
aOwner.DefaultRowHeight := cy+4;
I only get the problem if creating the TSQLTableToGrid in the form's onShow event.
Any suggestions on getting this working?
Thanks
Offline
Yes, that fixes the issues. Could you update mORMotUI.
Many thanks
Offline
Now TSQLTableToGrid.Create() uses TDrawGrid font to compute row height.
See http://synopse.info/fossil/info/f3ccffea59
Thanks for the report.
Offline
Pages: 1