Your own textbox

6
  • 20 favourites

Index

Attached Files

The following files have been attached to this tutorial:

.capx

tutorial-ext.capx

Download now 176.52 KB
.capx
.png
.png

unselected.png

Download now 250 B

Stats

5,743 visits, 14,633 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Making "Backspace"

First thing which probably will come into your head is: "How do I delete characters?"

Here we need to apply a little trick :)

For example, we have source text = "Hello world".

Its length is = 11.

To determine the length of text, use len(text)

Essence of our trick: we will take all len(text)-1 symbols in text. So it will take original text, but without last symbol.

left(source.text,text.length) will help us.

For more details see here:

https://www.scirra.com/manual/78/expressions

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!
    • [-] [+]
    • 1
    • Fib's avatar
    • Fib
    • 1 points
    • (0 children)

    Thanks for the basics. A few huge things to add on to this that most text editors have is cut/copy/paste, cursor navigation, and text highlighting.