Re: [MBS] NSMenuMBS or NSMenuItemMBS refresh
Am 10.06.2014 um 13:07 schrieb Jean-Luc Arnaud jean-...@cdmultimedia.fr: Hi all, My workaround is, after clossing the modal dialog, to call a method where all items are enabled with NSMenuItem.Enabled=True. Did I miss something? Maybe NSMenuMBS.autoenablesItems property? Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] NSMenuMBS or NSMenuItemMBS refresh
Am 10.06.2014 um 16:28 schrieb Marnaud anic...@mac.com: I fail to understand why this AutoEnableItems property would be required after they are disabled but not at the initial stage (Jean-Luc said they are enabled at start). autoenable causes them to be enabled all the time. Not sure if that is what you guys need. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] NSMenuMBS or NSMenuItemMBS refresh
Christian, I tried this before attachment of the menu, and after, unsuccesfully. Could this be a bug, or am I doing something wrong? It's very simple to get the issue: - Create a NSMenuMBS, - Create a NSMenuItemMBS item, - Code for display of a modal dialog window when selecting the menu item, - When the window is displayed, click in the menu, the item is grayed, - Close the window (I simply coded a Self.Close in MouseUp event), - Click in the menu, the item is still grayed. If needed, I could send you (off list) the project I'm working on. Regards Jean-Luc Arnaud Le 10/06/2014 14:23, Christian Schmitz a écrit : Am 10.06.2014 um 13:07 schrieb Jean-Luc Arnaud jean-...@cdmultimedia.fr: Hi all, My workaround is, after clossing the modal dialog, to call a method where all items are enabled with NSMenuItem.Enabled=True. Did I miss something? Maybe NSMenuMBS.autoenablesItems property? Sincerely Christian ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] NSMenuMBS or NSMenuItemMBS refresh
Jean-Luc, What if you don’t set the dialog to modal? I use this mechanism for two of our products and it works as expected. The only difference is that my dialogs are simple Document windows. Tim On Jun 10, 2014, at 8:54 AM, Jean-Luc Arnaud jean-...@cdmultimedia.fr wrote: Christian, I tried this before attachment of the menu, and after, unsuccesfully. Could this be a bug, or am I doing something wrong? It's very simple to get the issue: - Create a NSMenuMBS, - Create a NSMenuItemMBS item, - Code for display of a modal dialog window when selecting the menu item, - When the window is displayed, click in the menu, the item is grayed, - Close the window (I simply coded a Self.Close in MouseUp event), - Click in the menu, the item is still grayed. If needed, I could send you (off list) the project I'm working on. Regards Jean-Luc Arnaud Le 10/06/2014 14:23, Christian Schmitz a écrit : Am 10.06.2014 um 13:07 schrieb Jean-Luc Arnaud jean-...@cdmultimedia.fr: Hi all, My workaround is, after clossing the modal dialog, to call a method where all items are enabled with NSMenuItem.Enabled=True. Did I miss something? Maybe NSMenuMBS.autoenablesItems property? Sincerely Christian ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] NSMenuMBS or NSMenuItemMBS refresh
Le 10/06/2014 18:07, Tim Jones a écrit : Jean-Luc, What if you don’t set the dialog to modal? I use this mechanism for two of our products and it works as expected. The only difference is that my dialogs are simple Document windows. Tim Of course, it works, given that items are not grayed when a Document Window is displayed. Jean-Luc ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info