Jump to content
IGNORED

still trying for a small box


newTIboyRob

Recommended Posts

Hi, I am still trying in a BASIC program to print both on screen and paper a small box commonly seen today:  ▢ 

I haven't had much luck with commands like HLIN, VLIN or HPLOT, so there's gotta be another way.  Any ideas?  There seems to be no CHR$ code or symbol for this kind of a character/small box on a 2c as far as I know.   

 

I am just trying to incorporate that type of box into a basic program, to make it print on paper appearing as a box as if to check something off, say a task to be done:

 

10 ? "  ▢  mow the lawn"

20 ? "  ▢  wash the deck"

 

How do I get that in the program so the printed output appears as:

 

▢  mow the lawn

▢  wash the deck

Link to comment
Share on other sites

Well, after some more thought, it was simpler than I thought. I came up with a pretty decent and close solution, in case anyone who viewed this thread could use it printed out:

 

] NOTRACE

 

5 HOME

10 S$="[]"

20 ?S$"  mow the lawn"

30 ?S$"  wash the deck"

 

PR#1

RUN

 

[]  mow the lawn

[]  wash the deck


(Note the space after the " and before the task)

Link to comment
Share on other sites

[_]   Wash the lawn

[_]   Mow the deck

 

Check buckets perhaps with brackets and underscore in the middle?

 

You could start shading in from the bottom and if you don't fully complete the task you can leave the bucket half full or half empty (your choice). :)

 

Link to comment
Share on other sites

First off, thank you all for the help and suggestions :).

 

So I fiddled around a little. 

 

Nick...your incorporation lines worked like a charm and sealed the deal. Exactly what I needed (I just wasn't sure where those lines were to be, but I did have that same incorporation idea, so I was close but no cigar.)   Also, good point about the FOR NEXT and READ DATA concepts. I dug up my Guide To Programming in Applesoft by Bruce Presley book and it's got some great stuff and programs in there for reference. Thank you!

 

Duhast... cool idea. I actually found a link to a program that prints out all the Mousetext characters on my 2c. I tried it, and it worked. There were some interesting looking characters printed out in 80 column mode, notably:  a white filled box, a white filled box with a check mark inside, a more wide but shaded in gray box, two parallel lines which resembled the top and bottom (but not sides!) of an 80 column size cursor box and the most interesting of all... what looked like a bubble shaped L or a piece of Lego, almost resembled a folder actually. It was kind of cool for some use if you enlarged it and played with it!

 

SIO2... super idea for the underscore between the brackets idea and calling the thing buckets. That never even occurred to me! Brilliant idea about partial shading of the bucket to signify status of completion of the task too!

 

So after trying everything, I printed out 3 ways:  [ ]  [  ]  and [_].  Call it personal preference, but I am going with the first closer set of brackets, as the middle looked like too much space inbetween on the printed page and the last of the three

looked like it was creating too wide of a box.

 

Thank you all though. Now I can go make the list. Actually performing the task and to completion?  Another story. Awesome nevertheless!

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...