(Solved, using label) Changing the input location underscore in a GUI Text Box?

Started by Ryan Timothy B, Fri 15/01/2010 16:03:14

Previous topic - Next topic

Ryan Timothy B

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:


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..  :-\

Crimson Wizard

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.

Ryan Timothy B

#2
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.

Knox

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 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!
--All that is necessary for evil to triumph is for good men to do nothing.

monkey0506


Knox

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
--All that is necessary for evil to triumph is for good men to do nothing.

SMF spam blocked by CleanTalk