Home » U++ Library support » LineEdit, EditFields, DocEdit » DocEdit appned, highlight, mouse events
DocEdit appned, highlight, mouse events [message #26663] |
Tue, 18 May 2010 15:04  |
qwerty
Messages: 130 Registered: May 2006
|
Experienced Member |
|
|
hello,
1, can I appending "string" to DocEdit?
something like:
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
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?
ps: I could use RichTextView too
thank you
...erm, sorry for bad thread. admin, please move 
[Updated on: Tue, 18 May 2010 15:30] Report message to a moderator
|
|
|
|
Re: DocEdit appned, highlight, mouse events [message #26670 is a reply to message #26663] |
Tue, 18 May 2010 20:22   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
qwerty wrote on Tue, 18 May 2010 14:04 | hello,
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
|
AFAIK, NO.
check/analyze Paint or Highlight methods in CtrlLib
a) to highlight automatically by some rules check CodeEditor (like syntax highlighting in upp theIde)
b) or use QTF and Ctrls which understand QTF.
|
|
|
|
|
Re: DocEdit appned, highlight, mouse events [message #26799 is a reply to message #26663] |
Fri, 28 May 2010 15:14   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
qwerty wrote on Tue, 18 May 2010 09:04 | hello,
1, can I appending "string" to DocEdit?
something like:
|
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
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 21:26:00 CEST 2025
Total time taken to generate the page: 0.00572 seconds
|