Hi optimus
Unicode support will never happend.
KetilO
Unicode support will never happend.
KetilO
Hi QS_Ong
RAEdit sends a WM_COMMAND to it's parent window.
Expand = 0FFFDh
Collapse= 0FFFCh
KetilO
RAEdit sends a WM_COMMAND to it's parent window.
Expand = 0FFFDh
Collapse= 0FFFCh
KetilO
I've seen a modified version of RadASM 1.x which can support Chinese characters (not necessary unicode, but just double-byte chars) very well. But never seen a modified 2.x version. :)
Hi KetilO,
If I set some divider lines in RAEdit (REM_SETDIVIDERLINE), is there a way to retrieve the locations (lines no or charactor indexes) where I set these lines ?:)
Thanks
If I set some divider lines in RAEdit (REM_SETDIVIDERLINE), is there a way to retrieve the locations (lines no or charactor indexes) where I set these lines ?:)
Thanks
Hi QS_Ong
No there are no messages to retrive this state. You have to get into the internal structures to find out.
KetilO
No there are no messages to retrive this state. You have to get into the internal structures to find out.
KetilO
Hi KetilO,
Bookmarks are marks you can set at any line in your text. A visual mark is set at the margin. You can later use these bookmarks to goto that line.
REM_NXTBOOKMARK returns the next line higher than 'Line' with a bookmark of type 'nType'
nType=1 to 8
KetilO
And what is the function for nType = 0. It seem that it was set automatically when calling setblocks function. Can I clear it and set it by using setbookmark function?
Thanks
Bookmarks are marks you can set at any line in your text. A visual mark is set at the margin. You can later use these bookmarks to goto that line.
REM_NXTBOOKMARK returns the next line higher than 'Line' with a bookmark of type 'nType'
nType=1 to 8
KetilO
And what is the function for nType = 0. It seem that it was set automatically when calling setblocks function. Can I clear it and set it by using setbookmark function?
Thanks
Hi QS_Ong
REM_SETBOOKMARK with nType=0 clears a single bookmark.
I am confused. :confused:
KetilO
REM_SETBOOKMARK with nType=0 clears a single bookmark.
And what is the function for nType = 0. It seem that it was set automatically when calling setblocks function. Can I clear it and set it by using setbookmark function?
I am confused. :confused:
KetilO
Hi, KetilO. Why can't I use mouse to pop-up edit menu in RAEdit (in a vb app)?
Hi KetilO. I've thought out a solution to display double-byte characters correctly in RAEdit. When detected double-byte chars (the highest bit of the char is 1), use a different CharacterSet (e.g. 86H for Chinese, this setting can be set by user) to display them. That will easily solve the problem.
The WM_GETTEXT has a problem, CR and LF (0DH,0AH) are not grabbed with text. I don't if this issue has ever been mentioned. Also WM_GETTEXTLENGTH returns the length of text with CR and LF excluded.
Hi KetilO,
Is there a way to del all DIVIDERLINE at a time?
Currently I del it using SETDIVIDERLINE with FALSE line by line.
Thanks
Is there a way to del all DIVIDERLINE at a time?
Currently I del it using SETDIVIDERLINE with FALSE line by line.
Thanks
Hi, KetilO. Why is REM_SETHILITELINE not working?
Hi KetilO,
SetCaretPos seem not working with your RAEdit. It seem that you intercept the Caret function. Anyway to get across this.
eg.
I use GetCaretPos to save current Caret position. Sendmessage with EM_REPLACESEL some word. SetCaretPos to it original place. But didn't work. :confused: when I start typing the caret is at after the replace words.
SetCaretPos seem not working with your RAEdit. It seem that you intercept the Caret function. Anyway to get across this.
eg.
I use GetCaretPos to save current Caret position. Sendmessage with EM_REPLACESEL some word. SetCaretPos to it original place. But didn't work. :confused: when I start typing the caret is at after the replace words.
Hi QS_Ong
SetCaretPos is a windows api and does not in any way affect RAEdit.
EM_(EX)SETSEL and EM_SCROLLCARET is what moves the caret in an edit control.
KetilO
SetCaretPos is a windows api and does not in any way affect RAEdit.
EM_(EX)SETSEL and EM_SCROLLCARET is what moves the caret in an edit control.
KetilO
Hi KetilO,
I have check the RAEdit source code. It seem that (may be I'm wrong, because my skill not good) RAEdit record the caret position with every key you press eg VK_RIGHT, VK_LEFT etc. So when I send EM_REPLACESEL and SetCaretPos, the SetCaretPos is ignored because in RAEdit EM_REPLACESEL proc will set caret in the position where recorded by the RAEdit. Am I right?
Sorry I didn't bring the example to internet cafe to upload.
I have check the RAEdit source code. It seem that (may be I'm wrong, because my skill not good) RAEdit record the caret position with every key you press eg VK_RIGHT, VK_LEFT etc. So when I send EM_REPLACESEL and SetCaretPos, the SetCaretPos is ignored because in RAEdit EM_REPLACESEL proc will set caret in the position where recorded by the RAEdit. Am I right?
Sorry I didn't bring the example to internet cafe to upload.
Hi QS_Ong
Note that SetCaretPos only moves the visible caret and does not in any way affect where the next character will be inserted/deleted in your text.
KetilO
Note that SetCaretPos only moves the visible caret and does not in any way affect where the next character will be inserted/deleted in your text.
KetilO
Hi KetilO,
How to alter the location of next charactor to be inserted? My purpose is when the user type "(", I want the IDE to insert ");" automatically and when the user press enter, the caret jump to end and insert crlf. ("(" and ");" at the same line)
In the attachment, open C--IDE.exe, Ctrl-N to open a new file, type something, press 1 or 2 then type again. You will know what I mean.
File MISC.C--, line 43~53, a simple test.
How to alter the location of next charactor to be inserted? My purpose is when the user type "(", I want the IDE to insert ");" automatically and when the user press enter, the caret jump to end and insert crlf. ("(" and ");" at the same line)
In the attachment, open C--IDE.exe, Ctrl-N to open a new file, type something, press 1 or 2 then type again. You will know what I mean.
File MISC.C--, line 43~53, a simple test.
Hi QS_Ong
Use EM_EXGETSEL, EM_EXSETSEL and EM_SCROLLCARET to control character and caret position.
KetilO
Use EM_EXGETSEL, EM_EXSETSEL and EM_SCROLLCARET to control character and caret position.
KetilO
Hi KetilO,
How to determine the word after caret?
eg
. . .
sendmessage(hEdit, EM_REPLACESEL, TRUE, #cr)
. . .
when the user press '(', how to determine the word is 'sendmessage' and make condition jump.
Thanks
How to determine the word after caret?
eg
. . .
sendmessage(hEdit, EM_REPLACESEL, TRUE, #cr)
. . .
when the user press '(', how to determine the word is 'sendmessage' and make condition jump.
Thanks
Hi QS_Ong
Use EM_EXGETSEL. Decrement selection before using EM_FINDWORDBREAK with WB_MOVEWORDLEFT to get start of word. Then use EM_GETSELTEXT to get text.
KetilO
Use EM_EXGETSEL. Decrement selection before using EM_FINDWORDBREAK with WB_MOVEWORDLEFT to get start of word. Then use EM_GETSELTEXT to get text.
KetilO