summaryrefslogtreecommitdiff
path: root/src/gui/fpg_memo.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-21 09:17:44 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-21 09:17:44 +0200
commit8e129e1d346f0128aea4f4efcffe0d6ab3ce9bfe (patch)
tree07fad3a8ebf4727976bc59284994a47fdfa3bd54 /src/gui/fpg_memo.pas
parentbc7e3c21ee53986a53535013638ea267abca2f3d (diff)
downloadfpGUI-8e129e1d346f0128aea4f4efcffe0d6ab3ce9bfe.tar.xz
Edit: fixed vertical centering of text.
Before we had a hard-coded top co-ordinate for the text. This caused problems when the TfpgEdit.Height was adjusted for some reason. So now we rather use the Canvas.DrawText() and give it a rectangle and text flags so text output can be calculated correctly. This is very useful for inline editing in a StringGrid. Internally Canvas.DrawText calls fpgStyle.DrawString, so custom styling should still be applied.
Diffstat (limited to 'src/gui/fpg_memo.pas')
0 files changed, 0 insertions, 0 deletions