Background:
I am struggling since a few weeks to port a windows program to Darwin.
Several people on the forum tried to help me (THANK YOU ALL).
My main problem is that forms that I have built with my previous computer a Windows 7 32 bits do not show correctly when cross-compiled to Mac OS.
I now have a WIN 10 computer and Cross compile to Darwin-Cocoa and Win32.
Buttons are invisible, TACharts are upside down, etc. A real mess. I have checked the lfm files which look normal to me.
The win32 exec is normal and functionning.
Today I decided to rebuild one of the form which I use.
So I made a new form, placed new buttons , memo, timers, etc. on it and then copied the methods from the original form to the new form in the corresponding OnCreate, OnClick, OnClose, etc.
Guess what: this form is perfectly showing in Windows and MacOS.
Everything is behaving normally.
This is same code, same project, just a different unit.
This lead me to believe that there are hidden properties / variables of the form that we do not have access, but that the compiler use.
I Have looked in the lpi, the lps and nothing in there relate to forms.
The lrj seems to contain only strings.
I have compaired also properties of a new form to the properties of my form and they all match except for size.
Is someone aware of hidden/binary code used by the compiler when compiling forms?
May be in the Unit file itself there is a hidden section?
My main form is quite complex and I would rather not rebuild it. This would involve several hours
Any help Welcome. Thank you