I wonder which Rich Edit control is used in WinAsm. It looks like the one used in RadAsm. Is it a personnal control or a commercial / freeware / shareware one ?

Thank U
Posted on 2004-03-25 08:56:02 by golemxiii

CodeHi control is based on raedit control (free-open source) by KetilO,

Posted on 2004-03-25 09:20:41 by akyprian
Hi !

Thank U very much !
Posted on 2004-03-25 09:30:14 by golemxiii
Hi Akyprian,
I searched but I can't find a link to download CodeHi source code. Could u tell me where to find this raedit control ?
I'm very interested in making a "linenumbers" ("selection bar") in the richedit, like what you did in Winasm, that's really cool. Is that in CodeHi source code.

Santa :D
Posted on 2004-03-27 12:54:36 by santa
CodeHi source code is not available but readit control source is available from KetilO's site. If you need any help, please let me know,

Posted on 2004-03-28 07:10:35 by akyprian
Hi Akyprian :grin:
I only want to know how to make a "linenumbers" ("selection bar") like yours in Winasm, because I'm writing an editor that supports programming in Javascript language and It will look pro. if it has a "selection bar".

Santa, :grin:
Posted on 2004-03-28 19:58:02 by santa
Hi santa,

I understand what you want to achieve but CodeHi and richedit control are two completely different controls, so... I 've done it with richedit in the past but I am afraid I can't find the source. Surely, you have to subclass richedit and handle WM_PAINT. I hope this helps a little. Give it some try and post your progress so that I am of more help.

Posted on 2004-03-29 03:33:42 by akyprian
Thanks Akyprian, :alright:
I'll try, but it'll take me a long time :sweat:
And sure, I'll need your help :)

Santa :grin:
Posted on 2004-03-29 13:08:26 by santa
Hi, Akyprian

I subclassed richedit, and made handler function for WM_PAINT, but don't know to how to continue.
Could u give me some clues ? like which functions should I use, do I need to include any lib.

I'm so newbie :(
Posted on 2004-04-14 19:22:43 by santa

Attached is a quick and easy to understand example of what you are looking for. It can be optimized a lot but I haven't done it so that it is easier for you to follow.

I hope it helps,

Posted on 2004-04-16 03:10:13 by akyprian
Here is the attachment
Posted on 2004-04-16 03:11:18 by akyprian
Woa, that's great.
Now I know how to do that
Thanks so much Akyprian :)
You are number one :alright:
Posted on 2004-04-16 19:34:02 by santa
Hi, Akyprian

I have a question :sweat:
when you paste about 100 line of text or larger, then use mouse to drag the scrollbar or scroll up and down several times, the lines of text in the richedit and line number of selection bar went wrong, they're not corresponding to each other anymore.

Any suggestion ? Do I need to handle WM_VSCROLL message ?

Sorry Akyprian, Did I bother u with my stupid questions :confused: ? But I really don't know how to do
I did try by my self to fix it but can't :sweat:

Santa :stupid:
Posted on 2004-04-17 19:25:21 by santa
This is progressing as a step by step tutorial!

Here is the second step of the tutorial :grin:


Posted on 2004-04-18 17:02:59 by akyprian
I'm getting better :grin:
Posted on 2004-04-19 19:56:46 by santa