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: 3145
- 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)
just wondering if you ever got a solution / workaround for this issue?
I managed to get the Enter key working inside the WPF by disabling the Default Button on the SQLWindows form holding the WPF Control.
The Tab key works kind of ok (in the sense that it moves from field to field within the WPF controls), so not getting it into the RTF might be an issue within the WPF control.
However there are no Arrow Keys at all working inside any text fields that are part of the WPF control.
The cursor simply disappears and has to be clicked back into the control.
This also happens when just adding a native Windows WPF control eg. <RichTextBox xmlns="clr-namespace:System.Windows.Controls;assembly=PresentationFramework"/>
Any pointers appreciated!
I'm using TD 7.4, 64 bit
Who is online
Users browsing this forum: [Ccbot] and 0 guests