Share

Tk Toolkit

Tracker: Patches

5 -indicatoron no effect on menu radiobuttons - ID: 2886983
Last Update: Tracker Item Submitted ( blacksqr )

If a menu is created with multiple radiobutton entries, using "-indicatoron
1" on one of the entries has no effect. The value of the designated
variable overrides the option. If the designated variable is unset, the
flag still has no effect.

Example:

unset -nocomplain selectedButton
set m [menu .m -tearoff 0]
$m add radiobutton -label Accept -indicatoron 1
$m add radiobutton -label Reject
$m add radiobutton -label Undecided
tk_popup $m 0 0

The menu that appears has no menu entries selected.

Example 2:

destroy .m
set selectedButton Reject
set m [menu .m -tearoff 0]
$m add radiobutton -label Accept -indicatoron 1
$m add radiobutton -label Reject
$m add radiobutton -label Undecided
tk_popup $m 0 0

the menu that appears has "Reject" selected despite the use of the
-indicatoron flag.

Version 8.5.5 on Ubuntu Hardy.


Stephen Huntley ( blacksqr ) - 2009-10-27 08:39

5

Open

None

Todd Helfter

12. Unix Menus

None

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.