as there are many pieces of information missing, I'm going to assume the following:
- From the main window, you are reopening the login window as a modal window
- it's when you are closing that login window, from the code of the main window that you want to redisplay it fully
- The different menu options of tha min window are put in place in the window init code
if all that is correct, then an executeprocess of the window init code (something liek executeprocess(mywindow,trtinit) should do the trick
Another way would be to put all the init code in a local procedure of th amin window, and to simply call it