Textbox control

0 favourites
  • 2 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • So my goal is to clear what is written in the textbox after the enter key is pressed. The only option I see is to set the text to something. I don't want to use "" because that is then used to populate a listbox and a whole bunch of clickable nothing's are shown.

    Anyone know the trick to getting this to work? I was hoping for a textbox.clear action but alas there is none.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • curteck you can get the value from textbox and AFTER you set the text to "". that way you don't have empty items on listbox.

    List box items are separate text element that are accessed using an index. So setting a "" text to a listbox, it clears only the item (or row) at a specific index. In my example it just adds one more item at the end or replace the selected item value.

    So to answer your question: Is no trick, just think that the order of your code makes the difference.(copy value then clear ... instead of clear than copy)

    capx

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)