IMAGE create parameters

Peter Maersk-Moller (peter.maersk-moller@jrc.it)
Wed, 21 Aug 1996 19:24:58 +0200

Hi tkined/scotty users !

I'm preparing an update for IP-World for scotty, but have some problems
with parameter transfer (because my TclTk skills are limited; yeahh I know)

How can I transfer a parameter from a function like

"ined create IMAGE $file" in ip_world.tcl

to "proc IMAGE::canvas { image }" in Objects.tcl

I would like to do something like

"ined create IMAGE $file $color"

and

"proc IMAGE::canvas { image { color some_color}}"

but that doesn't work.

Do I have to edit tkiMethods.c to get it to accept parameters or
can I do something more elegant ?

PS. images in canvas' doesn't support change of color, so the color has
to be set at creation. Changing and image into the type bitmap will
probably require some changes in Command.tcl to prevent changing of
background color (af {[$id type] == "IMAGE"} continue). Otherwise I
can not see the exact reason for handling backgrounds as images
and other bitmaps as bitmaps in the canvas. Maybe for some speed
reasons ?

Thanks in advance for any reply.

--- Any opinion or statements below will be of my own and not the JRC ---

Peter Maersk-Moller
Network Manager
---
TP441 Email : peter.maersk-moller@jrc.it
Space Applications Institute Phone : +39 (0)332 785820
Joint Research Center Fax : +39 (0)332 785461
I-21020 Ispra (VA) Priv. : +39 (0)332 647256
Italy DK : +45 38882869
\|||/ NICHDL: PMM2-RIPE, PM13-RIPE
(. .)
+-----------------------------ooO-(_)-Ooo--------------------------------+
| __ _ |
| / / (_)__ __ ____ __ |
| / /__/ / _ \/ // /\ \/ / . . . t h e c h o i c e o f a |
|/____/_/_//_/\___/ /_/\_\ G N U g e n e r a t i o n . . .|
| |
+------------------------------------------------------------------------+
|| ||
ooO Ooo