This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm using the WPF Elements PropertyGrid to and one of the properties is a custom struct for time. I created a TypeEditor that uses a MaskedTextBox to show a string in the format "00:00:00", representing hours, minutes, and seconds. It generally works fine. However, when I use the mouse or keyboard to select the seconds (or the entire string), there is an extra area to the right of the text that can also be selected. As you can see in the attached screen shot, ExtraSelection.png, The two 0's for the seconds are selected but there is another 'character' on the right that is selected as well. This character appears to be a CRLF -- when I paste it into Notepad or Word, it's interpreted as an end of line/paragraph. When it is selected, I cannot simply start typing numbers to replace the two 0's representing the seconds. I have to use the arrow key to remove the selection from the extra character before I can start typing the replacement numbers. I wouldn't mind this so much, except that when my users a quickly editing properties, they will likely select the seconds by swiping the mouse across the numbers and inadvertently include the extra character. When they do, they cannot quickly replace the seconds without first using the arrow key to unselect the extra character. How can I prevent the extra character from being included in the string shown in the MaskedTextBox? I'm using the evaluation version posted on 04/15/2013. |
|
|
Thanks for this suggestion. In the next nightly build, the MaskedTextBox will not allow the user to select the end-of-paragraph character. Jason Fauchelle |
|
|
The 18 April 2013 nightly build did the job. Thanks Jason! |
|