Page 1 of 1

Homebew TextBox

Posted: Mon Feb 20, 2012 6:37 pm
by tappatekie
Hi guys, I haven't posted anything in a while but would like to let you know what I am currently working on.

Currently, I am making a user interface for a social application (can't go into detail because of secrecy...) and all of its components to be written completely from scratch.

My textbox currently looks like this
Image

It is written in C# and if you have any questions or comments, then please reply :P

And in case your wondering, the tappatekie bit was put in their after printscreen which is why it looks a bit odd, the red control in the background with a button child control was just a test of a slider system which is finished.

The text box still has alot of features yet to be implemented but the basics are in. Here is a list of feature that are in the text box and are to be :P

Features currently:
Text scroll (auto)
Dynamic emoticon image fetching (from a spritesheet+registry)
Cursor
Copy, Paste and Cut
Select All
(Hidden Feature, but it's about selection)
CPU Usage at 0% :P
Undo and Redo

Features to implement:
Mouse gestures (drag mouse to the right/left when selecting text and it'l autoscroll)
Hyperlink support
More polygon exposure (bounds of every character it renders)
Cursor fade in and out instead of just blinking

Re: Homebew TextBox

Posted: Tue Feb 21, 2012 8:05 am
by JarrodParkes
Sounds like a heck of a project. Compliments for doing things from scratch, those are the best kinds of learning experiences. I haven't seen or commented on many projects like this, but it is intriguing! Keep up the good work 8-)

Re: Homebew TextBox

Posted: Tue Feb 21, 2012 2:23 pm
by tappatekie
Thanks :P

Re: Homebew TextBox

Posted: Tue Feb 28, 2012 1:04 am
by MadPumpkin
Hey this is looking sick man, I'm actually working on the same thing right now! I love it, I'd love to see your implementation code just to see how differently some people do it. The: AddComponent(Button, "something"); etc. code that is :P. Obviously not asking you to disclose your project code.

Re: Homebew TextBox

Posted: Sat Mar 03, 2012 7:09 pm
by tappatekie
Hi MadPumpkin, thanks for showing your interest in my project and yes I can tell you about the implementation code.
Basically, the textbox is a .Net control component but that class handles pretty much every thing. It is implimented into a custom form with just

Code: Select all

Components.Add(new InputBox { Text = "Hey Elysian Shadows (Y)" }); 
InputBox is the class for TextBox since there is already a class in .Net called TextBox.
When Text property is set, the code takes it from their and strips out emoticons, deturmining where those emoticon images should go according the adjacent character polygons

Re: Homebew TextBox

Posted: Sat Mar 03, 2012 11:46 pm
by MadPumpkin
Looks great, keep it up man.