Re: a little help

From: Erick Gallesio <>
Date: Sun, 3 Oct 1999 23:49:32 +0200 (CEST)

Brian Denheyer writes:
> I am trying to pass an STk vector to a Tk routine and want to be able
> to use the STk vector to initialize some data structures. However
> only the NAME of the variable is being passed as a (char *).
If you quote it therwise no,it is is its value which is passes as a
string. Just do (pack (button '.b :text (vector 1 2 3))) to see that

> Is there a way to do this ??
> I think that I need to
> 1. be able to lookup the environment (do I need to modify the data structure to include an environment ?).

> 2. Convert the string name to a symbol and then use that and the
> environment in STk_varloolup.
> Any pointers, example code, or pointers to example code will be
> greatly appreciated.

I don't really understand your question here. What data structure do
you talk here? If you want to add an option environment to a widget,
yes you have to modify it a little bit, but the Tk configuration
routine knows how to manage environment. Look at the code of
tkButton.c for an example of that. I can help you her if you need
that. But perhaps I have not well understood your question.

                -- Erick
Received on Sun Oct 03 1999 - 23:59:02 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST