User selecting text in RichTextBox on Windows Phone 8 - richtextbox

I am trying to use a RichTextBox in my Windows Phone 8 application. The user needs to be able to select text and copy it to the clipboard. The user DOES NOT need to edit the text, only select it. However, I cannot seem to select text in either the Windows Phone Emulator, or on my Windows Phone 8 device (Nokia 920).
The documentation for the RichTextBox.Selection property contains example code for how to change the format of the selected text (bold, italic, etc.). I would assume that the user would have to select text before he can make it bold or italic, but I cannot make it work. The documentation page is dated November 8, 2012 and states at the bottom that it applies to Windows Phone 8.0 and 7.1. See the page here: http://msdn.microsoft.com/en-US/library/windowsphone/develop/system.windows.controls.richtextbox.selection(v=vs.105).aspx
The documentation on the RichTextBox.IsReadOnly property says that the RichTextBox is always read only on Windows Phone. Indeed, looking at the object in the debugger reveals that IsReadOnly is true. Trying to set it to false throws an exception.
However, elsewhere in the earlier "Mango" documentation, it states that, while the control is read only, the user can still select text. This is clearly implied by the documentation on the RichTextBox.Selection property.
Can someone confirm or deny that user-text-selection is possible in a RichTextBox on a Windows Phone? If it is possible, can someone provide example code of how to make it work?
Thank you!
Thaine Norris

The RichTextBox was originally ported from Silverlight to Windows Phone 7.1 but not all features were ported (eg. copy & paste and text selection):
WP7 Mango RichTextBox support for copy&paste
Windows Phone Developer Forums: Cannot Select Text in RichTextBox?
After comparing the APIs and doing some testing in the emulator and on device, it looks like the RichTextBox has not been improved for Windows Phone 8 and is still missing that functionality.

Related

Missing keyboard language in all UITextField and UITextView

We have an app, deployed to more than milion users.
Some of them report that they don't see chinese or russian keyboard when they try to select a language to type (but they do see other languages).
They say it happens only on our app.
Since I'm not familiar with an API to set what languages the user see in his keyboard, I really don't know what to do here.
The issue is not reproduced on our devices..
Some notes:
1. The language is on the languages list on the user settings.
2. The users say it happens only on our app.
3. It happens to a small friction of users (not all of them).
4) It's being solved after reinstall the app.
Any direction?

Allowing users to highlight text in app for iOS (AS3)

I am creating an app which generates conjugations for Japanese verbs.
I would much like the generated text to have the ability that people can highlight the text to copy it to clipboard on an iOS device if they need to.
So far I am able to make it work with android OS, windows, OSX and browser.
For some reason though I am unable to get it to work in iOS.
The only option I have enabled is the "Highlightable" option in flash and with this small option enabled it works in every single platform but iOS.
Has anyone else run into this issue? Is it a limitation of iOS?

Using Delphi xe4, mail client will not open

Referring to a different article/question:
Delphi XE4 iOS open email program not working
Same symptoms apply to my situation. When debugging in the iPhone simulator, I can paste into the Safari Web Browser, 'mailto:info#example.com?Subject=test' (or whatever I desire, really) and the simulator then proceeds to open the Apple Mail Client with the specified parameters.
BUT, in my app when using the line:
OpenURL('mailto:info#example.com?Subject=test');
Well, nothing happens. I can replace the MailTo text with a web address such as, StackOverflow.com, and it works perfectly fine, but just doesn't when attempting to open the mail client.
Using Delphi Xe4, developing an app for iOS. Using the Apple.Utils framework provided with the Delphi Samples.
Am I missing anything? Or is there an easier way to open the mail client?
No one responded. There was an easier way - using an action sheet to perform the same sharing functionality that we see in just about all Apple software products. It is located in an example in the Delphi Samples. You can send text, email, etc. etc. Also can attach pictures.
Hint:
The share feature functionality does not work in the simulator but does actually work on devices.

how can I emulate iPad browser on Windows

How can I emulate iPad browser under windows? I know user agent string and I know browser width/height, screen width/height
I believe if you emulate the User Agent of the iPad and set your windows size appropriately, you can use Safari (windows download from apple.com) and works pretty cool.
Also i haven't tested this, but http://code.google.com/p/ibbdemo2/ looks like a great iPad emulator.
For anybody else still looking, follow these steps for Safari 4+ : Mobile Safari Settings on Desktop Safari
It can be done via Browser Stack
So do you guys know there is one more option and that is google
chrome. Yes google chrome provides developer toolbar where you can
inspect your element or debug your js files or you can see what are
the requests your site is hitting and receiving in the network panel.
It also having "Console" where you can emulate your site to different devices view.
Follow the steps below:
Open your site in latest google chrome.
Now right click and select "inspect element" or (F12) to get the devloper toolbar where you will find "Elements,Network,Sources....Console".
Click on console.
Now in the developer toolbar if you see at extreme top right you will find few options like "close the developer toolbar with cross (X) mark" but you click on "show drawer having this symbol (>-) kinda".
Now within the toolbar it will populate console,Search,emulation,Rendering.
Click on emulation option.
Just enable the emulation.
Now happily select whatever device you want and plus it will also tells you what is the resolution.
Please let me know if this is what you want and also ping me if you have any issue. You can read more here.
I am enable to add image since my rating is less by "1". if I get that rating I will attach image and then it will be clear to all. The previous link has images if you want to check it out thought.
http://transmog.net/ try this site.
I use for testing on linux.

BlackBerry rating bar - similar to AppWorld "stars" feature

The Android platform has a RatingBar widget. I believe there is a similar field for BlackBerry because BlackBerry AppWorld uses a rating bar. What field are they are using for that?
I was browsing another question on StackOverflow and found a reference to a BlackBerry knowledge base article that includes sample code for a RatingField.
The corollary to an Android Widget on the BlackBerry is a Field. The BlackBerry Widget SDK is meant for doing web development specifically for BlackBerry devices. I've edited your question to reflect this.
The important aspect to know about BlackBerry development is that the operating system is not open-source. RIM has chosen to make some APIs available for app developers, but they have not opened up the entire platform. RIM is able to access the entire operating system when they write an app themselves - such as the Facebook or Twitter apps, but if you are writing an app as a third-party developer, you are limited to what has been exposed in their developer JDE.
AppWorld may well use a built-in field that does the rating stars, but, if it exists, that field is not available for third-party developers.
It is actually pretty common in the BlackBerry culture to write your own Field objects. There is a ButtonField in the JDE, for example. It works well if you want a button with text. But if you want to make a button that contains only an image, there is no built-in ImageButtonField to use, and you cannot set an image on a plain ButtonField. You have to write your own button field to handle this.

Resources