kok@cs.vu.nl ("Andre J. Kok") (11/13/87)
L.S., Xerox1186/LYRIC/FREEMENU There seems to be an update problem of the STATE field in FREEMENUs when using the EDITSTART links. I want to create a menu with three fields: a variable name, its value and a "Set the variable" button. This last item has a SELECTEDFN attached to it that fetches the STATE field of the value item, and sets a (global) variable to that value. When pushing the variable name, I want the menu to start editing the value(!) item (just like some of the menus in TEDIT, e.g. "Line Leading:" on the Paragraph-Looks Menu). The obvious way to do this seems to be in adding in the description of the variable name item a TYPE EDITSTART property and a link LINKS (EDIT ALPHA), in which ALPHA is the ID of the value item. However, after clicking the name in the menu and editting the value, the STATE field of this item is NOT updated. Not even after calling FM.ENDEDIT on the window!! By the way, the value of the STATE field can be obtained by calling (FM.ITEMPROP (FM.GETITEM id NIL WINDOW) 'STATE) or by using the inspector. The way I solved this problem was by adding my own links as user properties, and explicitly calling FM.EDITITEM on the item pointed to by this link. Now, after calling FM.ENDEDIT, the STATE field is correctly updated. Is this update problem a bug, or is there something about the properties TYPE EDITSTART and LINKS (EDIT id) that I don't understand???? The usual thanks in advance, Andre Kok kok@cs.vu.nl