I have class Toolbar
the class will create a frame, label and place a bitmap over the label
in this call there are methods called show and hide.
Problem No 1:
from [a tcl] file , reference for this class is called as shown below
::Toolbar ToolbarFile ".file"
ToolbarFile Show
::Toolbar Toolbaredit ".edit"
Toolbaredit Show
Now how do I give a public reference for that ToolbarFile class
i.e. I should be able to call any method belongs to this class using the reference [ToolbarFile ]
I.e. from another TCL files I should be able to call [ToolbarFile hide]
Problem No 2:
How do I unpack a frame from window.
i.e. if I called ToolbarFile hide . The visible toolbar should be gone
and if I call the method show from any other tcl file it should be visible
Thanks
akpr
the class will create a frame, label and place a bitmap over the label
in this call there are methods called show and hide.
Problem No 1:
from [a tcl] file , reference for this class is called as shown below
::Toolbar ToolbarFile ".file"
ToolbarFile Show
::Toolbar Toolbaredit ".edit"
Toolbaredit Show
Now how do I give a public reference for that ToolbarFile class
i.e. I should be able to call any method belongs to this class using the reference [ToolbarFile ]
I.e. from another TCL files I should be able to call [ToolbarFile hide]
Problem No 2:
How do I unpack a frame from window.
i.e. if I called ToolbarFile hide . The visible toolbar should be gone
and if I call the method show from any other tcl file it should be visible
Thanks
akpr