sorry my starter and I still use Delphi 7 I am confused how to lock the main menu .. if not logged in then the main menu can not be used ... how its Delphi code
David Heffernan You are right. You can probably defer the createform of the main form to after login. In our case, the main form create kicks off some background threads to prepare stuff before the user logs in
Implement all your menu items (and indeed toolbar buttons) using actions. Then disable the action manager or action list if the user is not logged in.
ReplyDelete+Lars No need to create the main form before the login form. Just avoid using Application.CreateForm for all forms other than the main form.
ReplyDeleteDavid Heffernan You are right. You can probably defer the createform of the main form to after login. In our case, the main form create kicks off some background threads to prepare stuff before the user logs in
ReplyDeleteAlso - good tip on using Actions.