Author Topic: [SUGGESTION] Improving TextBoxes  (Read 439 times)  Share 

subspark

  • Some things, you just can't unsee.
    • I can help with animation
    •  
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
[SUGGESTION] Improving TextBoxes
« on: 14 Feb 2010, 01:14 »
I think we should have the ability to change the way text boxes appear.
For one, theres an automatic limit on the length of the textbox depending on the width of the item.

Something like
[code]int TextBox.MaxChar[/code]
would make it easier to build more sophisticated save/load screens for example.

Another thing that bothers the hell outta me is the old DOS style underscore that leads the input.
If this could be toggled off, we could write out own system like a blinking vertical line or something.

Anyway, just a few ideas.

Cheers,
Sparky.
     
Adlanto - A bold step into a valley of forgotten worlds - Coming Soon to Steam in August 2015!       Indiana Jones and the Fountain of Youth - Indy is back!

Re: [SUGGESTION] Improving TextBoxes
« Reply #1 on: 14 Feb 2010, 01:59 »
Quote
Another thing that bothers the hell outta me is the old DOS style underscore that leads the input.
Yeah, I had an issue with this as well, but Crimson gave me the idea to use a label to show the text in the textbox instead.  Pain in the arse, but it did work (haven't fully tested it though cause I've been sorta busy).

Dualnames

  • AGS Baker
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: [SUGGESTION] Improving TextBoxes
« Reply #2 on: 14 Feb 2010, 02:57 »
From the first time I've noticed System.CapsLock;, I've had the idea Chris Jones was teasing us with the idea of replicating a textbox via a label, as a workaround with all those cases. I've started working on something once, but I got bored, and thought no one would actually find it useful..

Re: [SUGGESTION] Improving TextBoxes
« Reply #3 on: 14 Feb 2010, 03:25 »
Maybe the simplest and most efficient way to solve the cursor problems with AGS TextBoxes would be to simply add a "DrawCursor" boolean to them (just like the "DrawBorder"). Users looking to override the way this cursor looks can then simply retrieve whatever is in the box at any time, get the width of that input via GetTextWidth ( ) and then draw their own cursor to the interface.

Lt. Smash

  • He beats everyone!
Re: [SUGGESTION] Improving TextBoxes
« Reply #4 on: 14 Feb 2010, 14:07 »
Or a Cursor string value, in which you specify a string that should be appended to the end of TextBox.Text. By default "_" but can also be "-", "|-|" or "".

Re: [SUGGESTION] Improving TextBoxes
« Reply #5 on: 14 Feb 2010, 15:46 »
A TextBox.CursorBlinkSpeed (or whatever to call it) property would also be nice - as it is now I'm faking a lot of my text boxes with DynamicSprites to get a flashing text cursor.
« Last Edit: 14 Feb 2010, 16:19 by GarageGothic »

subspark

  • Some things, you just can't unsee.
    • I can help with animation
    •  
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: [SUGGESTION] Improving TextBoxes
« Reply #6 on: 17 Feb 2010, 08:30 »
Totally agree with you guys. Some great suggestions there. ;)

Sparky.
     
Adlanto - A bold step into a valley of forgotten worlds - Coming Soon to Steam in August 2015!       Indiana Jones and the Fountain of Youth - Indy is back!