I have a form with a TPairSplitter. In the splitter I have a TTreeview on the left and a TSynMemo on the right. For all I have all 4 anchors set to true. When I run the app, everything resizes correctly.
Part of the application opens a file and populates the tree. The tree has an event for the selection change which populates the synmemo. Again everything works correctly.
I added a TIniPropStorage. On the OnRestoreProperties event, I call the file load routine. This is where I am having the problem. The form and treeview resize correctly, but the synmemo stays the original size from the dev environment. It does not expand. Once I do anything to the form size, everything starts working again. or if I place text in the synmemo that causes a scrollbar to appear, again all resizing is correct.
It is just during the initial load that it stays small. I tried adding invalidate calls to different events but could not find anything that would work. If I comment out the code which populates the tree during the load, everything works as expected.
I am running Lazarus 0.9.28.2 on Linux (I have not tested this issue on Windows yet).
Any ideas on how I can get this to work? I'm guessing I just need a repaint or invalidate call in the correct event.