Simply a command button takes control from it.
Hi all
Expanded the VB demo a little.
KetilO
Expanded the VB demo a little.
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.
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.
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
What is book mark & what is the use of book mark.
May I know the meaning below:
REM_NXTBOOKMARK
wParam=Line
lParam=nType
Thanks
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
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
very nice control . I'm testing it and hope can use it in my works soon ! :alright:
hi KetilO, can u tell me how to determine if the content in RAEdit has been modified or not?
Hi optimus
By sending it an EM_GETMODIFY message.
KetilO
By sending it an EM_GETMODIFY message.
KetilO
Hi all you hla users
I have created a demo on how to use RAEdit with hla.
KetilO
I have created a demo on how to use RAEdit with hla.
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
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
Hi msmith
You can goto a line by first getting the lineindex and then setting the selection to that lineindex.
KetilO
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
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 ;)
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?
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?
Hi msmith
invoke SetFocus,hEdit
Shoud show the caret.
KetilO
invoke SetFocus,hEdit
Shoud show the caret.
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
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
Hi QS_Ong
Use EM_EXSETSEL to set the selection.
Use EM_REPLACESEL to replace, delete or insert text.
KetilO
Use EM_EXSETSEL to set the selection.
Use EM_REPLACESEL to replace, delete or insert text.
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.
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.
Hi QS_Ong
Prefix the word with a ^
Example:
^ThisWordIsCaseSensitive
KetilO
Prefix the word with a ^
Example:
^ThisWordIsCaseSensitive
KetilO
Hi, ketilO. When will RAEdit support Unicode characters?
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
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