Simply a command button takes control from it.
Posted on 2003-10-08 05:22:33 by optimus
Hi all

Expanded the VB demo a little.

KetilO
Posted on 2003-10-08 06:05:31 by KetilO
I've come to a conclusion.
If RAEdit is placed in the form, everything is ok.
If it is placed in a FrameBox or sth like that, arrow keys go wrong.
Posted on 2003-10-08 09:43:58 by optimus
Hi KetilO,
What is book mark & what is the use of book mark.
May I know the meaning below:

REM_NXTBOOKMARK
wParam=Line
lParam=nType

Thanks
Posted on 2003-10-13 07:39:21 by QS_Ong
Hi ASM

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
Posted on 2003-10-13 08:09:02 by KetilO
very nice control . I'm testing it and hope can use it in my works soon ! :alright:
Posted on 2003-10-18 08:15:03 by dreamweaver
hi KetilO, can u tell me how to determine if the content in RAEdit has been modified or not?
Posted on 2003-10-20 09:21:54 by optimus
Hi optimus

By sending it an EM_GETMODIFY message.

KetilO
Posted on 2003-10-20 13:01:52 by KetilO
Hi all you hla users

I have created a demo on how to use RAEdit with hla.

KetilO
Posted on 2003-10-22 06:45:26 by KetilO
Hi Ketil,

I can't figure out what message will cause the cursor to "goto" a specified line. I have been able to figure out most of what I want to do from you source code, but this has got me.

Thanks
Posted on 2003-10-22 21:04:28 by msmith
Hi msmith

You can goto a line by first getting the lineindex and then setting the selection to that lineindex.



LOCAL chrg:CHARRANGE

invoke SendMessage,hEdit,EM_LINEINDEX,nLine,0
mov chrg.cpMin,eax
mov chrg.cpMax,eax
invoke SendMessage,hEdit,EM_EXSETSEL,0,addr chrg
invoke SendMessage,hEdit,EM_SCROLLCARET,0,0


KetilO
Posted on 2003-10-23 00:54:06 by KetilO

Hi all you hla users

I have created a demo on how to use RAEdit with hla.

KetilO


Hi Ketil, that's nice. :alright:

The only thing I can suggest you is to change (like it's done in the HLA WPA examples) the clean section of the makefile to:
clean:

delete tmp
delete *.exe
delete *.obj
delete *.res
delete *.link
delete *.asm
delete *.map

...and add a delete.bat file with the following content:
del /Q /F %1

if errorlevel 1 echo no files

This is due to the fact that if you run nmake on w2k the buildall will stop during the clean routine, as del (in the specific, cmd.exe) will return an exit code different than 0.

Another thing, but this is related to the integration between RadASM and HLA, I wish that at a certain point there will be a synchronization between you and Randall.

In the HLA's RadASM files (templates, examples, etc...) Randall is providing a MenuMake as follows:
[MenuMake]

1=&Build,55,M,1
2=Build &All,31,M,2
3=&Compile RC,91,M,3
4=-,0,M,
5=&Syntax Check,103,M,4
6=-,0,M,
7=&Run,67,M,5
8=$$,0,M,0
9=$$,0,M,0

...while you are providing something like this:
[MenuMake]

1=&Compile RC,91,M,1
2=$$,0,M,0
3=$$,0,M,0
4=&Build,55,M,3
5=Build &All,31,M,2
6=-,0,M,
7=&Run,67,M,4
8=-,0,M,
9=&Syntax,103,M,5


This implies that the user will have each time to manually change the .rap files provided by you or Randall, depending if he has choosen to use your or his .ini file. As a user, I've found it a little bit confusing :confused: and annoying :(

Anyway I'm not complaining at all for this last point, I'm just giving my personal feeling about that ;)
Posted on 2003-10-24 09:37:45 by Cip
Hi Ketil,

Your example for scrolling to a given line number works fine except the cursor is not displayed at the destination. Is there a message to force the display of the cursor?
Posted on 2003-10-24 22:07:54 by msmith
Hi msmith

invoke SetFocus,hEdit

Shoud show the caret.

KetilO
Posted on 2003-10-25 02:32:29 by KetilO
Hi KetilO,
May I know how to insert (not by typing) some string from buffer to RAEdit control.
What I means is the program open a text file. Load the content into memorywith RAEdit. I want the program to insert some pre-define string from program buffer into RAEdit control, no matter from the beginning of the text content or anywhere.
In the early day, dos use a pointer (eg file pointer) to point to the location where should I insert or delete the text.
May be : invoke SendMessage,hREd,REM_???,???,???

Thanks
Posted on 2003-10-27 17:29:01 by QS_Ong
Hi QS_Ong

Use EM_EXSETSEL to set the selection.
Use EM_REPLACESEL to replace, delete or insert text.

KetilO
Posted on 2003-10-28 00:39:53 by KetilO
Hi KetilO,
May I know how to highlight key words with case sensitive. I wrote a program using your RAEdit. It higlight key words without case sensitive.
eg. SendMessage, sendmessage -> both were highlighted. But it should highlight "SendMessage" only.

Thanks.
Posted on 2003-10-31 08:17:46 by QS_Ong
Hi QS_Ong

Prefix the word with a ^

Example:

^ThisWordIsCaseSensitive

KetilO
Posted on 2003-10-31 09:35:40 by KetilO
Hi, ketilO. When will RAEdit support Unicode characters?
Posted on 2003-11-10 20:21:40 by optimus
Hi KetilO,
May I know how to detect user click expand all or colapse all in the RAEdit control (left bottom of RAEdit windows, beside line no button) ?
And how to do auto correct in IDE ? :)

Thanks
Posted on 2003-11-10 22:19:57 by QS_Ong