Hello,
Started to learn pascal/lazarus and I'm struggling to create a form that has buttons and for each button it shows a specific frame.
I've seen and used the example code from the wiki but it's creating problems for me:
1. When switching between frames, unhandled exception shows that 'frame1 already exists', and sometimes shows error SIGSEGV. I've made several attempts and searched but no help.
2. I reached a somewhat working stage but unwanted behavior appears: say Frame1 is already showing, when i click the button that shows it, it reloads, how to avoid that?
3. I don't want to Free a frame to show the other or FreeAndNil everything, is there a way to just Show/Hide each frame? or is that a bad practice and can lead to memory leaks?
I've attached a sample project of what I'm trying to do. Any help is greatly appreciated