Home » U++ Library support » LineEdit, EditFields, DocEdit » LineEdit how to set selection from code
LineEdit how to set selection from code [message #48956] |
Fri, 10 November 2017 08:49 |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
(orig question was regarding fonts)
I think because of block-selection it MUST have regularly spaced characters?
"LineEdit can do any font as long as it is monospace"
and that this is so by design
Now I want to select some text from code and I cannot figure out how to.
Say I have three lines of text in the LineEdit like so:
abc def ghi
jkl mno pqr
stu vwx yz
and I want to select from code the word "mno", how to do that?
I looked at SetSelection() but it does strange things - don't understand it at all.
Also: how do I set the blinking caret to be at the start of the above selection?
PS:
We really really really need proper documentation for Upp.
Is there such an effort underway? I'd like to contribute to it for the bits I understand
and usage/call examples similar to how http://en.cppreference.com/w/ does it.
I spend a lot of time tracing code for info that should be part of proper documentation.
[Updated on: Sat, 11 November 2017 10:29] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 23 08:36:15 CEST 2024
Total time taken to generate the page: 0.01379 seconds
|