apPopupGen Index - 3. Menu Structure

purpose:

Here we finally define the structure of your menu.
Note: the menu is vertically orientated even if your menu should be horizontally.

options:

Menu Tree window

This is the big white box when no tree hes been entered yet.
Once items are added, you can fold/unfold menu's that contain sub menuitems.
You can also drag and drop menu-items from one position to another.
Items are added and removed by using the buttons as described below.

Label language 1 and 2

As you might have noticed, my webpage is bi-langual, meaning that I support both dutch and english readers.
Since I created apPopupGen for the purpose of creating menu's for my own website, I included support for 2 languages.
Enter the label text for language 1 on the left and for language 2 on the right.
If you do not wish to use language 2, then simply leave it blank.

Note: the structure of my website is that I have a directory for each language, containg all HTML files for that particular language. These files have the same file name for each language. Therefor support for multiple languages is made easy. To give you impression on how I did this, I will show you an example of the website filetree:

\index.htm
\dutch\index.htm
\dutch\about.htm
\dutch\foo.htm
....
\english\index.htm
\english\about.htm
\english\foo.htm
....

The content for example of foo.htm is identical in both directories, except with the difference that one is written in dutch and the otherone is written in english.

Not only regular characters and numbers, but also most common signs are supported like: / \ & ' : etc.

Here you can also create menu-dividers, simply enter a minus sign ('-') in both label boxes.

Link/Script

It would not make sense if one would not be able to hook a hyperlink (either relative or absolute) to a menubutton or menuitem. Here you can enter either link or script.

Tip: in order to enable apPopupMenu to script, one must activate the MAYSCRIPT option described on the Presettings tabsheet!

Target

As with common <A HREF=...> links one can define a target. This can be a default target like "_self" where the current webcontent will be replaced, "_blank" where a new browser window will be opened or even a frame target, for example "text", as defined in your frameset.

Image

apPopupMenu supports images (ie. little icons) in the menubuttons. Images should only be GIF formatted !

Warning:
If you would like to use the preview feature of apPopupGen then keep in mind that the applet resides in the application directory of apPopGen. This means that the image file should not include the absolute path, instead copy the sound file to the application directory so the applet knows where to find it.
Not only image files but also sound are affected by this !

New Item

Click this button when you want to add a new item on the same level as the selected menu-item.
After clicking the button you can use the previously mentioned fields to edit the settings for this item.

New SubItem

Click this button when you want to add a new item on the next level as the selected menu-item.
After clicking the button you can use the previously mentioned fields to edit the settings for this item.

Unfold All

All menu's that contain submenu's will be made visible, thus showing the entire menutree.

Fold All

All submenu items will be hidden, only the menubuttons will remain visible.

Load Tree

Menutrees are saved in plain ASCII, although using a specific format slightly different from that defined by ApyCom (to support treeviews and a second language). Use this to Load your project.

Save Tree

Menutrees are saved in plain ASCII, although using a specific format slightly different from that defined by ApyCom (to support treeviews and a second language). Use this to Save your project.

Delete Item

Will delete the currently selected menutree item.

Note:
If this is a menu holding submenu's, then these submenu's will also be deleted!
Note: there is no suchthing as "undo" implemented!

Delete All

The entire menutree will be deleted.

Note: there is no suchthing as "undo" implemented!