This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jasperdekiller's profile picture

Question about textboxes.

Started by jasperdekiller, 05 February 2015 - 12:36 PM
jasperdekiller #1
Posted 05 February 2015 - 01:36 PM
Hello,

I always wanted to make my own textbox. Like re-editing and just cool stuff like in OneOS or another OS where they got their own textboxes. I dont want to make it that hard and I know textboxes are not simple at all.. So I was just wondering if someone could tell me a good way to start/learn it. I really dont know how to start with it.

Thankyou,
Jasper
KingofGamesYami #2
Posted 05 February 2015 - 02:50 PM
First, I'd get an understanding of the term api. That is relatively simple. Next, I'd learn parts of the string library, notably string.sub. After learning both of these, learn about key and char events. Finally, read the source code of the "read()" function. Re-write it. If you want to create a multiline text box, you may want to look at the "edit" program's source code.
Bomb Bloke #3
Posted 05 February 2015 - 02:59 PM
http://www.computercraft.info/forums2/index.php?/topic/21863-add-testcom-to-end-of-input/page__view__findpost__p__204987