Tutorials

A more complex menu

This is the html code for the applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=320 height=80>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="menu0" value="2,1,FFFFFF,menu2.gif">
<PARAM name="cell0" value="40,20,120,40">
<PARAM name="names0" value="Previous,Next">
<PARAM name="links0" value="jmstutorial2.html,jmstutorial4.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the image menu2.gif:
menu2.gif

You can also create insets in the menu. This results in a part of the menu which doesn't have any items in it. It's done by using the 'cell' parameter that belongs to the menu you want to change. The first two numbers define the horizontal and vertical inset from the start of the image. The next two numbers define the horizontal and vertical size of a single cell.

This is illustrated by this image:
menu2 explanation

IV - Creating popups