[Lazarus] Enabling menu-options depending on a Lazarus-setting?
Martin Frb
lazarus at mfriebe.de
Thu Sep 4 23:42:54 CEST 2014
Example in
procedure TDebugManager.ConnectMainBarEvents;
in ide/debugmanager
On 04/09/2014 21:39, Joost van der Sluis 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?
>
> Joost.
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list