Question about using SynEdit

Hi experts, I've become aware recently of a Delphi component called SynEdit and I'm thinking it would work a lot smoother than the TRichEdit I'm using in my project now. Specifically, I would like to be able to drag and drop any of the individual characters within the SynEdit control, to another position within the same SynEdit control (basically, have the ability to "re-arrange"). Can this actually be done in SynEdit, and if anyone has had any success in doing so, could they kindly show sample code?

Thanks!
    Shawn

P.S: I'm using Delphi 7
shawn857Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimyXCommented:
Hi Shawn,
You do not have to do anything, this is already possible and is by default in SynEdit (and SynMemo).
I tried and it works without doing anything. Just highlight the character, drag, and drop.

Did you try and it did not work?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shawn857Author Commented:
Hi Jimy... OK I had just downloaded and installed it a couple of hours ago and didn't try it. I just tried it now by simply dropping a SynEdit component onto a form and the drag/drop works just like I hoped!! That was easy, hahah!
   I just need to know now how to work with SynEdit, as there doesn't appear to be any documentation. I just need to do things in SynEdit that are like in TRichEdit - like change attributes (color, style, underline, etc) of each character during runtime, and so on. Do you know of any sample projects or sites that could give me some guidance Jimy?

Thanks!
    Shawn
0
jimyXCommented:
> I just need to know now how to work with SynEdit, as there doesn't appear to be any documentation.

Do not have any docs for it, and haven't seen any. But the demos should get you started, and when facing issues you can google or post here.
Also you could subscribe in the Mailing Lists, where you could find some useful details, or get help when required.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

shawn857Author Commented:
OK Jimy thanks I'll start to go through the demos. I'm just wondering if SynEdit behaves in a similar way to a TRichEdit where you use things like SelStart and SelLength to set the text attributes... or is it done a completely different way.

Thanks
    Shawn
0
jimyXCommented:
Despite the similarities, SynEdit is totally different than RichEdit.
For instance there is no selAttributes, but there is SelStart and SelLength.
I do not know really how to achieve that. Haven't tried that before.
0
shawn857Author Commented:
Yeah, I'm looking more at SynEdit here Jimy and I'm not sure if it's gonna work for me. I really don't need words or characters "highlighted" - that seems to be the purpose of SynEdit... I just need to move around (drag/drop) individual characters freely within the edit control. So far at least, I don't see a way in SynEdit to "assign" each character its own color/style/etc. I do love the drag/drop ability within the SynEdit control, but the assigning of attributes to each character might be the problem... or not possible.

Thanks
  Shawn
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.