Sujet : Re: Androwish Label Font
De : undroidwish (at) *nospam* googlemail.com (undroidwish)
Groupes : comp.lang.tclDate : 28. May 2025, 17:38:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1017e68$3b7k7$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
On 5/28/25 12:50, nemethi wrote:
... To your question related to the scrollableframe: Try the following code:
foreach class {ScrollableframeMf ScrollableframeCf} isCf {0 1} {
bind $class <<FingerDown>> \
[list scrollutil::sf::onButton1 %W %x %y $isCf]
bind $class <<FingerMotion>> \
[list scrollutil::sf::onB1Motion %W %x %y $isCf]
bind $class <<FingerUp>> \
[list scrollutil::sf::onButtonRelease1 %W $isCf]
}
...
Csaba, please let's try with Button-2 bindings, since this is what
AndroWish emulates for swipe gestures e.g. when dragging a Text widget,
so your proposal becomes:
foreach class {ScrollableframeMf ScrollableframeCf} isCf {0 1} {
bind $class <2> \
[list scrollutil::sf::onButton1 %W %x %y $isCf]
bind $class <B2-Motion> \
[list scrollutil::sf::onB1Motion %W %x %y $isCf]
bind $class <ButtonRelease-2> \
[list scrollutil::sf::onButtonRelease1 %W $isCf]
}
The <<Finger...>> virtual events are more complex since they allow
for multi touch and pressure.
See
https://androwish.org/home/wiki?name=sdltk+command for more
detailed information.
Hope this helps,
Christian