Homebew TextBox

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Homebew TextBox

Post 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
Last edited by tappatekie on Fri Mar 23, 2012 7:40 am, edited 4 times in total.
User avatar
JarrodParkes
ES Beta Backer
ES Beta Backer
Posts: 325
Joined: Thu Feb 25, 2010 2:39 pm
Current Project: Yes, iPhone Application(s)
Favorite Gaming Platforms: N64, PC
Programming Language of Choice: C++
Location: Mountain View, CA
Contact:

Re: Homebew TextBox

Post 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-)
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Homebew TextBox

Post by tappatekie »

Thanks :P
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Homebew TextBox

Post 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.
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Homebew TextBox

Post 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
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Homebew TextBox

Post by MadPumpkin »

Looks great, keep it up man.
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
Post Reply