Page 1 of 1
Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
Posted: 26 Sep 2017, 20:37
by pbastia
I'm noticing that the caret / text highlight in a TextBox control are gone when using the .NET 4.6 profile. and the latest beta
The error doesn't occur when using the .NET 3.5 profile.
Re: Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
Posted: 26 Sep 2017, 21:48
by pbastia
Oh, just realizing this is a duplicate of
viewtopic.php?f=3&t=1185
Re: Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
Posted: 29 Sep 2017, 11:35
by sfernandez
Yes, it should be fixed with the patch posted there: changing the return type of ShowSoftwareKeyboard callback to bool.
Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs line 152
delegate bool ShowSoftwareKeyboardCallback(IntPtr focusedElement);
private static ShowSoftwareKeyboardCallback _showSoftwareKeyboard = ShowSoftwareKeyboard;
[MonoPInvokeCallback(typeof(ShowSoftwareKeyboardCallback))]
private static bool ShowSoftwareKeyboard(IntPtr focusedElement)
{
try
{
if (_initialized)
{
UIElement element = Extend.GetProxy(focusedElement, false) as UIElement;
return _softwareKeyboard.Show(element);
}
}
catch (Exception e)
{
Noesis.Error.SetNativePendingError(e);
}
return false;
}
Re: Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
Posted: 29 Sep 2017, 18:35
by pbastia
Works great, thanks so much! I'll mark this as fixed.