public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: Mo DeJong <mdejong@cygnus.com>
To: sourcenav@sourceware.cygnus.com
Subject: Re: Problems using Tcl/Tk to customize GUI
Date: Fri, 06 Jul 2001 00:08:00 -0000	[thread overview]
Message-ID: <Pine.SOL.3.91.1010705235927.2695F@cse.cygnus.com> (raw)
In-Reply-To: <F110yhGvDpEDiOa7ddh0000176a@hotmail.com>

On Thu, 5 Jul 2001, Left Spin wrote:

> I'm trying to customize the SN GUI using Tcl/Tk under Win98.
> I'm new to Tcl/Tk, and I'd sure appreciate some help
> getting started using it with SN.
> 
> I put a file named rc.tcl in the following directories, it contains the 
> sample code to add a shell button to the UI. Needless to say, the
> button doesn't show up. What am I doing wrong? Thanks in advance..
> 
> c:\program files\source navigator\H-i386-pc-cygwin\share\etc\rc.tcl
> c:\home\leftspin\.sn\rc.tcl
> 
> I have an environment variable:
> HOME=c:\home\leftspin
> 
> rc.tcl contains:
> proc sn_rc_symbolbrowser {top menu} {

That method should be getting called from the constructor of
the SymBr& class on line 84 of gui/symbolbrowser.tcl:

% grep -n sn_rc_symbolbrowser symbolbrowser.tcl
83-        #call user function
84:        catch {sn_rc_symbolbrowser $itk_component(hull)  
$itk_component(hull).menu}

I would be willing to bet that your Interp does not know
that you defined the sn_rc_symbolbrowser method. You
might want to take a look at the sn_load_rc_file
in sninit.tcl to see if it is pulling in your rc.tcl
file. You should be able to just set the SN_DEBUG env
var to 9 and then look at the generated debug log
in your C:\Temp dir.

cheers
Mo DeJong
Red Hat Inc

      reply	other threads:[~2001-07-06  0:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-05 10:31 Left Spin
2001-07-06  0:08 ` Mo DeJong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.3.91.1010705235927.2695F@cse.cygnus.com \
    --to=mdejong@cygnus.com \
    --cc=sourcenav@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).