Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu problems 1

Status
Not open for further replies.

ArmysArmy

Programmer
Nov 16, 2005
1
US
I'm using vtcl 1.6.0 and I'm having trouble with menus. I trying to use the following code to call a procedure when a menu item is selected. The procedure never gets called. I must be missing a step.

Thanks for the help in advance.

menu $top.m71 \
-activeborderwidth 1 -borderwidth 1 -tearoff 1
$top.m71 add cascade \
-menu "$top.m71.men72" \
-command [list vTcl:DoCmdOption $top.m71.men72 {ShowDialog "System menu pressed"}] \
-label System
 
I think that rather than type, cascade you want type, command.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top