Hi optimus

Unicode support will never happend.

KetilO
Posted on 2003-11-11 00:52:27 by KetilO
Hi QS_Ong

RAEdit sends a WM_COMMAND to it's parent window.

Expand = 0FFFDh
Collapse= 0FFFCh

KetilO
Posted on 2003-11-11 00:55:49 by 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. :)
Posted on 2003-11-11 23:25:40 by optimus
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
Posted on 2003-11-12 08:03:26 by QS_Ong
Hi QS_Ong

No there are no messages to retrive this state. You have to get into the internal structures to find out.

KetilO
Posted on 2003-11-12 08:19:08 by 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
Posted on 2003-11-13 08:16:25 by QS_Ong
Hi QS_Ong

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
Posted on 2003-11-13 09:01:59 by KetilO
Hi, KetilO. Why can't I use mouse to pop-up edit menu in RAEdit (in a vb app)?
Posted on 2003-11-14 09:24:20 by optimus
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.
Posted on 2003-11-17 22:17:39 by optimus
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.
Posted on 2003-11-24 20:41:56 by optimus
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
Posted on 2003-11-27 07:35:50 by QS_Ong
Hi, KetilO. Why is REM_SETHILITELINE not working?
Posted on 2003-12-03 08:38:19 by optimus
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.
Posted on 2004-02-10 07:56:11 by QS_Ong
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
Posted on 2004-02-10 08:09:06 by 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.
Posted on 2004-02-10 08:37:42 by QS_Ong
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
Posted on 2004-02-10 08:56:19 by 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.
Posted on 2004-02-11 08:29:25 by QS_Ong
Hi QS_Ong

Use EM_EXGETSEL, EM_EXSETSEL and EM_SCROLLCARET to control character and caret position.

KetilO
Posted on 2004-02-11 13:56:32 by 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
Posted on 2004-02-19 07:51:26 by QS_Ong
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
Posted on 2004-02-19 08:04:27 by KetilO