![]()
Create an Action GroupThere are several types of action groups: radio, menu, toolbar, toggle, popup.Menu actionsTo 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 ]) }); Radio actionsSimilar to regular menu actions, but with an additional "value" parameter, and without the "data" parameterarray 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 |