Title


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

Comments

  1. 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
  2. +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.

    ReplyDelete
  3. 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

    Also - good tip on using Actions.

    ReplyDelete

Post a Comment