Re: XForms: Nothing Happens

T.C. Zhao (tc_zhao@yahoo.com)
Wed, 16 Dec 1998 20:23:17 +0000 (GMT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

Please, please read a couple of demos that came with xforms
or read the examples on the xforms home page or read a few
pages of document, or if all of the above is not acceptable
or possible for some reason, please try to give as much as
information as possible right from the start, rather than
one drop at a time.

The answer to your question why nothing happens is that
you need to create a form and show it:

main(int argc, char **argv)
{
FD_MARFORM1 *tmp;

fl_initialize(&argc, argv,"testforms",0,0);
tmp = create_form_MARFORM1();
fl_show_form(tmp->MARFORM1, 0, 0, "test");
fl_do_forms();
}

---Marcelo Guerreiro da Silva <mgs@caa.uff.br> wrote:
>
> # To subscribers of the xforms list from mgs@caa.uff.br (Marcelo
Guerreiro da Silva) :
>
> Dear Steve,
>
> I'm not sure if I'm doing the right thing. When I run that, nothing
happens. So, look my very simple example. The archive " teste.c ":
> ------------------------------------------------------------
> /* Form definition file generated with fdesign. */
>
> #include "forms.h"
> #include <stdlib.h>
> #include "teste.h"
>
> FD_MARFORM1 *create_form_MARFORM1(void)
> {
> FL_OBJECT *obj;
> FD_MARFORM1 *fdui = (FD_MARFORM1 *) fl_calloc(1, sizeof(*fdui));
>
> fdui->MARFORM1 = fl_bgn_form(FL_NO_BOX, 320, 250);
> obj = fl_add_box(FL_UP_BOX,0,0,320,250,"");
> obj = fl_add_button(FL_NORMAL_BUTTON,130,180,60,30,"Button");
> obj = fl_add_box(FL_UP_BOX,100,90,120,70,"");
> fl_end_form();
>
> fdui->MARFORM1->fdui = fdui;
>
> return fdui;
> }
>
> main()
> {
> FD_MARFORM1 *create_form_MARFORM1(void);
> }
>
> /*---------------------------------------*/
>
> _________________________________________________
> 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/
>
>

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at /cgi-bin/exit-to?http://mail.yahoo.com

_________________________________________________
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/