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 » DocEdit appned, highlight, mouse events
Re: DocEdit appned, highlight, mouse events [message #26799 is a reply to message #26663] Fri, 28 May 2010 15:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
qwerty wrote on Tue, 18 May 2010 09:04

hello,

1, can I appending "string" to DocEdit?

something like:
mydocedit << "text";




This should work:

mydocedit.Insert(mydocedit.GetLength(), "text);

Quote:


2, how can I highlight(like mouse select) just the fragment of text sdded/set to DocEdit (if it's even possible), by code, not by mouse



SetSelection.

Quote:


3, can I somehow find out, which character, or the "sequel" or "rank" of the character drom the begining, when I move the mouse onto it?



Not sure what you mean by that.

However, you can always use "GetCursor" to find out current cursor position and operator[] to get character at any position.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropList bug when compiling with SPEED option
Next Topic: Scan an timestamp
Goto Forum:
  


Current Time: Sun May 05 06:24:43 CEST 2024

Total time taken to generate the page: 0.02835 seconds