![codejock visual dataflex codejock visual dataflex](https://slideplayer.com/slide/7458727/24/images/2/Codejock+1.+Codejock+components+2.+Data+Access+components.jpg)
Get Create (RefClass(cSigCJComMarkupUIElement)) to hoMarkupObject Get ComFindName of hoMarkup "Drafts" to vMarkupObject that means we clicked on that item (hurray!)) Then in our new OnItemClick we can find that object and test if it has the mouse over it (as we just clicked. The first one is by adding a name to the object in the xaml that you want to access mouse clicks for.Īnd if we want to be able to access clicks on that TextBlock element then we need to add a Name identification for that element, for example: Next up is figuring out what actual xaml object we are clicking on. With that out of the way we can at least detect that we are clicking on the xaml object. If that's the case, we trigger a OnItemClick message. In the grid what I am using is simply augmenting event OnComMouseUp and then using a fairly simple HitTest to see if the cell I need was clicked upon. It does not make much sense from that point of view, I just picked a random xaml file.įirst problem and main problem in the parts I currently have been unable to fix: catch a mouse event. In addition it uses one of the standard xaml files from the sig cj group demo to show how it works. The code I'm showing here is very bare bones, it is a grid with only 1 cell -just 1 column and 1 row. I did however find a -somewhat ugly- workaround. What I could do for the xaml enabled grid cannot be done for the standard "label" example as in the SIG UK example.
![codejock visual dataflex codejock visual dataflex](https://cdn.cupdf.com/img/1200x630/reader025/reader/2021050412/5ad481227f8b9a177c8bcc1d/r-1.jpg)
![codejock visual dataflex codejock visual dataflex](http://leonsoftsolutions.co.in/images/archi1.png)
#Codejock visual dataflex cracked
That turned out very well and I figured that I had cracked all of the issues. It was developed end of last year when a customer of mine wanted to develop a very fancy grid with each of its cells rendered via xaml.
#Codejock visual dataflex full
The solution I am describing here just uses DataFlex and the full codejock suite. So you could already use XAML, but as it was you could not act on mouse clicks, until now. That by itself had some other issues (focus runtime errors) and I discarded that solution for another non codejock one after that experience. net activex control and then consuming those activex control wrappers from within DataFlex. The only way I was able to use that technique was by wrapping the codejock xaml components into a C#. The documented solution by codejock for how you can act on your XAML components is by using so called routed events.Īs it is, I have not been able to use routed events from within DataFlex.