Comments (7)
You are right. There should be an ExecuteEvent for tab and some more controls.
I will try to fix it.
from windowsribbon.
I have debugged the ExecuteEvent for Ribbon tabs. From UIRibbon there is no ExecuteEvent fireing for the tab.
listening-for-ribbon-events speek about additional events for the UIRibbon. But the documentation is a bit of poor for Implementation. The Interfaces are implemented in the RibbonLib. You can try to work with these interfaces if you really need an event for the ribbon tab.
If it works then you can drop a Pull request.
from windowsribbon.
I was able to do it but there is a little thing to pay attention.
I use VB.NET.
The trick is using the EventLogger in this way:
AddHandler Ribbon1.EventLogger.LogEvent, Sub(sender As Object, args As EventLoggerEventArgs)
If args.EventType = Interop.EventType.TabActivated Then
Select Case args.CommandName
Case "tabDocuments"
multiPaginaPrincipale.SelectedIndex = 1
Case Else
multiPaginaPrincipale.SelectedIndex = 0
End Select
End If
End Sub
But when building to x64 as I always do, the memory layout of the EventParameters struct was corrupted because in 64 bit environment the FieldOffset in this particular case is 8 and not 4, so the entire EventParametersCommand field is shifted of 4 bytes and the CLR was returning an access violation error because the pointers of the command names strings were invalid.
I suggest to handle this particular situation. I have downloaded the code and created a custom build, I support only x64 systems.
from windowsribbon.
@montagnamarco
Thanks for detailed analysis.
I have done some changes in the EventParameters struct which should work in x86 and x64.
Could you please download the latest code and create a custom build?
from windowsribbon.
Hi! It seems to work fine now :-) Thank you!
from windowsribbon.
The previous comment was written by me, from a different GH account.
from windowsribbon.
Solved in Pre-Release v2.15.2
from windowsribbon.
Related Issues (15)
- Request for info on MDI HOT 7
- Microsoft.VCToolsVersion.default.txt not found HOT 2
- RibbonTools not working with the latest VisualStudio 2022 HOT 3
- Can I hide some element? HOT 1
- Have you considered multi-language support? HOT 2
- Usability improvements or improved documentation? HOT 6
- RibbonItems Custom Namespace HOT 4
- RibbonPreview doesn't build under windows 10 HOT 2
- [Bug report] Spinner its decimal value can not initialized HOT 2
- FatalExecutionEngineError when accessing ContextAvailable HOT 1
- Rename application menu label HOT 4
- App crash HOT 26
- .Net Cor 5.0 version HOT 1
- Dark Mode/Dark Theme HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowsribbon.