[PD-dev] pdtk_canvas_click and focus

Miller Puckette mpuckett at imusic1.ucsd.edu
Mon Oct 29 23:36:44 CET 2007


I probably did that before the mac version existed, maybe because setting
focus had a bad effect on Windows.  You'd have to get to a windows
machine to find out what it might have been :)

M
On Mon, Oct 29, 2007 at 06:24:38PM -0400, Hans-Christoph Steiner wrote:
> 
> Anyone know why the focus statement below only applies to GNU/Linux?   
> This would make life much easier on Mac OS X when writing GUIs that  
> handle focus:
> 
> proc pdtk_canvas_click {name x y b f} {
>      global pd_nt
>      if {$pd_nt == 0} {focus $name}
>      pd [canvastosym $name] mouse [$name canvasx $x] [$name canvasy  
> $y] $b $f \;
> }
> 
> .hc
> 
> 
> 
> ------------------------------------------------------------------------ 
> ----
> 
> I have the audacity to believe that peoples everywhere can have three  
> meals a day for their bodies, education and culture for their minds,  
> and dignity, equality and freedom for their spirits.      - Martin  
> Luther King, Jr.
> 
> 
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev




More information about the Pd-dev mailing list