Re: XForms: bug in fl_set_menu_item_mode

T.C. Zhao (tc_zhao@yahoo.com)
Sat, 19 Sep 1998 23:44:03 -0700 (PDT)

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

Thanks for the report. Reproduced and fixed. The fix
will be in the next release.

---Manolo Gouy <mgouy@biomserv.univ-lyon1.fr> wrote:
>
> # To subscribers of the xforms list from Manolo Gouy
<mgouy@biomserv.univ-lyon1.fr> :
>
> A problem with fl_set_menu_item_mode:
>
> I have a menu with the following items:
> Create item
> Delete item
> item 1
> item 2
> item 3
> etc...
>
> Items 1,2,... can be displayed either in modes FL_PUP_NONE or
FL_PUP_CHECK
> "Create item" adds an item at the current end of the menu using
fl_addto_menu
> "Delete item" deletes from the menu the single item displayed with
FL_PUP_CHECK
> using fl_delete_menu_item
>
> Selecting any item 1,2,... sets it to the FL_PUP_CHECK mode and sets
> other items, if any, to the FL_PUP_NONE mode. Function
fl_set_menu_item_mode
> is used for these operations.
>
> The menu itself is initially created with
> menu = fl_add_menu(FL_PULLDOWN_MENU, 5, 5, menu_width, 25, "Title");
> fl_set_menu(menu, "Create item|Delete item%l");
>
> The problem is that once the delete function is used, further items
added
> to the menu never get displayed with the FL_PUP_CHECK mode: the
check box does
> not appear. If the delete function is never called, switching between
> FL_PUP_NONE and FL_PUP_CHECK modes occurs correctly.
>
> Trying to switch between FL_PUP_CHECK and FL_PUP_BOX instead does
not change
> the bug: the delete function makes the FL_PUP_CHECK mode disappear.
>
> Another problem is that function fl_get_menu_maxitems always returns
0,
> whatever the state of the menu!
>
> I'm on a sun with Solaris 2.5 and use xforms v 0.88
>
>
__________________________________________________________________________
> | Manolo Gouy
|
> | Laboratoire de biometrie, genetique et biologie des populations
|
> | UMR CNRS 5558 | E-MAIL :
mgouy@biomserv.univ-lyon1.fr |
> | Universite C. Bernard - Lyon 1 | Tel : +33 4-72-43-12-87
|
> | 69622 Villeurbanne, France | Fax : +33 4-78-89-27-19
|
>
|_________________________________|________________________________________|
>
>
> _________________________________________________
> 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/