[PD] open a subpatch with toxy

m.weiss weiss at weiss-archiv.de
Sun Dec 17 13:42:05 CET 2006


Patco schrieb:
>>
>>> m.weiss a écrit :
>>>
>>>>
>>>> opening a subpatch or window in pd makes this growin bigger each
>>>> time it is opened
> 
> hello,
> 
> I believe that the problemcomes from those lines in pd.tk:
> 
> Line 863:
> 
> # slide offscreen windows into view
>    if {$tcl_version >= 8.4} {
>        set geometry [split $geometry +]
>        set i 1
>        foreach geo {width height} {
>            set screen($geo) [winfo screen$geo .]
>            if {[expr [lindex $geometry $i] + [set $geo]] > $screen($geo)} {
>                set pos($geo) [expr $screen($geo) - [set $geo]]
>                if {$pos($geo) < 0} {set pos($geo) 0}
>                lset geometry $i $pos($geo)
>            }
>            incr i
>        }
>        set geometry [join $geometry +]
>   }
> 
> I tried to modify this code but I would have lucky if it worked,
> maybe someone could fix this?
> Patco
yes
would be great
thanks
m.weiss






More information about the Pd-list mailing list