I originally sent this to comp.lang.tcl but I subscribed this morning
so...
Plus, there are more questions here than in the original post.
------------------------
Hi,
I've started using vtcl (1.08) for the first time this weekend and I have a
few questions:
1) Do I have to create a new toplevel in order for my application window to
appear or is there a way to use the vtcl toplevel window which I haven't
figured out? So far, my toplevels are always vtcl.top##.
I think I have the answer to this one. I must set the vt.tcl window state to
normal instead of withdraw. If there are any drawbacks to this, please let me
know.... Wait, just tested it and I can't insert anything in the . widget.
The reason I want to do this is that I've noticed that killing the
application by using the window manager doesn't send the user back to the
command line.
2) How do I change the width of a scale and actually make it change? I've
tried modifying the value of Width but I see no effect.
Got the answer to this also: press Enter after entering the new value (talk
about your dumb newbie questions). Although this changes the witdth of the
trough as I want it, I can't figure out why the left side of the widget
(where the value is displayed) is so large. It also doesn't look like I can
display a label for the scale. Am I not looking in the proper place?
3) How do I change the type of cursor used over widget? Do I have to do it on
a widget by widget basis? If so, is it possible to have a list of the default
widgets appear among the choices? I don't know them by heart yet so.... ;-)
4) I created a new wish (until I figure out how the dynamic load thing works)
which uses a different rc file. vtcl doesn't seem to take into account the
values set in that file. I have to set them explicitly inside vtcl. Why?
I'm thinking maybe I have to set the variable as global in my new rc file?
Insight came to me overnight so I haven't tried it yet.
As an aside, should I be able to use this new wish with vtcl in order to test?
I'm asking the question now because it just came to me. I'm guessing I can
but I won't be able to test it until I return home tonight.
5) Is there some documentation around that I haven't found? No, this isn't
criticism. And I don't want any advertisement in response either (from someone
other than the author, trying to sell stuff... [This was for that MetaCard
dude])
Someone told me no.
6) A bonus, which I can probably find in the FAQ, but since I'm on a roll,
how do I initialize the value of a scale with the result of a command? My app
uses a scale which should run a Tcl command to figure out its initial value. I
want it to be something other than 0.
Well, I looked at the man pages and the FAQ but saw no answer. I don't want
to use -variable because I think it would be overkill. Any ideas?
7) I want to use CVS to control the source code. Has anyone done this using
vcl? Are there so many changes from one save to the other that this would be
useless? I would then need to put comments at the beginning of the file
(preferably on the line following #!/foo/bar/wish) in order to insert $Id$,
$Revision$ et al. How can I do this?
8) I'd like to rename some of my widgets to have useful names (other than
top22, scale43, etc). Is this possible? I know it wasn't in XF.
9) Is there a way to cut and paste >1 non-hierarchical widgets simultaneously?
I believe that's enough for now. Thanks for any/all responses.
--
Laurent Duperval, Systems Analyst Grafnetix Systems Inc.
Tel: (514) 861-3389 777, de la Commune Ouest
Fax: (514) 866-6206 Suite 101, Montreal, Qc
[EMAIL PROTECTED] Canada, H3C 1Y1
URL: http://www.Grafnetix.COM/
Personal URL: http://www.Grafnetix.COM/~laurent/