Re: XForms: drawing on my canvas with the mouse

AMIT BHATNAGAR (amit@cs.dal.ca)
Thu, 19 Feb 1998 13:17:54 -0400 (AST)

# To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :

On Thu, 19 Feb 1998, Steve Lamont wrote:

> # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
>
> > > > No matter what type of label assignment I choose in formdesigner, I get a
> > > > Xforms ERROR: Bad Allignment Request...
> > >
> > > Does this error occur at run time or when you're running `fdesign'?
> >
> > at run time.
>
> Is this the *exact* error message? It doesn't appear to be. Can you
> provide the *exact* text of the message, please?

When I run, I get a choice requester immediately after my form has been
display. It says "XForms Error: bad allignment request" and I have the
option to click on Continue, Exit, or Hide errors.

> Is there anything special about this label or object? What kind of
> object is it?

This is simply a text objext (as I am trying to reproduce you're readout
function). The name of the object is called out. The lable allignment is
left inside (as it defaults to).

> Does this happen on all alignment requests or just a particular one?

It only 'crashes' when I have a text object.. no matter where on my form I
place it.. no other object with a lable creates this error.

> Are you doing anything special when this happens? If you stop doing it,
> does the problem go away?

I am not doing anything special because I can't even get into the form
before I get the error message.

> Can you set a debugger breakpoint before the function call and see if
> there's anything strange going on?

Unfortunally the only debugger I have is dbx (pre gdb) and she returns a
sucesfull exit when I click on exit. I can't put a breakpoint in at the
moment..

>Can you reproduce the problem in asmall example?

my friend is doing a similar project as I and he has the same problems
when he has any text object.

My system is a Sun Ultra30 running Solaris

my gfx.c file produced by formdesigner.
...
...
...

fdui->out = obj = fl_add_text(FL_NORMAL_TEXT,50,470,80,40,"Text");
fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
fl_end_form();

(out is the name I specified for this text object in form designer.)

_________________________________________________
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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/