Using the Scintilla Edit Control

Started by JR Heathcote, July 07, 2008, 09:13:12 PM

Previous topic - Next topic

JR Heathcote

Has anyone used the Scintilla edit control in a Firefly project?  I'm sure it's possible, but I'm having difficulty just getting it to work properly.  Code snippets or even pseudo code would be a start.

TIA


Rudolf Fürstauer

Jose Roca is using this control in his SED-MDI code editor.
You can download the whole sourecode of this editor, written with PB

http://com.it-berater.org/sed.htm


JR Heathcote

Rudolf,

Yes, I have looked at Jose's SCI editor and I've gotten as far as I have looking at his source code as a guide, but Jose's editor is written in PB using SDK mode, not Firefly.  So my original question still stands, how to make the Scintilla control work under Firefly?

JR


TechSupport

You should be able to model Jose's code into FireFly pretty easily. Most of the SDK style code can be copy/pasted directly into the CUSTOM message handler in FireFly. You wouldn't be able to use Scintilla as a FireFly ToolBox control but you still should be able to easily create a Scintilla window using CreateWindowEx API.

Actually, I had started to use Scintilla in FireFly2 when I started developing FireFly3. I found the control a little cumbersome to work with but it did work in FireFly2. I have since switched to an edit control that I have written myself. I didn't keep all of the Scintilla stuff however I did rough up a very quick example project for you (see attachment). It simply loads the DLL and creates a Scintilla edit control that fills the whole form. Manipulating the control should be easy because all you do is send messages to it.

David Kenny

Paul,

Will you be including your edit control in the FF3 toolbox?  Even a stripped down version?

David

TechSupport

Quote from: David Kenny on July 08, 2008, 06:51:55 PM
Paul,

Will you be including your edit control in the FF3 toolbox?  Even a stripped down version?

David
I guess that I could. I'll cross that bridge when FF3 is ready.   :)

JR Heathcote

Paul,

Thanks.

Your example showed me exactly what I wanted to know.

I would also like to know if you would release your edit control in FF3?  Even if I had to pay extra for the use of this control it would be worth it to me to have something that is natively supported by Firefly or visa versa.

Thanks again.

JR