Edit Box invisible problem

For questions about using Classic.

Post » Sat Oct 09, 2010 2:38 pm

I want an edit box to be not enabled and invisible until I wish to reveal it

http://www.box.net/shared/gazjboyvhv
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sat Oct 09, 2010 3:41 pm

Hi. I've run across several actions that don't work with the Windows API objects such as the editbox as well. This seems to be one of them.

I'd suggest one of two options that I can think of:

- use a variable of some sort to keep a copy of the text in the editbox when it's not needed (if you need the contents to be persistent,) and destroy it when it's not needed. You can create a new one and copy the variable into it when it's needed. You can also use variables to save the EditBox.SelectionStart and EditBox.SelectionEnd properties, and use EditBox.SetSelection() after creation to reset the cursor position to what it was.

- set it's position out of the visible layout area and disable it and/or turn the focus off of it when not needed. You can then move it back, enable it and/or turn the focus back on when needed.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests