Print Page | Close Window

Commands and OnUpdate

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL Plugin
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=1686
Printed Date: 20 Aug 2019 at 10:10pm


Topic: Commands and OnUpdate
Posted By: Matic Nebojsa
Subject: Commands and OnUpdate
Date Posted: 07 Aug 2012 at 7:15am
Is there recommended way how to have commands from plugin to be enabled or disabled. For example
when I load pulgin and add commands it have to menu or toolbar of host application is there way to have onUpdate which will enable or disable that item like it is with TAction.  We have TForm in plugIn and commands state (enabled/disabled) should correlate to choices that user  made upon that form.



Replies:
Posted By: Bruno Fierens
Date Posted: 07 Aug 2012 at 10:58am
You'd need to add a custom interface that would communicate this enabled/disabled state from the plugin to the host app. There is no standard interface for this provided.



Print Page | Close Window