Hi everybody.
It's still in its infancy, but I finally decided on a client-side interface to the 
textbox 
widget. Simple, yet powerful. For example:

  wText = pgNewWidget(PG_WIDGET_TEXTBOX,0,0);
  pgSetWidget(PGDEFAULT,
              PG_WP_TEXTFORMAT,pgNewString("HTML"),
              PG_WP_TEXT,pgNewString("Hello, <b>World</b>!"),
              0);

Right now the only implemented format is HTML, and that's only if you compile it in. 
It 
will default to the "TEXT" format for plaintext, but this isn't written yet. (will be 
soon) I 
also plan on having a low-level format that could be used for space-saving rich text, 
or for a word processor to send formatting commands to the textbox widget. The 
textbox already supports word wrapping, and it has some preliminary text editing 
support. (currently commented out because it crashes)

This is just a taste of what is to come :)

--
Only you can prevent creeping featurism!

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

Reply via email to