Re: Androwish Label Font

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Androwish Label Font
De : undroidwish (at) *nospam* googlemail.com (undroidwish)
Groupes : comp.lang.tcl
Date : 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

Date Sujet#  Auteur
27 May 25 * Re: Androwish Label Font12Harald Oehlmann
27 May 25 +- Re: Androwish Label Font1Harald Oehlmann
28 May 25 +* Re: Androwish Label Font9nemethi
28 May 25 i`* Re: Androwish Label Font8undroidwish
28 May 25 i `* Re: Androwish Label Font7nemethi
28 May 25 i  `* Re: Androwish Label Font6undroidwish
29 May 25 i   `* Re: Androwish Label Font5nemethi
29 May 25 i    `* Re: Androwish Label Font4nemethi
30 May 25 i     `* Re: Androwish Label Font3undroidwish
31 May 25 i      `* Re: Androwish Label Font2nemethi
31 May 25 i       `- Re: Androwish Label Font1undroidwish
2 Jun08:17 `- Re: Androwish Label Font1Harald Oehlmann

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal