Cheers Colleagues,
Congratulations for your really nice work for the Lazarus IDE and FPC.
The version of Lazarus is 1.4.4.
Text with line breaks is saved and loaded by TMemo (SaveToFile and LoadFromFile). sLineBreak is used.
TMemo in win32/64 widgetset loads from file text with Windows (#13#10) xor Darwin (OS X, El Capitan) (#10) style line breaks correctly.
But TMemo in Carbon loads the text saved to file on Windows by adding a space at the end of each line (represented in the TMemo control, in the debugger it is #10#10). After removing all those spaces the text treatment is correct. It is some kind of workaround.
TMemo in GTK2 on Darwin from Windows and on Windows from Darwin Carbon does not treat the text correctly, because the line break style is kept unchanged (the expected behavior is that with the win32/64 widgetset).
Another one observation with the Carbon interface is regarding the Form scrollbars:
they are always visible when AutoScroll = true. The problem is with just the horizontal scrollbar, because it cоvers the most of the bottom aligned panel and to can see 22 px in height from the panel, you have to set its total height to be 55 px - this is not the case with the vertical scrollbar and the right aligned panel where to can see 23 px in width from the panel, it is enough to set its total width to be 38 px. - they both in the case when you have an object out of the form client area.
And a last observation: Lazarus 1.4.4 with FPC 3.0.0 on Windows and win32/64 widgetset may have mem leaks, because the Heaptrc message differs by the message from Lazarus 1.4.4 with FPC 2.6.4.
What is your opinion mainly regarding the TMemo and the sLineBreak treatment?
Best Regards