gtkTreeViewSetCursorOnCell: gtkTreeViewSetCursorOnCell

Description Usage Arguments Details Author(s)

View source: R/gtkFuncs.R

Description

Sets the current keyboard focus to be at path, and selects it. This is useful when you want to focus the user's attention on a particular row. If focus.column is not NULL, then focus is given to the column specified by it. If focus.column and focus.cell are not NULL, and focus.column contains 2 or more editable or activatable cells, then focus is given to the cell specified by focus.cell. Additionally, if focus.column is specified, and start.editing is TRUE, then editing should be started in the specified cell. This function is often followed by gtk.widget.grab.focus (tree.view) in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.

Usage

1
2
gtkTreeViewSetCursorOnCell(object, path, focus.column = NULL, 
    focus.cell = NULL, start.editing = FALSE)

Arguments

object

A GtkTreeView

path

A GtkTreePath

focus.column

A GtkTreeViewColumn, or NULL. [ allow-none ]

focus.cell

A GtkCellRenderer, or NULL. [ allow-none ]

start.editing

TRUE if the specified cell should start being edited.

Details

If path is invalid for model, the current cursor (if any) will be unset and the function will return without failing. Since 2.2

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.