[Lazarus] Strange inconsistency between Linux and Mac TEdit Height
donald at ziesig.org
Fri Jan 25 01:14:55 CET 2013
I am sitting here with a Linux PC and a Mac in front of me. I have just
uploaded the Linux version of a program for my Granddaughter to github
and cloned it to the Mac.
On the Linux box I have a TEdit control whose height is set to 65 pixels
(the Font height is -53); the control height is consistent with the font.
On the Mac I have the same form, all of which is consistent with the PC
except for the TEdit control. The height of the TEdit is 22 (only the
very top of the text is visible). The font height is -53 as on the PC.
I looked at the .lfm file and the TEdit data are identical on both machines.
I attempted to resize the TEdit on the Mac by setting its height to 65
in the Object Inspector. As soon as I exit the height field it returns
to 22. I tried to resize it graphically, but dragging the bottom handle
is ignored and the height remains at 22. Doing the same on the PC works
Even more interesting. When executing the program, the TEdit starts
with a height of 22, but as soon as I change the text contents it
resizes to 65 and displays the results exactly as they appear on the
PC. It works properly from there on until I exit and restart the program.
Does anyone have an idea of how to fix this?
The github account is dziesig and the two projects (public) are
"MagicLibraries" and "MagicArithmetic". The problem occurs on the main
form of MagicArithmetic (flash cards for my granddaughter ;-) ).
More information about the Lazarus