Thanks for helping to solve the problem
Now i have one more problem related with OOPS.
I create a class for toolbar it calls as follows
::clsToolbar .frmToolbar.file -maxbutton 3 -variable BUTTONNAME
pack .frmToolbar -side top -fill x
now I want to store the button's name in the global variable BUTTONNAME as soon as that button is clicked
so I can identify which button is clicked
suppose there are 3 button in the toolbar
new, open and save
if new is clicked the variable for [BUTTONNAME] should be new
I tried at my level best
I would be happy if u help me to solve this problem
thanks
akpr
Now i have one more problem related with OOPS.
I create a class for toolbar it calls as follows
::clsToolbar .frmToolbar.file -maxbutton 3 -variable BUTTONNAME
pack .frmToolbar -side top -fill x
now I want to store the button's name in the global variable BUTTONNAME as soon as that button is clicked
so I can identify which button is clicked
suppose there are 3 button in the toolbar
new, open and save
if new is clicked the variable for [BUTTONNAME] should be new
I tried at my level best
I would be happy if u help me to solve this problem
thanks
akpr