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.

The 20 Line Challenge / Working Notepad!

Author
Message
Whisper Wind
16
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 2nd Jan 2005 11:09 Edited at: 2nd Jan 2005 11:14
For DBPRO, have not tried with DBC!

A working enter key return and backspace are here, including being able to type over other text. You can move your 'cursor' to a different spot quickly by clicking the mouse there with a left click. To save the text, right click and enter a file name, must have .txt at the end of it. Keep in mind that saving will exit out and end your notepad session.

I definately could have squeezed this into less than 20 lines if I wanted, but dbpro is a little wobbly when it comes to certain commands like clr, and end, when they are squished together on a line with other commands. It didn't seem worth the trouble to go any further.

Can't wait to hear from you!!


[EDIT!!!!] *Sigh*, use the one in the codebox below, not the one in source. It has a minor change that makes it actually exit when you save, like it should. (otherwise the text goes away on your pad but the data isn't erased, making it unusable until a restart)

The Nerd
15
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 2nd Jan 2005 19:17
We need a save/load function
And instead of making it full screen then wy not make it windowed? It would look cooler.
But i like how you type the text in



The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Whisper Wind
16
Years of Service
User Offline
Joined: 5th Apr 2003
Location:
Posted: 3rd Jan 2005 00:48 Edited at: 3rd Jan 2005 07:21
Editted this a little bit, added a load function ontop of the existing save function. Neither saving nor loading exits you out now! You can access the load function via the control key. I have also set it to open in windows mode. Thanks for tryin it The Nerd!

[EDIT] That's why you can move the cursor with the mouse...

The Nerd
15
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 3rd Jan 2005 03:00 Edited at: 3rd Jan 2005 03:03
Hi.

i see that the load and save function work now.

but i have found a big bug.
When you load a saved file the "Cursor" start at the start of the text and when you hit spacebar to get the cursor out of the text the text is being deleted.

also another bug is that "j" looks like "i".


The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Mattman
16
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 3rd Jan 2005 11:52
Sweet, load/save worked great for me!

Hi
Freddy 007
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 3rd Jan 2005 20:56
Another bug:
when i hit backspace, it doesn´t delete anything, it´s like hitting the space key...
And it´s quite a bad font type. That´s a shame. work a little on it.


KLU 007

Spiderman, Spiderman
Does whatever a spider can!
Check out PanzerGames at http://www.freewebs.com/panzergames
Neofish
15
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 11th Jan 2005 06:11
Far too slow compared to notepad just to be evil here

Foxy
14
Years of Service
User Offline
Joined: 4th Jan 2005
Location: The Dale, South Australia
Posted: 11th Jan 2005 18:14
Quote: "Far too slow compared to notepad "


Try increasing the sync rate a bit.

Durdge39 - Leading the way into the fridge!!!

Login to post a reply

Server time is: 2019-11-17 10:03:13
Your offset time is: 2019-11-17 10:03:13