beetlebug▾
/

menu xposition

Gives the x coordinate of the entry at INDEX.

PATHNAME xposition INDEX

Description

Gives the x in pixels of the left side of the entry, from the left side of the menu.

Returns

An integer.

Examples

% menu .xp -tearoff 0
> .xp add command -label A
> string is integer [.xp xposition 0]
1

Errors

% menu .xp2; .xp2 xposition
wrong # args: should be ".xp2 xposition index"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also