Page 1 of 6

RaEditGadget Userlib

Posted: Tue Apr 22, 2008 5:52 pm
by ts-soft
This is an easy to use lightweight Edit-Library with support for highlightning, folding ...

The lib based of a ASM-Library from Ketilo (http://www.radasm.com/)

This is a first Beta release for testing surpose

Preview:
Image

Please test the lib, helpfile and examples are included
Give me your feedback :)

Download

greetings
Thomas

PB4.xx windows only

// edit
new version as include-file

Posted: Tue Apr 22, 2008 5:56 pm
by srod
Awesome!

I'm going to test this as soon as I can later tonight.

Thomas, how does this compare with scintilla?

Posted: Tue Apr 22, 2008 6:00 pm
by ts-soft
srod wrote:Thomas, how does this compare with scintilla?
Is more easy to use :wink:
Is smaller and no dll required

Posted: Tue Apr 22, 2008 6:04 pm
by srod
Can you shed a little light on the command : ImportRAEditRes() which isn't in the help manual?

Is this command required for any application using this library?

In example 2, the 'expand all' and 'collapse all' buttons don't seem to work!

This is great stuff. Thanks Thomas.

Posted: Tue Apr 22, 2008 6:12 pm
by ts-soft
srod wrote:Can you shed a little light on the command : ImportRAEditRes() which isn't in the help manual?
You find it on the "RaEditGadget()" side in the helpfile
It's only to import the icons, icons can't in a lib/userlib as resource and
make sure the import of "oldnames.lib" to resolve polink errors
srod wrote:Is this command required for any application using this library?
yes, this is required only ones per application!
srod wrote:In example 2, the 'expand all' and 'collapse all' buttons don't seem to work!
in the moment the doesn't work, we are searching for the message to do
that. There is no real documentation to the lib from ketilo, only the Source
to FBEdit helps a bit

Posted: Tue Apr 22, 2008 6:17 pm
by srod
Thanks. :)

Some of the creation style flags seem to have no effect; e.g. #STYLE_NOHSCROLL and #STYLE_NOCOLLAPSE.

**EDIT : RaEditSendMessage(#RaEdit, #REM_COLLAPSEALL, 0, 0) seemed to collapse all groups.

****EDIT : RaEditSendMessage() doesn't seem to work correctly. E.g. try RaEditSendMessage(#RaEdit, #REM_HIDELINES, 1, 1000) in demo 2 to find that it hides lines 3 onwards! Is this a bug in the asm library itself?

Posted: Tue Apr 22, 2008 6:46 pm
by hallodri
#STYLE_NOCOLLAPSE works, this style remove the collapse and expand button from bottom.

REM_HIDELINES is so correct, but not all bookmarks be processed

Thanks

Posted: Tue Apr 22, 2008 6:49 pm
by srod
hallodri wrote:#STYLE_NOCOLLAPSE works, this style remove the collapse and expand button from bottom.
Doh! :oops:

:)

Posted: Tue Apr 22, 2008 7:18 pm
by Num3
Wow!

Far simpler than scintilla!

GREAT work!

Feature request: :wink:
An autocomplete feature!

Btw there is an Freebasic IDE made with this .. Don't know if that would help :?

Posted: Tue Apr 22, 2008 7:35 pm
by ts-soft
Num3 wrote:Wow!

Far simpler than scintilla!

GREAT work!
Thanks
Num3 wrote:
Feature request: :wink:
An autocomplete feature!

Btw there is an Freebasic IDE made with this .. Don't know if that would help :?
The uses a extra lib for autocomplete, i think only as dll, but we will see what we can do :wink:

Posted: Tue Apr 22, 2008 8:17 pm
by Progi1984
And that runs under Linux & MacOS like Scintilla ?

Posted: Tue Apr 22, 2008 8:20 pm
by ts-soft
Progi1984 wrote:And that runs under Linux & MacOS like Scintilla ?
ts-soft wrote:PB4.xx windows only
:wink:

Posted: Tue Apr 22, 2008 10:01 pm
by Booger
Nice! Very useful, much faster than richedit.

Posted: Wed Apr 23, 2008 9:37 am
by gnozal
Looks very good !
Thanks TS-Soft and Edel.

Posted: Wed Apr 23, 2008 10:53 am
by DoubleDutch
I think that Scintilla is more flexible because of its indicators, etc - but this seems simpler for just a code style editor. :)