[Lazarus] Enabling menu-options depending on a Lazarus-setting?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 4 22:45:10 CEST 2014


On Thu, 04 Sep 2014 22:39:04 +0200
Joost van der Sluis <joost at cnoc.nl> wrote:

> On 09/02/2014 03:31 PM, Martin Frb wrote:
> > On 02/09/2014 12:11, Joost van der Sluis wrote:
> > Add a class[1] method to the debugger-class. return true/false,
> > depending on the availability of the feature.
> >
> > The base class, would have the current ifdef. All other code depends on
> > the value of the method.
> >
> >
> > In ide/DebugManager the debugger class is selected and setup. That would
> > be the place to update the menu (maybe enable/disable instead of hiding).
> 
> How do I enable/disable a menu-item in the IDE?

Find the TIDEMenuItem and use item.Enabled:=true/false.

Mattias




More information about the Lazarus mailing list