Hi all

New versions of SimEd with sources and RAEdit (2009-11-04).

KetilO
Attachments:
Posted on 2003-06-20 07:53:58 by KetilO
Starting extensive testing KetiIO,

Regards,

akyprian
Posted on 2003-06-20 09:26:03 by akyprian
I really like the RAEdit Control. It's starting to get full featured. I'm looking for a control to add syntax highlight to my text editor and so far, it's the best. I compared it with a couple of others like codemax and scintilla, and wrote my own using richedit. It's almost the smallest, (I've also tried the control from the fasm editor) and it's the one with the most features I use.

I would like to use it in my own editor if you don't mind. I doubt it would be worthy of all the Ide here and elsewhere, but I learn a lot when I write my own stuff.

As for the bugs, I haven't found any that aren't solved yet. I tried to use the control for other languages than asm, like C or Sql. I have the problem that I'm not able to stop the ";" from commenting the rest of the line. I've looked through the source, but since I'm not that good yet, I haven't found the place for it or the message to send to change the comment.

Please continue your great work on this control! So far, it's one of the best and it's getting even better very fast...

:alright:
Posted on 2003-06-20 11:44:55 by Silas
Hi Silas

I would like to use it in my own editor if you don't mind.

The point of releasing the code is that someone will use it. Shure I don't mind.
I have the problem that I'm not able to stop the ";" from commenting the rest of the line.

RAEdit has a character table that can be altered with REM_SETCHARTAB and read with REM_GETCHARTAB.

Invoke SendMessage,hEdit,REM_SETCHARTAB,3Bh,2

Will stop the ';' from commenting the lines.

KetilO
Posted on 2003-06-20 13:16:10 by KetilO
KetiIO,

One question,

is it necessary the first and last lines of the RaEdit control to be always visible? i.e can't we hide these two lines?

Regards,

akyprian
Posted on 2003-06-20 13:35:46 by akyprian
Hi akyprian

The first line must not be hidden. The last line can be hidden if it ends with CR.

KetilO
Posted on 2003-06-20 14:36:12 by KetilO
Hi KetiIO,

1.There is no chance You can change this?

2.What do you recommend? Use the new message for hiding a line range or the "old" message that hides one line? Are there any differences(I haven't had the time to study them yet)

Regards,

akyprian
Posted on 2003-06-20 15:20:34 by akyprian
Hi akyprian

The old:
REM_HIDELINE equ REM_BASE+22 ;wParam=Line, lParam=TRUE/FALSE
Hides shows only one line.

The new:
REM_HIDELINES equ REM_BASE+47 ;wParam=nLine, lParam=nLines
Hides several lines and sets a bookmark.

KetilO
Posted on 2003-06-20 16:39:57 by KetilO
Thanks KetiIO,

No chance to hide first and last line?

Regards,

akyprian
Posted on 2003-06-20 16:43:32 by akyprian
Hi akyprian

Sorry to say, NO

KetilO
Posted on 2003-06-20 16:45:42 by KetilO
OK KetiIO,

Regards,

akyprian
Posted on 2003-06-20 16:56:11 by akyprian
KetiIO,

There is a small painting problem down on the SizeGrip area if you use a color scheme other than the windows standard.

Regards,

akyprian
Posted on 2003-06-26 01:54:37 by akyprian
Hi, KetilO
File SimEd.inc,
line 206, szProc db '$ proc',0
line 207, szEndp db '$endp',0

May I know what is this '$' means
TQ
Posted on 2003-09-09 09:11:47 by QS_Ong
Hi ASM

It simply replaces the name.

KetilO
Posted on 2003-09-09 13:28:24 by KetilO
Hi KetilO
I found something strange in RAEdit about block comment.
I set the block comment with "/*" (start) and "*/" (end). But the words after "*/" also highlight with block comment color.

TQ
Posted on 2003-09-23 09:17:46 by QS_Ong
Hi ASM

Block comment works on whole lines only.

KetilO
Posted on 2003-09-26 18:23:41 by KetilO
Hi KetilO
Any suggestion how to Setblock in C-- language? :)
I set with "{" (start) and "}" (end) which I copy the idea from TBD. File wndproc.c--, line 95. CmmEdit.inc, line 31
But sometime it appear not so good eg. when you open file tools.c--.
And how to make the divider line one line above "{".

The '$' seem not functioning after the word. Eg below:
byte szStart = "dword $ (";

Thanks
Posted on 2003-09-27 09:20:03 by QS_Ong
Hi ASM

The only way to make RAEdit work well with C code is to use the low level commands and analyse the code yourself.

Look up the following messages:

REM_SETDIVIDERLINE
REM_HIDELINES
REM_ISLINEHIDDEN
REM_SETBOOKMARK
REM_GETBOOKMARK
And to support nesting:
REM_SETBMID
REM_GETBMID

KetilO
Posted on 2003-09-27 11:48:37 by KetilO
Is there any way to put the codes of RadEdit into a DLL and use it in Visual Basic?
Anyone knows?
Posted on 2003-09-28 00:17:47 by optimus
Hi optimus

RAEdit is a dll.
Since VB can use api calls it should be possible to use RAEdit.

KetilO
Posted on 2003-09-28 01:56:39 by KetilO