Uwp text rendering for a custom text box - textbox

I'm currently developing a custom text box for a word processing uwp app and, while I have seen the Windows.Ui.Core.Text library for text input managing, I can't understand how do the default textbook and richeditbox controls render their text? I suppose that they use a low level library, instead of using textblock controls, but I can't find which they use.

You may render text using Win2D. Check here: https://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_Text_CanvasTextLayout.htm
And samples here: https://www.microsoft.com/en-us/store/p/win2d-example-gallery/9nblgggxwt9f

Related

How do I create an in-line picker for iOS for non-date/time values

Similar to Inline UIPickerView in a table but more focused on React Native and Expo and I am looking at it from the point of view of a tablet.
In React Native Community DateTimePicker it provides an in-line input of a time
However, they don't provide a similar function for non-time based pickers or at least I can't find it. Is such a component not available in iOS because I can't seem to find something that behaves similarly where if you tap to show the picker and it starts editing the "original" disappears and places the field close to where it originally is.
I want it in-line as in a tablet the width is much larger so it does not make sense to do the style as shown in the HIG as it is for a phone form factor.
react-native-dropdown-picker is another one I tried to take a look at but it does not match what I would expect from the OS controls.

Blackberry 10 Cascades - Images inside Text Area

I am designing an application that needs to replace some text inside of a TextArea with an Image. For example, if I enter a phone Number that exists on the Native contacts list, I need to replace the text on the text Area with an Image and be able to add more phone Numbers (the attached image illustrates the procedure). This is the native messaging application, but I can't find an API to do this in Cascades.
Thanks for the help.
I believe what you are looking for is the FlowListLayout but would recommend you become familiar with how Cascades deals with simple lists first. The general premise, and how some form a list can help you, is that each element on the list is display an an object, or collection of objects depending on what type the element is. As elements change in type, in this example from the text entered by the user, to the contact found by searching for that text, the form of display can change.

Delphi TListBox iOS making new itemstyle/behavior

I need to show custom data. For example I need to show a contact list with name, description, photo. And ideally I would also like to show custom data there, e.g. a button to launch telephone call. The default styles do not quite do what I want, but fairly close.
Thus, as far as I can tell, TListBox could be a decent control for this if I could create custom styles? Is that possible? (Anotther problem of course is setting the values of the custom data controls.)
You should take a good look at the FMX CustomListBox example AFAIK even the example alone already seems to have exactly what you need, already set in place.
It took me about 10 minutes to produce this result straight out of the CustomListBox example with your description:
One thing that the included FMX example demonstrates perfectly is how easy it is to add any FMX control to the ListBox via the TStyleBook Layouts such as buttons, images etc... basically any visual control upon which you then implement the HitTest, again, all very detailed in the FMX Delphi example.

JavaFX WebView / WebEngine show on-screen-keyboard automatically for each text input

Background/Context:
I am developing touch screen based kiosk application with JavaFX. The app integrates browser – WebView. The problem is that all user inputs have to be made through on screen keyboard (SW keyboard)
It would be nice to have an option to register an event-handler on WebView/WebEngine for any HTML text input element got/lost focus, so that I could show/hide on-screen-keyboard.
Even though I searched the Internet, I did not find this kind of feature.
My questions:
Does JavaFX / WebView provides any support for these cases?
If you were to tackle this problem, what would be your approach to that?
My solution so far:
I have a small button (at one corner of the screen) that allows user to show/hide on-screen-keyboard. Since they have to do that manually, it is quite annoying. Especially on sites where browsing (consuming information) and text inputs changes frequently.
It would be nice to have an option to register an event-handler on WebView/WebEngine for any HTML text input element got/lost focus, so that I could show/hide on-screen-keyboard.
A potential strategy for doing this:
Start with a jdk8 preview.
Run the application with -Dcom.sun.javafx.isEmbedded=true to enable the virtual keyboard.
Use a webengine.executeScript technique to embed jQuery into the target page.
Bind a jQuery focus handler to the relevant html elements.
In the jQuery focus handler make an Upcall from JavaScript to Java.
Upon receiving the upcall make use of JavaFX's Virtual Keyboard.
As the user enters values into the keyboard, make executeScript calls to set the value of the corresponding html field.
Some parts will likely be a bit (or totally) flaky, but perhaps other parts may prove useful to you.
In the future, if WebView is supported on touchscreen platforms on embedded devices, I'm guessing that out of the box it will work well with a virtual keyboard.

is possible to create a text with click action (like a Action link ) in blackberry mainscreen?

This is seems like a pretty simple question. Is it possible to set a custom action for a text link (those blue texts that are underlined) inside mainscreen in blackberry. In other words, is it possible to have a handler do something on an event like feildchangelistner on the text?
thanks
Yes, the various fields that display text are children of the class field
As you can see from the doc you can override navigationClick, unclick. You may also set the font as one that is underlined and override the default color in paint. You will also need to code touch events if you are supporting the older touchscreen devices (Storms OS5 and below)
I would advise against doing any of this because RIM provide a class that seems to fit your exact needs in the advanced UI pack. Take a look at HyperlinkButtonField

Resources