Oliver Brinzing wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Is there are chance to enable/disable MenuItems temporary?
(I know how to add/remove MenuItems ... but how to enable/disable ?)
Hi Oliver,

You can enable/disable commands which are bound to the user interface. So Openoffice.org doesn't distinguish between different user interface types ( menu, tool bar or status bar). You have to register a dispatch interceptor to disable a command. It's also possible to enable a command, but you shouldn't do that if you don't implement it in your dispatch interceptor. It's possible that the application code doesn't work correctly if you call it in a situation where the command is normally disabled. You can find more information about dispatch interception in the Developer's Guide.

Regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to