XForms: menu initialisatiuon in xforms

Steve Lamont (spl@pitstop.ucsd.edu)
Fri, 12 Jun 98 06:31:33 PDT

# To subscribers of the xforms list from spl@pitstop.ucsd.edu (Steve Lamont) :

[forwarded for Ivan Powis -- who can't seem to post to the list -- Bob, you
want to set him up an alias when you get the chance?]

- - - forwarded message - - -
From: Ivan Powis <Ivan.Powis@nottingham.ac.uk>
Subject: menu initialisatiuon in xforms
To: xforms@bob.usuf2.usuhs.mil
Date: Thu, 11 Jun 1998 14:56:15 BST

> Can you post a *minimal* but complete example the exhibits the
> problem?
>
> spl

[... personal comments to spl elided ...]

I believe I've seen this problem too. It relates to the use of structs
to initialise menus using fl_set_menu_entries(). It appears that no
attributes can be programmatically set when the menu is initialised
this way. This does not apply when the menu is initialised with
fl_addto_menu(). I noticed similar problems with earlier versions
which I posted to this list at the time, but it still seems to be with
us in .88.1

This problem is made worse for users of fdesign, which currently
forgets the status of the "use structs" toggle on the menus Spec
form. Consequently even if one checks structs off, on editing the form
with fdesign the 'use structs' defaults to on and so the new code will
use structure initialisation. So my solution till TC fixes this is to
not use fdesign to set menu items, but to do it all in my own code.

/*if this fails again maybe you could post it on my behalf*/

Ivan

--
-------------------------------------------------------------------------+
    ___  ___/   _  __ /  Ivan Powis                TEL: +44-115-951-3467 |
        /         /   /  Department of Chemistry   FAX: +44-115-951-3562 |
       /         /  _/   University of Nottingham                        |
      /         ___/     Nottingham NG7 2RD                              |
     /         /         UK                                              |
    /         /                      pczip@chem.nott.ac.uk               | 
_______/  ____/                      http://www.chem.nott.ac.uk/IP.html  |
-------------------------------------------------------------------------+
		 - - - end of forwarded message - - -

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