Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Text Editor in DarkBASIC

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 11th Mar 2004 14:56
has anyone ever made a texteditor in darkbasic?

I think I know how to do it, I THINK so don't think(he he) I am saying that I KNOW!

I'll post back later when I have figured out a way to explain or found a code that I can show you guys...

Thief 3 : Deadly Shadows, The BEST game in the WORLD!
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 11th Mar 2004 16:45
very possible... but my question for you is why re-invent the wheel (notepad) when you can fly (ms word)? is it the thrill of the challenge?

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 12th Mar 2004 10:08
I don't know..
It's just fun re-inventing stuff!
especially when you make them by yourself!

Thief 3 : Deadly Shadows, The BEST game in the WORLD!
ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 12th Mar 2004 14:44
if you manage to get it to work then tell me as i could use that.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Mar 2004 15:02
It's quite easy to get a little input box thing working, but I imagine writing a word processor or something would be a pain.

I'm gonna be writing an IDE for a script system in DBPro, thinking about multiple windows etc, should be a challenge.


Van-B


The nature of Monkey was irrepressible!.
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Mar 2004 17:00
very basic one in the source
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Mar 2004 17:46
a better version, supports backspace and returnkey(only two lines though, can anyone fix that?)
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 12th Mar 2004 22:05
I made a simple one-line editor for my in-game console... i guess if you needed multiple lines you'd make a string array. you start at index 0 and when you exceed then line limit of press return you jump to index 1 etc.

we were asked to learn modula-2 in uni for some labs, as practise i wrote a simple 3 line editor, but unlike dark basic i had to use a char array rather than a string array (no primary string data type in modula-2) and to me, it was kinda easier.

ico2
21
Years of Service
User Offline
Joined: 3rd Jan 2004
Location:
Posted: 15th Mar 2004 15:13
here's one.
it should work but there might be bugs as i don't have access to a compiler at the moment.
i will put more tonight that will convert it to a text doc and save it.

Login to post a reply

Server time is: 2025-05-22 22:09:01
Your offset time is: 2025-05-22 22:09:01