gaction: An action constructor

Description Usage Arguments Value

View source: R/gaction.R View source: R/gaction.R

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

1
2
3
4
5
6
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


gWidgets2 documentation built on May 29, 2017, 9:20 p.m.