This command will create a canvas widget as part of UI creation, but all the interesting things the user would want to do with a canvas are interactive things after the UI is available to the user.
tic_canvas(
background = "#fafafa",
scrollbars = FALSE,
bind = NULL,
pack = NULL,
...
)Background colour. Default: '#fafafa'
include scrollbars on the canvas? Default: FALSE. This option has not really been tested. Scrollbars still look funky.
bind commands to particular events on this element. This may be
a single result of bind_opts() or a list of them for multiple
events.
a named list of pack options for how to incorporate this element into its
parent container. Default: NULL means to use the standard packing.
See pack_opts() as a way of creating a valid list of pack options.
Other arguments are parsed as follows:
named argumentsFurther options to be used during the creation of this widget. See the tcl/tk documentation for all arguments possible for this widget.
unnamed argumentsContainer widgets (e.g. tic_frame()) treat any
unnamed arguments as child objects. Non-container widgets
(e.g tic_button()) will
raise an error if there are any unnamed widgets.
handle on the tcl/tk object. TODO: better language needed here.
So to make actual use of canvas at the moment, you'll have to be prepared to write some code with the `tcltk` package and read lots of documentation!
See tcl/tk documentation for more information on this element https://www.tcl.tk/man/tcl8.6/TkCmd/canvas.html
Other widgets:
tic_button(),
tic_checkbutton(),
tic_combobox(),
tic_label(),
tic_menubutton(),
tic_menuitem(),
tic_menu(),
tic_progressbar(),
tic_radiobutton(),
tic_separator(),
tic_sizegrip(),
tic_slider(),
tic_spinbox(),
tic_submenu(),
tic_textbox(),
tic_textentry()
Other canvas:
canvas_arc(),
canvas_clear(),
canvas_image(),
canvas_line(),
canvas_oval(),
canvas_plot(),
canvas_polygon(),
canvas_rect(),
canvas_save(),
canvas_text()