Page 1 of 2

jaPBe - Editor-Core

Posted: Sun Jun 01, 2003 3:20 pm
by GPI
After the problems with MOD 4-5, i first want to know, if my new core for my project (just another PureBasic editor) runs without any problems (exspecial the Win2000/XP Systems)

http://caosandkin.bei.t-online.de/purebasic/jaPBe.zip

Ok, what is new:
Falten,
AutoIndent (write a if - else - endif- command over more lines and you see it)
AutoCompletion (to acept it, hit TAB or CTRL+RETURN)
Extended Format

Combine two lines with (del), when both lines have spaces at the beginning.

;{- creates now also a bookmark

Try it, there are more.

GPI

Hello ,

Posted: Sun Jun 01, 2003 4:18 pm
by DominiqueB
I found two pb:
a) The function named ReplaceText() has the same name as the RichEdit library, change the proc name to ReplaceText1...

b) The structure named tc_item has an incorect part you called imask, it must be mask to be ok to the struct declared in PB.

Thank's for your great work..

Dominique

Re: Hello ,

Posted: Sun Jun 01, 2003 4:38 pm
by GPI
>b) The structure named tc_item has an incorect part you called imask, it
>must be mask to be ok to the struct declared in PB.

on my PB it is definied as imask.

Have you changed something?

Hi

Posted: Sun Jun 01, 2003 5:33 pm
by DominiqueB
No, just changed it's name to mask and all worked ok .
i use the 3.62v of Pb.
Also renamed the func's name to ReplaceText1() everywhere it appears, and your proc compiled ok.
I work on XP pro, and now all is working well.

Re: Hi

Posted: Sun Jun 01, 2003 6:20 pm
by GPI
DominiqueB wrote:No, just changed it's name to mask and all worked ok .
i use the 3.62v of Pb.
Funny thins. My PB (mark the structurename and press alt+s) say, that i must name it imask. How is this possibel ?

>Also renamed the func's name to ReplaceText1() everywhere it appears,
>and your proc compiled ok.

Maybe the person, who write the RichEdit-Lib should rename all the functions like RE_blabla. I mean, ReplaceText sound not on a realy unused name.

Re-

Posted: Sun Jun 01, 2003 6:32 pm
by DominiqueB
The structure is defined in the resident file: windows.res
Mine is from 19-04-2003, what's yours ?
Perhaps a renamed has been done to it ?
Just had a look into Windows help, the correct name is mask.
so, i have the good one.

Do you want it ?

Ok

Posted: Sun Jun 01, 2003 6:45 pm
by DominiqueB
I've found what is the matter:
i'm using the latest resident available from the cvs site, so the correct name for mask has been corrected on the 08/04/03..
That's all !

Dominique.

Posted: Sun Jun 01, 2003 7:29 pm
by TronDoc
it runs good here
pb362
w98 first edition
p2 250Mhz
256Mb RAM

I ran it from the regular
pb ide

Joe

jaPBe - Editor-Core

Posted: Sun Jun 01, 2003 8:07 pm
by woki
I like it.
Runs here on XP prof. engl. with local settings german.

PB 3.62
P4 1700
512MB

woki

Posted: Sun Jun 01, 2003 9:40 pm
by El_Choni
Maybe the person, who write the RichEdit-Lib should rename all the functions like RE_blabla. I mean, ReplaceText sound not on a realy unused name.
Yep, sorry, I'm doing that with each new version of my libs now (I use EC_).

Posted: Sun Jun 01, 2003 9:54 pm
by GPI
>Yep, sorry, I'm doing that with each new version of my libs now (I use EC_).

EC_ is not a good beginning, better is a shortname of the lib (Scintilla -> SCI_). For a RichEdit something like RE_ or REDI_.

BTW: Can you convert my Scintilla.PBI to a LIB?

@All
The old mod had problems, when you Drag&Drop a file in the Editor, even when this function is deactiv (WinXP). So please can test this? Simply drag and Drop a file in the Scintilla-Editor-Window.

Posted: Sun Jun 01, 2003 11:29 pm
by El_Choni
EC_ is not a good beginning
Why not? Kinda identifies the author, doesn't it?
, better is a shortname of the lib (Scintilla -> SCI_). For a RichEdit something like RE_ or REDI_.
RE_ would be ok, too, but what if somebody wants to code another RichEdit lib? But wait... what I'll do is ahorten function names (now they're RichEditThis, RichEditThat) to RE_This, RE_That. Thanks for the tip. But for the rest, I think I'll stick to EC.

Posted: Mon Jun 02, 2003 12:21 am
by TronDoc
dragNdrop appears to not work on the version I just downloaded
I get the "not allowed" symbol (circle with line through it)
--jb

Posted: Mon Jun 02, 2003 4:33 am
by fsw
GOOD WORK MAN!

I wanted to send you my source code of my version of the editor, but it seems to be obsolete :wink:
You have far more Scintilla functions integrated than I have...
(But no file functions though...he, he)

Posted: Mon Jun 02, 2003 5:58 pm
by GPI
@TronDoc
Drag and drop is not implanted. But the the old mod crashes, when you drag (not drop) a file in the RichEdit.