I created a sample to show what is happening.
When i create a WPFControl which is inside a Dialog Box and in that WPFControl is a TextBox then Tab and Return don't get forwarded to the WPF control...
I tried lots of things but came to no solution. Also there is nothing compared to this in this forum and i tried everything which kinda could have been pointing to a solution.
I hope someone can help me with this because i'm at the end of my knowledge. If the control runs inside a native WPF window TAB and ENTER/RETURN work fine. The Textbox doesn'T lose focus and the tabs and linefeeds get inserted like they should. It just happens inside TeamDeveloper.
If you wanna run the sample you have to put the TextBoxLib.dll into your Gupta folder where the cb**.exe resides. I think.
I have the same problem, in my UserControl KeyDown-Event doesnt fire for enter, arrow-keys,..
As workaround I added the missing methods to the user control and call them by some keyaccelators from wpf-Form, but I hate this solution.
And although using the KeyUp-Event works, it is not a solution I can deliver to my customers.
PS: This are precisely the problems that make development with Gupta so frustrating, the solutions seem so simple, and then you waste hour and hour for something self-evident and you make yourself an idiot, I hate it.
I guess i'll just throw in a "Enter" button so the user has to press that instead the one on the Keyboard....
My words! It's really a pain in the a**
- Founder/Site Admin
- Posts: 2912
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
I think there is no workaround which does not require actual changing the WPF component.
Best is to register a ticket with Gupta OpenText support.
(and report back the ticket/TD defect number here)
Who is online
Users browsing this forum: [Ccbot] and 0 guests