Monday, October 20, 2008

CUA Widgets in C#

Good ol style widgets C# implementation using the standard Console class.
I hope this will work on Mono as well.
May not be found anywhere yet, posting as a reminder in case I forget to complete it.

Update:
I hate default geoIP locale of blogger. WTF dudes!!! Just leave the default in EN and let the tards that can't read it change the language (use iconic flags or something for chrissake!)

Back to business:
Pre alpha version of the console widgets has been built.
Since I am naturally lazy, I wrote a factory class to instantiate the page using the layout of a regular Form class (pretty standard, really).
Some screenshots following:

Rendered:

Editing a TextBox witget:

Pressing a button: (uses Thread.Timer for release - do anyone has a better idea?)

Note to self:
implement scrollbar for Panel
implement multiline TextBox


Reference:

http://www.petesqbsite.com/sections/express/issue21/index.html




Update:
Ported everything in Mono 2.0. Works just fine except for a little threading issue (too fast on Mono I guess). Tested on Windows and Linux with satisfactory results.

No comments: