Silly Widget
This is part of a side project that was D.O.A. It is a silly xml-based rendering engine that does not know how to readjust the line height of a document when the font height changes and does not know how to scroll. The link event does not change the color of the visited links.
Since the document is parsed when the Markup property changes, the double buffering is known before hand, and perfomed during the initial drawing. It is a little bit expensive (a constant extra bitmap ) but saves time and complexity (specially when there are several areas of the document that need repaint).
If somebody wants to run with it, it is @ http://efekctive.com/blogging/src/SillyWidget.tar.gz. It is a MonoDevelop project.
Expand, load, and run inside MD. The lower textbox on Form1 helps to fire the rendering.
It performs the following: bolding, italicizing, highlighting, underlining, and blinking, striking through of text. There are tags to change the font type and size, fore and back colors. The file called "test.xml" uses most of the logic available.
Labels: .Net desktop, open source



0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home