RE: Re: Tcl/Tk 8.4.12 for WinCE ARM binaries available

"Jeff Hobbs" <jeff-2ke/W+B1M/[email protected]> Wed, 11 Jan 2006 20:47:12 -0800
Newsgroups gmane.comp.windows.ce.freeware
Organization ActiveState
Message-ID <[email protected]>
jgdhausmann wrote:
> --- In [email protected], "Jeff Hobbs" <jeff@h...> wrote:
> > I have uploaded Tcl/Tk 8.4.12 (prerelase) binaries for WinCE 4.0 ARM 
> > devices (PocketPC 2003+) to:
> > 
> > 	ftp://ftp.tcl.tk/pub/incoming/tcltk8_4_12_ce-arm.zip

> Now, I noticed that when using a spinbox on the device, I 
> can't seem to keep the spinbox buttons in the pressed state, 
> i.e., scrolling through the values  (using 
> -repeatdelay/-repeatinterval options) doesn't work.
> 
> I also noticed that the same is true for buttons in general, 
> i.e., you can't keep them pressed.
> 
> But for scrollbars, the arrow buttons do work in this way.

In giving a poke at the behavior, I found that we are getting
Enter and Leave events triggered.  Use tkcon and this simple
script:

package require Tk
pack [button .b -text Hello -command {puts hello}]
bind .b <Enter> {puts enter}
bind .b <Leave> {puts leave}
raise .

and select .b and you will see a leave happening, which is
what causes the relief to return to normal, and what likely
prevents the repeat delay.  Interestingly, click and hold
over the button, wiggling the mouse slightly - you will see
repeat enter/leave and the relief changes, but only upon
final release does the command trigger (at least that part
is the expected behavior ...).

I have not noticed this until you brought it up, so I can't
say specifically what the issue is (haven't had the time to
delve into C yet).

  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos