Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ryan Timothy B on Fri 15/01/2010 16:03:14

Title: (Solved, using label) Changing the input location underscore in a GUI Text Box?
Post by: Ryan Timothy B on Fri 15/01/2010 16:03:14
This is definitely a beginners question, but I don't believe there is an answer to it.

Can you change the underscore that AGS places for where the input area is on a Text box?  I haven't seen it under TextBox in the manual, so I imagine it's not possible.

Here's an image example:
(http://www.bryvis.com/entertainment/other/agsf/textbox_underscore.png)

It's a mock up GUI to look like a Windows window and that massive underscore near the end is what AGS places in there.  It totally doesn't fit the text style. :P  Windows does the vertical line, which I'd prefer to have, but even an underscore to match this custom made small text would be acceptable.

If not... oh well, I'll survive..  :-\
Title: Re: Changing the input location underscore in a GUI Text Box?
Post by: Crimson Wizard on Fri 15/01/2010 18:48:15
I think it is possible to simulate input box with a Label, where you can put | in the end of text.

Just a quick thought, maybe there are other solutions.
Title: Re: Changing the input location underscore in a GUI Text Box?
Post by: Ryan Timothy B on Fri 15/01/2010 19:12:21
Hmm, that's not a bad idea, I could always use a label.

I like every little detail to look authentic that I'm actually willing to give it a try! :P

Edit: The label works like a charm.  I'll be appending the '|' indicator and remove it every few game loops just to add to the authenticity, just so it has that Windows blinking indicator look. :P

Thanks for the suggestion Crimson.
Title: Re: (Solved, using label) Changing the input location underscore in a GUI Text Box?
Post by: Knox on Thu 28/04/2011 17:56:55
Sorry to dig up an old thread but I was trying to display a '|' sign like Ryan, and Im not sure how he did it... I checked out Tidbits and Snippets: http://americangirlscouts.org/agswiki/AGS_tidbits_&_snippets  (http://americangirlscouts.org/agswiki/AGS_tidbits_&_snippets) but can't seem to find how to display/append the '|' character.

...this is what I tried (basically any combination I semi-know about):

(blah blah).Append("\"|\"");
(blah blah).Append("\|");
(blah blah).Append("%|");
(blah blah).Append(%s, "|");

grrr!
Title: Re: (Solved, using label) Changing the input location underscore in a GUI Text B
Post by: monkey0506 on Thu 28/04/2011 18:31:38
Is the character displayable in the font you're using?
Title: Re: (Solved, using label) Changing the input location underscore in a GUI Text Box?
Post by: Knox on Thu 28/04/2011 20:13:22
ah crap, no it doesnt...crap crap crap!

Didnt think of that :P

Ok well Ill see if I will change to a font that does, or just use an underscore.

Thnx Monkey