I have a need for showing popup-menus on various spots on my application
window. I have developed somthing that should do the trick: I use CSS to
control the position and visibility of my menu-elements. My menu consists
of a number of buttons - each with their own style. They are placed close
together to make the look like a menu. Being an input element I can give
focus to anyone of the buttons, when I show the menu. But buttons have one
problem: They like to center the button text, which looks messy in a menu.
Therefore all the buttons are without text. The menu-text instead comes
from a separate set of texts - again each of them with their own style,
and they also have their own onclick-handler. It all looks and works quite
nice, but I cannot help feeling if it could be done in a more simple and
hence elengant way (the HTML-document is a fairly complex thing). Does
anyone else have experiences with popups?
Per Belling