Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Word Wrap
#1
So I put together phase 1 of a WP project. It manipulates a single string and displays it to a resizable width screen. Normally, at this point, I start documenting the routines before moving to the next phase, but I thought I'd ask for a couple of folks to try it out and see anyone can break it, first. 

You can REM out the text phrase and run it. If you have anything on your clipboard it will display it, or you can just leave the existing text phrase in place and type to or over the existing text, just like any WP. The mouse is just for cursor positioning at this stage No highlighting, cut, copy, or paste, yet. Ctrl+ arrows right and left are included to skip from word to word. Enter for paragraph(s), home, end ctrl+home, ctrl+end, pgup, pgdn, etc., again, just like any existing WP. Oh, toggle the Insert key to overwrite / insert text.

https://qb64phoenix.com/forum/showthread.php?tid=4493

Thanks,

Pete
Reply
#2
First thing I did was increase the size of box by adding to right and bottom margin off the opposite ones.
I typed a question ended it with ? and then hit enter to start new paragraph. That's when all hell broke loose error line 61 then 63 when try to continue... back and forth for awhile and finally settled down to where expected at start of next line though a line in between might have been better. Trust me to break it quick! LOL
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#3
Thanks Mark! +2

Fixed and with 5 fewer lines because it was something I forgot to remove when I modified another part of the program to handle it.

Updated the code at the above url.

I also found more work is needed in Ctrl + Arrows Right and Left in regard to paragraphs. I'll be working on that fix later tonight. 

Pete
Reply
#4
Updated the project in the original post. Debugged a couple of other issues, but the biggie was a redo to the ctrl+arrow stuff. This is why I don't do a lot of commenting before I have a working routine. Of course, I'm getting older and it seems the challenge theses days is to see if I can remember how to explain what I coded from a week ago!

Joe... I mean Pete
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is 'option' treated like a reserved word in the IDE? Pete 2 558 04-11-2025, 10:03 PM
Last Post: Pete
  Why is 'base' treated like a reserved word in the IDE? Pete 4 789 04-11-2025, 09:49 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)