I want to create something like a submenu with AMS. It should work in one of two ways:
1) If the mouse is moved over a certain text object, some other text objects, representing the the submenu items, should appear below it and stay visible when the mouse is moved down to them. If the mouse is moved somewehre else, they should disappear again.
OR
2) The submenu items appear when the text object is *clicked* and disappear when it's clicked again.
I have tried several ways to accomplish this, but I couldn't get it to work properly. I tried using a true/false variable acting as a visibility flag, but I would have to toggle its value each time the subitem changes, and to do this I would need something like an IF/THEN/ELSE command.
My temporary solution is to resize the main item's bounding box so that it covers all the subitems. Then I use the mouseover/mouseleave method and as the mouse never really leaves the main item, the subitems stay visible. However I am not happy with this solution, because the subitems also appear if the mouse enters the bounding box from the sides or from below. This is confusing for the end user and as I intend to place several main items below each other, this would lead to conflicts.
Any ideas?
[This message has been edited by case (edited 11-10-2000).]
1) If the mouse is moved over a certain text object, some other text objects, representing the the submenu items, should appear below it and stay visible when the mouse is moved down to them. If the mouse is moved somewehre else, they should disappear again.
OR
2) The submenu items appear when the text object is *clicked* and disappear when it's clicked again.
I have tried several ways to accomplish this, but I couldn't get it to work properly. I tried using a true/false variable acting as a visibility flag, but I would have to toggle its value each time the subitem changes, and to do this I would need something like an IF/THEN/ELSE command.
My temporary solution is to resize the main item's bounding box so that it covers all the subitems. Then I use the mouseover/mouseleave method and as the mouse never really leaves the main item, the subitems stay visible. However I am not happy with this solution, because the subitems also appear if the mouse enters the bounding box from the sides or from below. This is confusing for the end user and as I intend to place several main items below each other, this would lead to conflicts.
Any ideas?
[This message has been edited by case (edited 11-10-2000).]
Comment