![]() |
1st Step Press the TMenu button. By pressing this button you create always a new TMenu unless the selected component is already a TMenu. In this case the selected TMenu will be edited. |
![]() |
2nd Step The menu editing form appears. If you created a new TMenu, everything is empty. The table on the left is the preview of what the menu will be. The fields on the right are the information related to the selected menu item. You use this fields to change and enter information. You can insert a new item in the current menu column by pressing insert item. To insert a new menu column, press insert column. To delete an item select it and press "delete". If you delete all items in a column, the column disappears. To edit/insert the event associated to an item, double click the cell representing this item. |
![]() |
2a Step This is an example how you could build a menu. To insert a separator just use "-" as caption. Note that the item Exit has the Accel "x", it appears in red on the right side of the cell. Note that the assigned name must be unique if you plan to assign an event to the menu. By default a name is built using the valid characters of the caption. |
![]() |
3rd Step Get sure you assign your menu to the form, where you want to have it. |
![]() |
Ready! And here is the aspect of the selected menu on the palm. |
![]() |
Adding an OnClick event To insert a new event double click the item in the table view. For example to add a new event for the menu item "Open" make a double click on point 1. Next time you open the menu editor, you can see that Palmphi has filled the input field "2" for you. Alternatively, if you already have an event handler for this option you can write it in the input field on point 2. Then you can double click on the menu option and Palmphi brings you to the existing event handler. |
![]() |
Adding an accelerator An accelerator is a shortcut you can enter with the graffiti keyboard which launches the same command on the menu. To add an accelerator position the cursor onto the option which you want to add an accel. for and insert a letter into the input field "Accel" (marked with the "2"). Visually, you can see the new accelerator in the table view (here marked with the "1"). Now each time you write / and x in your palm, the event for "Open" will be executed. |