menu insert
Inserts an entry of TYPE before the entry at INDEX.
PATHNAME insert INDEX TYPE ?OPTION VALUE ...?
Description
The same as add, with the new entry before INDEX in place of at the end. An index past the end adds the entry at the end.
Returns
An empty string.
Examples
% menu .in -tearoff 0
> .in add command -label Second
> .in insert 0 command -label First
> .in entrycget 0 -label
First
Errors
% menu .in2; .in2 insert
wrong # args: should be ".in2 insert index type ?-option value ...?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1