Jump to content

ming ng

uniGUI Subscriber
  • Posts

    9
  • Joined

  • Last visited

Posts posted by ming ng

  1. Hi

     

    I am creating an MDI App.  I have several MDI Children forms and one of them is to be ShowModal.

     

    After ShowModal of that form, the main menu was still active, is there a simple way to disable the menu by simple code like: UniMainMenu1.Disable?

     

    Currently I have to work around it by creating two procedures to enable / disable each menu item separately.  Before I show modal, I call the "Disable All Menu Items" procedure, then at the Callback of ShowModal(CallBack), I call the "Enable All Menu Items".  I hope there is a simpler way to do this.  Anybody knows about it can you please advise?  Many thanks.

     

    Best Regards

    Ming Ng

     

  2. Hi

     

    I want to switch main menu for my MDI app (admin menu and user menu). I added two UniMainMenus and some options for each.

     

    Then I set the Menu of my MainForm to UniMainMenu1 in the designer.  Added a buttion and hope to switch the main menu to UniMainMenu2 by code: 

     

    MainForm.Menu:=UniMainMenu2

     

    It doesn't work as expected, anyone can please advise how to?

     

    Best Regards

    Ming

     

     

×
×
  • Create New...