bug in fl_set_menu_item_mode

Christian Klesper (geochris@zedat.fu-berlin.de)
Wed, 9 Apr 1997 14:34:31 +0200 (MES)

To subscribers of the xforms list from geochris@zedat.fu-berlin.de (Christian Klesper) :

Hi xforms-user,

I think I have detected a bug in xforms8.6
After I created a menu and set one specific item with
"FL_PUP_CHECK | FL_PUP_RADIO" the function
fl_get_menu(FL_OBJECT *obj) returns not the right item number !

Having a look to the menu item you can see that it is checked,
but it is not set ?!

Chris

=======================

fl_addto_menu(fd_MENUE1->VIEW6," Never | Always | Rotation");
for(k=1;k<=3;k++)
fl_set_menu_item_mode(fd_MENUE1->VIEW6, k, FL_PUP_RADIO);
fl_set_menu_item_mode(fd_MENUE1->VIEW6, 3, FL_PUP_CHECK | FL_PUP_RADIO);

cerr << fl_get_menu(fd_MENUE1->VIEW6) << endl; // this returns zero instead of 3

========================

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