Sign in Join

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

Mailing lists / lazarus / 2013-01

Strange inconsistency between Linux and Mac TEdit Height

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Donald Ziesig

Hi All!

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 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 the same on the PC works as expected.

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 ;-) ).

Thanks,

Don Ziesig

Reply by email