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.

generic for toolkit dispatch

### 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 `add` method of the parent container, and occasionally have been used to sneak in hidden arguments to toolkit implementations.
`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 `guiToolkit`.

### Value

a gaction instance

[Package gWidgets2 version 1.0-8 Index]