Hey mouser thanks for the warm welcome, I appreciate it
Well, to be honest, I'd rather not re-invent the wheel but I really did search for solutions and I failed to find any. I remember once I downloaded a project file for BCB, called UndoRedo.zip but when I extracted it and when I launched it, didn't open up properly, missing that. missing this, failed to load this, failed to load that blah blah blah, syntax error....statement missing....I say this literally so I gave up looking at the source code.
You mentioned, there are some nice and free bcb/delphi editor components. Do you know of any names I can search for? It is really hard. I found one, called SynEdit. But the component simply does not show up on the pallete on BCB 6. I posted a message on the forums, no one replied to help me. The forum over there seem to be non active. After seeking for help without success, I decided...as you said, to re-invent the wheel. I don't have a choice. I will also have to implement syntax highlighting too but it is not a priority for now.
Another question I have that you might know is this. What I want is, when the user clicks the RichEdit with the right mouse button, I want to move the carot at that position, as if the user clicked the left mouse button. Because when the user clicks the left button, the carot moves. Well I want to move it with the right mouse button. I have been unable to implement this and I have tried a few approaches such as tracking and capturing the right mouse click and sending a left mouse click message to the RichEdit, none of them worked and I don't even know if I am playing with the right APIs. The program that I write is really good. I have implemented some very cool features but these are some of the obsticles I am facing. I don't know how to move the carot at the position where the user clicks with the right mouse button. I will have to keep experimenting and read hundreds of pages of MS documentation just to implement simple stuff like this. I am sure it's not hard to do, the problem is I don't know what to look for. It's like searching for a needle.
I will see if I can get the DragDrop component going. My knowledge in Pascal is 0% but yes, the properties and methods and behaviours are the same as BCB when comparing Delphi and BCB. I have already used some Delphi examples in BCB, I just need to convert the syntax into C++ otherwise all the same.