Text editor example
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Youre welcome, Amundo. @rsts, it seems to read in the text in blocks, and then overwrite the last one or two
characters in the previous block with the first character in the next block. Something like that.
It could also be that it adds a character or two with each block. Anyways, I started to notice misplaced
characters with regular intervals after loading some larger textfiles, so I replaced them with 'regular' code
instead.
Since you've noticed differences I'm starting to think I did something wrong when translating these particular
procedures from PB 3.94 to 4.00.
characters in the previous block with the first character in the next block. Something like that.
It could also be that it adds a character or two with each block. Anyways, I started to notice misplaced
characters with regular intervals after loading some larger textfiles, so I replaced them with 'regular' code
instead.
Since you've noticed differences I'm starting to think I did something wrong when translating these particular
procedures from PB 3.94 to 4.00.
The code I'm using was PB 4 ready and was based on freaks work.
It's the updates by srod and Joakim near the end of this post
http://www.purebasic.fr/english/viewtop ... 6&start=15
I haven't noticed any dropped characters, but I've not tested it extensively. I'll do some more testing today.
cheers
It's the updates by srod and Joakim near the end of this post
http://www.purebasic.fr/english/viewtop ... 6&start=15
I haven't noticed any dropped characters, but I've not tested it extensively. I'll do some more testing today.
cheers
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
I was working on a project, and you guys helped me without kowing it....
First, was my "self-learning project" which was a text editor like yours...
http://archonrpg.com/zips/textpad.zip
the only important dif is the use of colored text .....
Also, I replaced some of my code with yours when yours was better.
Your find/replace code was awsome. And your about box was better
than my messagerequester .....
Then, I applied what I learned to ....
http://archonrpg.com/zips/mypad.zip
which is a simple HTML editor (MDI app)
with included browser and customizable HTML tags ......
source is included with both zips .....
I was going to do a sep post for this, but 1 post about a text editor is enough. I just love PB because of all the help here.
And wanted to say thank you for the code.
First, was my "self-learning project" which was a text editor like yours...
http://archonrpg.com/zips/textpad.zip
the only important dif is the use of colored text .....
Also, I replaced some of my code with yours when yours was better.
Your find/replace code was awsome. And your about box was better
than my messagerequester .....
Then, I applied what I learned to ....
http://archonrpg.com/zips/mypad.zip
which is a simple HTML editor (MDI app)
with included browser and customizable HTML tags ......
source is included with both zips .....
I was going to do a sep post for this, but 1 post about a text editor is enough. I just love PB because of all the help here.
And wanted to say thank you for the code.
Code is good... Its an international language.
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway