Radio button trouble

Robert J. Nield (ceerjn@cee.hw.ac.uk)
Wed, 26 Feb 1997 11:00:53 +0000 (GMT)

To subscribers of the xforms list from "Robert J. Nield" <ceerjn@cee.hw.ac.uk> :

Hi,

I have been trying to create a simple pulldown menu, which contain a set
of four elements which I wish to have radio button behaviour.

I am having trouble getting the buttons to behave correctly. I am using
'%rg' which tells compiler that it is a radio button, but when I click on
any element the gray diamond to its left stays grey and not blue.

I have looked at the demos, but I have tried various lines out of that
with no luck. I have tried giving the elements identifiers via the '%x'
tag, but that still does not work. The general fucntionality of the
element works okay, because I have print statements in the callbacks, so
it is definitly being called right. I have run out of ideas, I would be
very grateful if anybody out there could set me right on this one.

**** code frag from xx_main.c - definition of proprerties ****

fl_set_menu(fd_sect2->encrypt_menu,"Methods %t|PGP%R1|DES%r1|IDEA%r1");

** end code frag **

**** code frag from xx.c - definition of menu ****

fdui->encrypt_menu = obj =
fl_add_menu(FL_PULLDOWN_MENU,700,30,140,40,"Encrypt");

fl_set_object_boxtype(obj,FL_UP_BOX);
fl_set_object_lsize(obj,FL_NORMAL_SIZE);
fl_set_object_callback(obj,encrypt_menu_cb,0);

** end code frag **

Any help greatly appreciated,

Thanks.

Rob.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Robert J.Nield ~
~ -------------- ~
~ Telephone / answer machine: +44(0)131 449-8323 ~
~ Home page at http://www.cee.hw.ac.uk/~ceerjn ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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