Good day to all! There is a need to create your own control. The bottom line: There is a code that hits text on sentences. It seems to be beating correctly, at least I have not yet encountered problems. All received offers must be placed in the text field. Each sentence should also be circled by a “frame” line (the color for which you can set depending on the type and other characteristics of the sentence), but that’s not all. If the text is divided into sentences incorrectly, it should be possible to drag the right border of any sentence to a certain position, after which all instances of the class "sentence" affected by the drag should change the "text" field accordingly. It seems to be clear that it is necessary to dig in the direction of usercontrol, but how to draw the framework for the proposals is not clear. Drawing stupidly over the usual text field is, in my opinion, not an option, because When scrolling, the scrollbar will have to redraw everything.
Question: 1. What are the ideas about implementing the control or solving the problem as a whole? 2. Which way to dig?
Thank you for your attention) And if you also throw a clever thought, so do thousands of thanks!
Слон сказал: "Привет. Добро пожаловать!" (Вредный был слон, хоть и... Приветливый. Приветливый — это фамилия у него такая была.) "Но..." — задумался тигр, — "я не хочу никого жаловать, "толстокожая скотина". Тигр (его звали Васильев А. П.) был воспитанным, поэтому съел слона и больше не задавался вопросами: жаловать? не жаловать? Такая вот Юж. Африка дикая. А ведь 1000 г. до н. э. шёл!Слон сказал: "Привет. Добро пожаловать!" (Вредный был слон, хоть и... Приветливый. Приветливый — это фамилия у него такая была.) "Но..." — задумался тигр, — "я не хочу никого жаловать, "толстокожая скотина". Тигр (его звали Васильев А. П.) был воспитанным, поэтому съел слона и больше не задавался вопросами: жаловать? не жаловать? Такая вот Юж. Африка дикая. А ведь 1000 г. до н. э. шёл!and then - Athari