![]()
Create an Action GroupThere are several types of action groups: radio, menu, toolbar, toggle, popup.1.1 Menu actions To create a regular menu action group, create an array like the following:array menu_actions=({ ([ "name": "FileMenu", "label": "_File" ]), ([ "name": "FileOpen", "label": "_Open", "callback": open_file, "data": 0 ]), ([ "name": "FileQuit", "label": "_Quit", "callback": appQuit, "data": 0 ]), ([ "name": "EditMenu", "label": "_Edit" ]), ([ "name": "EditCopy", "label": "_Copy", "callback": edit_copy, "data": 0 ]), ([ "name": "EditPast", "label": "_Paste", "callback": edit_past, "data": 0 ]) }); array radio_actions=({ ([ "name": "ViewIcons", "label": "Icons", "value": 0, "callback": viewAsIcons ]) }) Powered by PikeWiki2 |
|||
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University |