Problem in cursor movement when the text is entered in textbox? - windows-phone-7

Textbox textwrap property is set to wrap.
My scenario is enter the text in textbox from SIP. When cursor reaches almost at the end of line may be 3 or 4 char left for line change just enter space so that it should came to next line. But after pressing space 4 or 5 time or more the cursor will not come to next line moreover it will not shown . It will come to next line when i enter some char.
I think it should came to next line because user may want to enter some space. is this can be fixed.

The other property you need to set on the TextBox is AcceptsReturn to true.

Related

Notepad++ column mode: Go To Last Line [duplicate]

This question already has answers here:
Notepad++: Mark Column until End of File
(3 answers)
Closed 5 years ago.
In a 200K+ line Notepad++ file, I need to select a partial column (block) of characters all the way to the very last line. (For example, select/highlight the block of 10th-15th characters, from the 100th line to the last line, but nothing outside of this perimeter.)
How can I extend the highlighted (by Alt-click) block of text downward to the last line without scroll-dragging the highlighted area?
In Windows PC, Alt-click and scrolling, page down works for smaller text blocks, but it takes forever to scroll to the last line in a large document. I tried various combinations of Alt, Ctrl, Shift, down arrow, page down, etc. none of them takes the cursor/highlighted text to the last line.
Any suggestions?
These steps should do it:
Move your cursor to the 10th character on line 100.
Use the scroll bar to scroll to the end of the file
Hold Alt+Shift then click after the 15th character of the last line
It requires a little mouse movement, but should be very fast even in a large file.
Position the cursor at the top left of your column. Then hold Shift + Alt - then click on the bottom right of your column to select it in one go.

PowerPoint addin: Justify alignment in a text-box

Explaining the problem
I am developing an addin in powerpoint and i am trying to create a textbox with justify alignment:
Shape newTextBox = currentSlide.Shapes.AddTextbox(...);
TextRange boxTextRange = newTextBox.TextFrame.TextRange;
textRange.ParagraphFormat.Alignment = PpParagraphAlignment.ppAlignJustify;
The results are not as expected. When i type an 'enter' character in this box, the line is not justified. Why? Because with every 'enter' character, a 'paragraph' character is automatically inserted. Here is a screen shot of the copy-pasted text from the powepoint text-box to a word document:
In every case, the line is considered the last line of the paragraph and it is not justified.
However, if i try to do the same thing on the title textbox in the default title layout slide, there are no 'paragraph' characters.
Question time ...
Is there a way to stop these characters from being automatically entered in the text box? Maybe an option that i can set via code?

How do I shift a set of lines one space to the right within a text editor?

How do I shift a set of lines one space to the right within a text editor?
If I wanted to shift a set of lines several spaces to the right, I would perform:
selected text + Tab
However, I just want to shift the text one space to the right without tabbing.
Any suggestions?
Hold down the alt key, left-click and hold the mouse button down on the first line where you wish to insert your space. Then, while still holding down the left mouse button, drag the mouse vertically to extend this edit point to all the lines you want to move. Dragging it horizontally will create a box selection, which you want to avoid, as the selected text will end up being replaced, rather than a space be added.
Also, you cannot select individual, disjoint lines to move. You can only use alt-drag over a contiguous block of lines.
Once you have your multiline edit point created, hit the spacebar once.
Tada.
Here's a blog post by Scott Guthrie with more details and a vidya demo
If you don't want to use the mouse, you can use shift+alt+(up, down, left, or right) to create a box selection, or a multiline edit point.

How to Add tab space to multilple line at the same time in any text editor

If you select a text you can add multiple tab spaces to the all lines simultaneously.
For that you must select the n lines of the code and press the key tab. If you want
remove the tab spaces should select the text and press shift+tab.
I was programming in my job and I accidentally discovered this in the IDE eclipse. I test the same process
in the Sublime Text and Geany and it works too.
Y suposse and pressume that works for the most of text editor
I can confirm the answer from kelgwiin for sublime text.
Depending on your platform you could also do the following in sublime text:
Linux: Hold shift and the right mouse button, then move the mouse up or down to make a column selection.
Windows + OS X: Simply hold down the mousewheel and move your mouse up and and down to select the columns.
Hope this helps!
On Geany you can create by using Alt+Shift+Mouse (Windows) or Ctrl-Shift-Mouse (*x) a multiline cursor or an rectange selection, where you can work on many lines at the same time. This is only working for lines 'in row' so you cannot choose line 9 and lines 12-16 and lines 23-44 to be edited at the same time.

Increase the height of Windows native edit control as the user is typing in text

We have a text box which is in fact an instance of the standard native Windows edit control used to enter text. The control was created using CreateWindowsEx without the ES_AUTOHSCROLL flag specified. It implies that word wrapping for entered text is used automatically.
Our goal is to fix the control's width and increase the height of the control automatically as the number of text lines is increased to show all them. An example: by default, the text box is empty. The user starts typing, and as soon as the end of the first line is reached, the text box automatically increases its height by one text line so the last word is put into the beginning of the second line due to word wrap.
How to gain this? Our development environment is VB6, but any WinAPI-based code is also welcome.

Resources