Re: Text wrapping code?

Eric_Kischell@IUS5.IUS.CS.CMU.EDU
Tue, 03 Dec 96 15:13:01 EST

To subscribers of the xforms list from Eric_Kischell@IUS5.IUS.CS.CMU.EDU :

Has anyone got the text-wrapping feature of
of the XFWP free widget replacement XForms Library to work?

Any experiences would be appreciated.

Here are the calls that I use:

//////////////////////////////////////////////
// create_form_XFWPForm()
...
fdui->XFWPText = obj = fl_add_transtext( FL_NORMAL_TEXT, 190, 10, 80, 40, "");
// other form stuff
// end form def

int main(int argc, char *argv[])
{
char message[256];
int screenlines;
float xx, yy, ww, hh;

fl_initialize(&argc, argv, "XFWP", 0, 0);
form = create_form_XFWPForm();

fl_show_form(form->XFWPForm, FL_PLACE_FREE, FL_FULLBORDER, "XFWP Test");

sprintf( message, "Test wrap feature here here here." );
calc_textarea(form->XFWPText, &xx, &yy, &ww, &hh, &screenlines);
draw_text(form->XFWPText, message, xx, yy, ww);

while(fl_do_forms());

return 0;
}
//////////////////////////////////////////////

thx
e.-

> From: Ken Hollis <khollis@northwest.com>
> >See /cgi-bin/exit-to?http://www.bitgate.com/xfwp/ :) (I've already got a working browser
> done.)
> I tried to take a look at your page, but wasn't succesful. Both
> mosaic and netscape had some activities downloading data, but returned
> empty page.
Try ftp ftp.bitgate.com, it works.

Cheers,
Henrik

To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html