gaction {gWidgets2} | R Documentation |
An action constructor
Description
A action object encapsulates an action (a callback) adding textual and graphic information. Actions may be proxied in buttons, menu bars or tool bars.
Usage
gaction(
label,
tooltip = NULL,
icon = NULL,
key.accel = NULL,
handler = NULL,
action = NULL,
parent = NULL,
...,
toolkit = guiToolkit()
)
.gaction(
toolkit,
label,
tooltip = NULL,
icon = NULL,
key.accel = NULL,
handler = NULL,
action = NULL,
parent = NULL,
...
)
Arguments
label |
label for action |
tooltip |
toolktip for actin |
icon |
icon (stock icon name) for icon |
key.accel |
keyboard accelerator. If given, parent must be specified. |
handler |
handler to call when action is invoked |
action |
values passed to parameterize action |
parent |
parent window. Needed if keyboard accelerator used. |
... |
These values are passed to the |
toolkit |
Each widget constructor is passed in the toolkit it
will use. This is typically done using the default, which will
lookup the toolkit through |
Value
a gaction instance
[Package gWidgets2 version 1.0-9 Index]