Page 2 of 2

Posted: Fri Mar 21, 2003 3:26 am
by BackupUser
Restored from previous forum. Originally posted by Eddy.

it's possible with Richedit 20A
That's the way to do it :

if dbl-click on richedit and keyword = "procedure"
if search_end_procedure

add after procedure name ";//START_FOLDING"
add after end_procedure name ";//END_FOLDING"
update_highlight()

endif
endif

In update_highlight() procedure

add "\v" before "start_folding" comment
add "\v0" after "end_folding" comment

The only problem is that the folded procedure must be uneditable.


:)BlitzBASIC - PureBASIC

Posted: Fri Mar 21, 2003 4:25 am
by BackupUser
Restored from previous forum. Originally posted by mindplay.

\v and \v0, yes, that's what I was thinking - shouldn't be that difficult really, no need to "double-buffer" the file or anything ... but making the procedure uneditable, that does raise a number of problems, which can only be solved with hard work - a lot of special conditions have to be taken into consideration, like what happens when a folded procedure is copied/pasted/deleted etc... probably folded procedure should be automatically unfolded if, for example, a copy/paste operation is performed - but strange things could still happen. I gave it a shot, but this is too complicated for me - good luck! :)

Posted: Fri Mar 21, 2003 10:15 am
by BackupUser
Restored from previous forum. Originally posted by shdancer.

Hello there.

I hade the same ideia and started to do some work but alone its not so easy as it seams, because the IDE is implemented in Richedit, and i dont know how that works.
I've started also a thread in "Feature Requests and Wishlists" but i've decided to join you guys if i may?

viewtopic.php?t=5492


Just made "cat /zImage > /dev/audio" and i think i've heard God.

Posted: Fri Mar 21, 2003 4:48 pm
by BackupUser
Restored from previous forum. Originally posted by GPI.

@Eddy
I see in the documentation of richedit, that it is possible to protect part of the text.

So it should work....



PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB

Posted: Fri Mar 21, 2003 6:53 pm
by BackupUser
Restored from previous forum. Originally posted by GPI.

Ok, i tested /v.
It works, BUT it will hide the lines complete (so the line-counter doesn't show the right line, because he forget to count the hidden lines.

So, no alternate...

btw: have somebody a list of the Richedit-Tags (like \v \v0) ?

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB

Posted: Sat Mar 22, 2003 10:43 pm
by BackupUser
Restored from previous forum. Originally posted by Eddy.

I've the list of tags
I'll give you when I can...OK

:)BlitzBASIC - PureBASIC

Posted: Sun Mar 23, 2003 4:09 am
by BackupUser
Restored from previous forum. Originally posted by mindplay.

Full RTF 1.5 specification is here:

http://www.biblioscape.com/rtf15_spec.htm

Posted: Sun Mar 23, 2003 5:10 am
by BackupUser
Restored from previous forum. Originally posted by El_Choni.

In http://www.wotsit.org you'll find rtf 1.7 specs too... But i would wait for RichEdit lib 2.0 if I were you :) Just kidding, I don't know when I'll be able to release it, but never before June, I'm afraid.

Good luck,

El_Choni

Posted: Sun Mar 30, 2003 7:56 am
by BackupUser
Restored from previous forum. Originally posted by theogott.

Can I fold now or not ?

I also think that the "Procedure Folding" would be a big advantage for PureBasic !



*************************
The best time to do things is now !

Posted: Sun Mar 30, 2003 8:27 am
by BackupUser
Restored from previous forum. Originally posted by Rings.

be aware Theo, RTF is a deep hole :)
existing Editor uses only 10% or 30% of that what the Richedit-features can be.
As i read the RTF-Docu i see room for more improvement.
Automatic-Line-numbering for example.
Do you believe For example RichText (from WindowsXP beginning) can rotate the Text easily ? .......

Its a long way to the top if you wanna .....CodeGuru

Posted: Sun Mar 30, 2003 5:19 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.

This vb code folds a code similar than VB.NET IDE
There is a screenshot

http://www.planetsourcecode.com/vb/scri ... 1&lngWId=1

Best Regards

Ricardo

Dont cry for me Argentina...