This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: doubt in using add command
- From: Keith Seitz <keiths at redhat dot com>
- To: KiranKumar B Shivananda <kirankumar dot shivananda dot b at celstream dot com>
- Cc: Backhaus Willy <w dot backhaus at newage-avkseg dot com>, "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 26 Nov 2003 08:57:28 -0800
- Subject: Re: doubt in using add command
- Organization:
- References: <50EE5AD0AF6ED511833900B0D020C858029801DA@localhost>
On Wed, 2003-11-26 at 03:08, KiranKumar B Shivananda wrote:
> $menubar add menubutton file "File" 0
> $menubar add command None "Close" \
> [code.....................
>
>
> but when i tried to invoke this program it gave the following error
>
> can't read "menubar": no such variable.
If you look at the rhabout plugin, it does this, too. The variable
"menubar" is defined in the PluginWindow class. Is your plugin class
inheriting this class? (See src/gdb/gdbtk/plugins/rhabout/rhabout.itcl.)
> Whether I have to include my file in a particular directory? If yes
> which directory?
Just follow the example plugin (rhabout). That should get you nearly
everything you would need. (If that fails, take a look at the
intel-pentium plugin.)
> Or whether I have to use lappend command to include some directory in
> the auto_path? If yes please give me the directory and syntax to use
> lappend
You should not need to do this. This will be done by your plugin's
config file, i.e., myplugin.tcl.in (see
src/gdb/gdbtk/plugins/rhabout/rhabout.tcl.in).
Keith