For Programmers: Free Programming Magazines  


Home > Archive > Tcl > August 2007 > dynamically changing menu items









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author dynamically changing menu items
Mark Tarver

2007-08-28, 8:40 am

How do you dynamically change menu items in TCL/tk?

For example if I want to change the command associated with a menu
item or the text displayed on it?

Bryan Oakley

2007-08-28, 8:40 am

Mark Tarver wrote:
> How do you dynamically change menu items in TCL/tk?
>
> For example if I want to change the command associated with a menu
> item or the text displayed on it?
>


$menu entryconfigure $index -command "newCommand" -label "newText"


http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm#M62
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com