TadxRibbonCommand override

Add-in Express™ Support Service
That's what is more important than anything else

TadxRibbonCommand override
Unable to capture the event 
Jeffrey Lott




Posts: 10
Joined: 2011-03-25
On the AddInModule I placed a TadxRibbonCommand (adxRibbonCommand1)
Set properties as follows
adxRibbonCommand1.IdMso = 1975 (the id value for SaveAndClose)
adxRibbonCommand1.Ribbons = [msrOutlookTask, msrOutlookExplorer]
Set the OnAction event
procedure TAddInModule.adxRibbonCommand1Action(Sender: TObject;
const Pressed: Boolean; var Cancel: Boolean);
begin
ShowMessage('Save and Close');
end;

Fire up Outlook, dblclick a task.
The Inspector pops up
Click "Save & Close", nothing happens.

Read your post about this bug, states to add a 2nd TadxRibbonCommand but do not handle OnAction. So I added a 2nd one.

adxRibbonCommand2.IdMso = 1975 (the id value for SaveAndClose)
adxRibbonCommand2.Ribbons = [msrOutlookTask, msrOutlookExplorer]
No handling of OnAction event.

Still adxRibbonCommand1.OnAction does not file.

?, thanks.
Posted 01 Apr, 2011 14:42:26 Top
Jeffrey Lott




Posts: 10
Joined: 2011-03-25
Ahhhh. Never mind. Need to set IDmso to "SaveAndClose"
Posted 01 Apr, 2011 14:50:54 Top
Eugene Astafiev


Guest


You are welcome, Jeffrey!
Posted 04 Apr, 2011 05:42:39 Top