Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added event that is fired when the tab changes #71

Open
joachimmarder opened this issue Oct 20, 2017 · 3 comments
Open

Added event that is fired when the tab changes #71

joachimmarder opened this issue Oct 20, 2017 · 3 comments
Assignees

Comments

@joachimmarder
Copy link
Contributor

joachimmarder commented Oct 20, 2017

The Event Tracing for Windows (ETW) must be used to achieve this. Described here: https://msdn.microsoft.com/en-us/library/windows/desktop/jj662752%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Seems quite complex though.

@joachimmarder joachimmarder changed the title Added event that is fired when the tab chnages Added event that is fired when the tab changes Oct 20, 2017
@harborsiem
Copy link

You have to cast interface IUIEventingManager from IUIFramework in procedure TUIRibbon.LoadFramework (cast variable FFramework with Supports function to IUIEventingManager global variable). Then you have to implement the interface IUIEventLogger with function OnUIEvent like you want. Connect this class to SetEventLogger from the IUIEventingManager global variable.
Destroy IUIEventingManager before you destroying IUIFramework.
I hope this helps.

@joachimmarder
Copy link
Contributor Author

Thanks for the explanation. Have you already tried this successfully, @harborsiem?

@harborsiem
Copy link

I have done it in a C# implementation of the Windows Ribbon Framework. In this project there is a folder called Ribbon. Here you can find in the Ribbon.cs (function InitFramework) the initialization of the IUIEventingManager and mainly in the classes EventLogger.cs and EventLoggerEventArgs.cs other things for doing the events. See also the WIKI.
I am not a Delphi programmer anymore. I have done a little bit of Delphi programming very long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants