Over the weekend I started work on text layout capabilities for PicoGUI. This
involves adding extra features to PicoGUI's existing layout engine so it can
accomodate text, and writing a widget ('textbox') to manage event handling and
text import/export.

I have just finished the most important piece of this, support for word wrapping
in PicoGUI's layout engine. This is accomplished by creating a divnode for each
line, and a divnode for each word. The layout engine will automatically wrap
words between lines, and manage creating and deleting lines when necessary. This
functionality is not accessable from the client side yet (that's what the
textbox widget is for) but I have a bit of debug code in the textbox widget that
demonstrates this. I posted a screenshot on picogui.org.

The nifty thing about this is that these 'words' can be anything that can be
represented by a divnode. They could be widgets, or entire paragraphs. PicoGUI's
layout engine already has the features to handle tables and various text
alignments. The existing bitmap widget and button widget can be used to handle
pictures and links on web pages. The textbox widget could get very exciting :)

--
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to