XForms: problem w/fl_set_input in v0.86

tom wible (tom@radar.fp.trw.com)
Thu, 29 May 1997 09:44:38 -0400

To subscribers of the xforms list from "tom wible" <tom@radar.fp.trw.com> :

i've got a real problem with an app that uses fl_set_input: 2 of the fields in
a form just don't show up, but all the rest are ok...and this problem just
cropped up when i rebuilt using v0.86:-(

here's the code from the dreate routine:

fdui->SendAddressInput = obj =
fl_add_input(FL_NORMAL_INPUT,280,150,100,20,"Send Address");
fl_set_object_color(obj,FL_WHITE,FL_WHITE);
fl_set_object_lsize(obj,FL_TINY_SIZE);
fl_set_object_callback(obj,SendAddressInputCb,1);
fdui->RecvAddressInput = obj =
fl_add_input(FL_NORMAL_INPUT,280,130,100,20,"Recv Address");
fl_set_object_color(obj,FL_WHITE,FL_WHITE);
fl_set_object_lsize(obj,FL_TINY_SIZE);
fl_set_object_callback(obj,RecvAddressInputCb,1);
...
fdui->SHMAddressInput = obj = fl_add_input(FL_NORMAL_INPUT,90,58,140,22,"SHM
Address");
fl_set_object_color(obj,FL_WHITE,FL_WHITE);
fl_set_object_callback(obj,SHMAddressCb,0);
fdui->SHMKeyInput = obj = fl_add_input(FL_NORMAL_INPUT,290,58,66,22,"SHM
Key");
fl_set_object_color(obj,FL_WHITE,FL_WHITE);
fl_set_object_callback(obj,SHMKeyCb,0);

and here's the code from the display routine:

fl_set_input(fd_NiuMainPage->RecvAddressInput,RECV_ADDRESS);
printf("RECV_ADDRESS '%s'\n",RECV_ADDRESS);
fl_set_input(fd_NiuMainPage->SendAddressInput,SEND_ADDRESS);
printf("SEND_ADDRESS '%s'\n",SEND_ADDRESS);
fl_set_input(fd_NiuMainPage->MulticastIFInput,IP_MULTICAST_INTERFACE);
...

sprintf(v_str,"%X",*SHM_ADDRESS);
printf("SHM_ADDRESS '%s'\n",v_str);
fl_set_input( fd_NiuMainPage->SHMAddressInput, v_str);
sprintf(v_str,"%X",SHARED_MEMORY_KEY);
printf("SHARED_MEMORY_KEY '%s'\n",v_str);
fl_set_input( fd_NiuMainPage->SHMKeyInput, v_str);

fl_show_form( fd_NiuMainPage->NiuMainPage, FL_PLACE_POSITION,
TRUE, "DIS Daemon Control");

and here's the output from the printfs:

RECV_ADDRESS '0.0.0.0'
SEND_ADDRESS '129.193.175.255'
SHM_ADDRESS '4000000'
SHARED_MEMORY_KEY '51'

but the SHM_ADDRESS & SHARED_MEMORY_KEY appear on the form as 7 & 3 blanks(or
non-printing chars)-: while RECV_ADDRESS & SEND_ADDRESS appear perfectly ok...

any help here would be most appreciated...
thanx
tom

-- 
======================================================
= tom wible				703-968-1724 =
= trw				tom@radar.fp.trw.com =
= 1 federal systems park drive			     =
= fp2/1255					     =
= fairfax, va 22033				     =
======================================================
_________________________________________________
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/