Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
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.
The error doesn't occur when using the .NET 3.5 profile.
Last edited by pbastia on 29 Sep 2017, 18:39, edited 1 time in total.
Re: Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
Oh, just realizing this is a duplicate of viewtopic.php?f=3&t=1185
-
sfernandez
Site Admin
- Posts: 2997
- Joined:
Re: Text Editing Caret and Highlighting missing in 2.1.0b4 & .NET4.6
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
Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs line 152
Code: Select all
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
Works great, thanks so much! I'll mark this as fixed.
Who is online
Users browsing this forum: No registered users and 3 guests