RaEditGadget Userlib

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

RaEditGadget Userlib

Post 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
Last edited by ts-soft on Thu Apr 24, 2008 10:58 pm, edited 1 time in total.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Awesome!

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

Thomas, how does this compare with scintilla?
I may look like a mule, but I'm not a complete ass.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

srod wrote:Thomas, how does this compare with scintilla?
Is more easy to use :wink:
Is smaller and no dll required
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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?
I may look like a mule, but I'm not a complete ass.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post 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
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

hallodri wrote:#STYLE_NOCOLLAPSE works, this style remove the collapse and expand button from bottom.
Doh! :oops:

:)
I may look like a mule, but I'm not a complete ass.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post 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 :?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

And that runs under Linux & MacOS like Scintilla ?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Progi1984 wrote:And that runs under Linux & MacOS like Scintilla ?
ts-soft wrote:PB4.xx windows only
:wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Booger
Enthusiast
Enthusiast
Posts: 134
Joined: Tue Sep 04, 2007 2:18 pm

Post by Booger »

Nice! Very useful, much faster than richedit.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Looks very good !
Thanks TS-Soft and Edel.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I think that Scintilla is more flexible because of its indicators, etc - but this seems simpler for just a code style editor. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply