Sign in to follow this  
phb5000

TextBox Control

Recommended Posts

Does anyone have any ideas or suggestions on how to make a custom GUI TextBox control. Should I use a RichTextBox in the code to handle Point to CharIndex conversions, and then render using the Font and Sprite classes? Please help :)

Share this post


Link to post
Share on other sites
Sprites? What exactly are you trying to achieve?

Text boxes are specialized into editing text. As such they already provide the point to index handling, font display and similar related functions.

Share this post


Link to post
Share on other sites
I'm making a textbox component for my gui system. Im not using an existing component...

1) Im using sprites to actually draw my control...
2) I'll need the Font object to actually render my text

I dont really understand what you are trying to say, I'm Making my TextBox control...

I just need some ideas on how to implement for example scrolling, carrets, selection, etc...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this