Putting edit box below an cursor object

For questions about using Classic.

Post » Wed Dec 16, 2009 6:59 am

I have an edit box see, and I can't get it to be below an object that I made as a cursor in my game. I tried putting it to the lowest layer and poof, nothing happens. HEYYLLPPA!
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Wed Dec 16, 2009 7:02 am

The Windows edit box? Well, things like that tend to stay on top of everything drawn in DX9. It is lame, I know :(
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Dec 16, 2009 7:16 am

Crazy thought:

Would it be possible to make a fake edit box, which isn't actually an edit box. By that I mean have the real edit box but hidden somewhere, then once you give focus to the fake edit box, it's actually giving focus to the real and hidden edit box. Then have the fake one output whatever is written in the real edit box. That way the fake one would sit nicely under your custom cursor while the offending real one will be hidden and not getting in the way, but you'll still be basically using it, which if anything else in your game NEEDS the real thing available to work correctly, will continue to work correctly.

There's probably a far easier way of solving it than that, but I haven't had my morning coffee yet :)
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Wed Dec 23, 2009 1:58 am

Could someone teach me how to make a fake editbox? And another thing, is there another way of inputting text besides the editbox?
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Wed Dec 23, 2009 3:02 am

Here's an example(made in 99.7. I'll remake it in an older version if you need that):

Custom Edit Box Example

It just uses an offscreen edit box, a text box to display the contents of said box, and a box to show the border. Click the box to set the focus on the edit box and click off it to set the focus off.

I hope this helps. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Dec 23, 2009 3:20 am

there's also the spritefont plugin
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests