if I am using the method written at the end of this mail to create a menu, how can I transform my first menu button present in File "open task" in a cascade entry (I want to add task1 task2 :
ex :
File
-- Open task
-- task 1
-- task 2
-- Exit
I already know how to do it with the normal way "add cascade" but not with this one.
Thanks for your help
Manu
set descmenu {
"&File" all file 0 {
{command "Open Task" {} "Open task" {} -
{command "E&xit" {} "Exit BWidget demo" {} -command exit}
}
"&Options" all options 0 {
{checkbutton "Toolbar &1" {all option} "Show/hide toolbar 1" {}
-variable Demo::toolbar1
-command {$Demo::mainframe showtoolbar 0 $Demo::toolbar1}
}
{checkbutton "Toolbar &2" {all option} "Show/hide toolbar 2" {}
-variable Demo::toolbar2
-command {$Demo::mainframe showtoolbar 1 $Demo::toolbar2}
}
}
}
set prgtext "Creating MainFrame..."
set prgindic 0
set mainframe [MainFrame .mainframe -menu $descmenu -textvariable Demo::status -progressvar Demo:rgindic]