Home | Reviews | GUIpedia | Forum | Fun500


BrandonF57 Pre-Alpha in the works.
I needed something "fun" to do tonight, so I got out QB4.5 and worked on a basic text editor. I had been struggling with how to display wrapped words on the screen without wrapping the words in the output text file. Tonight I finally figured it out! All I have so far is an executable that reads a text document and displays it wrapped and then lets you add exclamation points wherever you click and then saves the output without the wrapping. My hope is that I'll continue to find time to make it into a complete GUI. This is the drawing that made it all click:
2013-03-0111:10 PM

atrocityRe: F57 Pre-Alpha in the works.
What'd you end up doing? Just keeping it in an array for each line and splitting as needed on render?
2013-03-0111:23 PM

BrandonRe: F57 Pre-Alpha in the works.
I figured that'd use too much ram (especially in really big files) so I use two temp files and then just copy the one to the other with the character added, it's not the fastest, but it works and should allow for any file size as well as a sort of "recovery" option.
2013-03-0212:15 AM

Blog


2021 Brandon Cornell