Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add

Add a child object to parent container


Description

Add packs in child objects.

Basic S3 method for add

Delete may or may not remove a child. This is toolkit specific. It may also be tied up with garbage collection. To avoid that, keep a reference to the child object before deleting.

Basic S3 method for add

Usage

add(obj, child, expand = FALSE, fill = NULL, anchor = NULL, ...)

## Default S3 method:
add(obj, child, expand = FALSE, fill = NULL,
  anchor = NULL, ...)

delete(obj, child)

## S3 method for class 'GContainer'
delete(obj, child)

Arguments

obj

parent object

child

child widget

expand

NULL or logical. For box containers controls whether a child will expand to fill the allocated space.

fill

NULL or character. For box containers. The value of fill (not always respected) is used to control if expansion happens vertically (y), horizontally (x) or both (both or TRUE). For vertically filled box containers, children always fill horizontally (atleast) and for horizontally filled box containers, children always fill vertically (atleast). This is important to realize when trying to size buttons, say.

anchor

NULL or integer. For box containers. The anchor argument is used to position the child within the parent when there is more space allocated than the child requests. This is specified with a Cartesian pair in -1,0,1 x -1, 0, 1.

...

passed on to the


gWidgets2

Rewrite of gWidgets API for Simplified GUI Construction

v1.0-8
GPL (>= 3)
Authors
John Verzani
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.