Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
slashupp is currently offline  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" Wink
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

 
Read Message
Read Message
Previous Topic: How applying syntax, for example c++?
Next Topic: Adding simple Append to TextCtrl?
Goto Forum:
  


Current Time: Fri Mar 29 16:45:56 CET 2024

Total time taken to generate the page: 0.01613 seconds