Hi all,
I have an existing application where the GUI consists of one form and multiple "Views". I implemented this years ago by having one main form, and a panel holding the controls for each view, and I switch the panel visibility so only one is visible at a time. Drawback: it is impossible to use the Lazarus IDE for form/view editing, because the views are all positioned on top of each other. I worked around this by placing them side by side in the forms editor and adjusting their positions in code when I switch from panel to panel.
I'd prefer to have multiple forms, but don't know how to switch from one to another. AFAIK terminating the main form (the one loaded by the .lpr file) will terminate the application.
Does anyone know a not-too-hacky approach to switch forms and passing control back and forth between them, or am I better off staying with what I have now?
Thnx, Armin.