Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Commands and OnUpdate

 Post Reply Post Reply
Author
Matic Nebojsa View Drop Down
New Member
New Member
Avatar

Joined: 28 Nov 2010
Posts: 2
Post Options Post Options   Quote Matic Nebojsa Quote  Post ReplyReply Direct Link To This Post Topic: Commands and OnUpdate
    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.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8073
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down