i have now been working on the project non stop for 12hours
today, started at 7am this morning.
I think i will wait till tomorrow before trying out your suggestions
Thanks very much
I shall let you know how i get on
Cheers
Steve
If i have 2 files eg. test1.tcl and test2.tcl
and i want a button in test1 to run test2.tcl
what do i need to write in test1.tcl
I have been trying -command {source test2.tcl}
but always get the message
could not read file "test2.tcl" : no such file or directory...
startcell is a procedure
So when i use
-command [startCell $celltype $no_of_cells]
or:
-command [list [startCell $celltype $no_of_cells]]
i get an error: invalid command name startCell
So i need to do it some other way
I have tried the different ways you have suggested but the final value of the variable is still what i am getting
I tried
-command "startCell $celltype $no_of_cells"
-command startCell "$celltype $no_of_cells"
-command {startCell "$celltype $no_of_cells"}
-command...
When the window for our drawing tool loads up it accesses our database
through C functions to find the names of the buttons and there
drop down menu names that we want displayed on the screen
###########################################################
proc pulldownmenu {} {
global celltype...
if i have an array like
array set Cellinfo {
type 1
width 80
height 120
cost 50
color #D60000
}
and i want to call a procedure and pass it
the array name so the procedure can perform calculations
on the data in the array eg. startCell Cellinfo
proc startCell { } {
upvar
}
i...
when setting the variable testVar to the following expression
set testVar [eval .c coords $Move(utag)]
It returns a string containing the co ordinates of the rectangle that has been selected
on the canvas. eg. 80.0 140.0 160.0 260.0
How would i then split that variable up into the four...
the first language i learnt was Pascal, I was thinking of the work i had done with that , i sure you could build one in it obviously not in tcl though
thanks for the links
cheers
steve
i am reading my tcl book at the moment and having difficulty getting
my head around how to build a list that contains an array of records
and then being able to populate the arrays with data
does anyone have any example code that might make things clearer
for me
Cheers
Steve
The following code is code that a member of my team passed to me and i have modified for our project.
I understand everything apart how the utag procedure works and in proc makeHorse i dont understand
what information is contained within the var set Cell(id) / .......
I know that every cell i...
Once again thanks very much for your help, away to try some stuff out with my program.
Its been difficult learning tcl on my own in one month and designing this for my university team project,tcl is deffinetly something I want to continue with, does your company work in the UK or just the US ...
I am designing a drawing package for my uni project
At the moment i have a scrollable canvas with a grid on it
I have buttons that when pressed i can drop a rectangular object on to the canvas
where my cursor is
What i would now like to do is include some code to get the rectangles to line up...
I am half way through my 3rd year software enginering project at uni ,we are now into the implemetation stage.
None of our team have ever used tcl/tk before so we are having a lot of trouble.
What I need to know can be simplified to the following
when I click on a button that I have already...
my problem is I cant find how to access the users name who created each file in a directory
I know using ls -l can tell you this but Im not accessing it from the command line
For finding the size of the files and the times they were last modified I have been using stbuf.st_size and...
I have almost finished writting this now , my problem is I cant find how to access the users name who created each file in a directory
I know using ls -l can tell you this but Im not accessing it from the command line
For finding the size of the files and the times they were last modified I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.