Xforms 0.86, Irix 5.3:
I've been trying to get lines to be right alligned in a browser. These lines
are rather long so they are clipped.
The only result I have had so far is that only the last part of the lines is
visible. Xforms knows there is more text and gives me a horizontal scrollbar,
but I can only scroll to see more white space to the right instead of more text
to the left.
I've included a demo program.
Frank.
xxxxxxxxxxxxx
#include "forms.h"
typedef struct {
FL_FORM *demo;
void *vdata;
long ldata;
FL_OBJECT *Demo;
} FD_demo;
FD_demo *create_form_demo(void)
{
FL_OBJECT *obj;
FD_demo *fdui = (FD_demo *) fl_calloc(1, sizeof(*fdui));
fdui->demo = fl_bgn_form(FL_NO_BOX, 320, 250);
obj = fl_add_box(FL_UP_BOX,0,0,320,250,"");
fdui->Demo = obj = fl_add_browser(FL_NORMAL_BROWSER,20,20,270,210,"");
fl_end_form();
fdui->demo->fdui = fdui;
return fdui;
}
int main(int argc, char *argv[])
{
FD_demo *fd_demo;
fl_initialize(&argc, argv, 0, 0, 0);
fd_demo = create_form_demo();
/* fill-in form initialization code */
/* show the first form */
fl_show_form(fd_demo->demo,FL_PLACE_CENTER,FL_FULLBORDER,"demo");
fl_add_browser_line(fd_demo->Demo, "@r A very long line that is right \
alligned and that gets clipped off");
fl_do_forms();
return 0;
}
xxxxxxxxxxxxxxx
-- | Frank van Beek - NeoGeo Videographics | | Stratumsedijk 2a - 5611 ND Eindhoven | | The Netherlands - e-mail: frank@neogeo.nl | | voice: (+31) 40 2126588 - fax: (+31) 40 2125776 | _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/