Re: Androwish Label Font

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Androwish Label Font
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tcl
Date : 28. May 2025, 11:50:17
Autres entêtes
Message-ID : <1016pp9$27sj$1@tota-refugium.de>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Am 27.05.25 um 22:56 schrieb Michael Niehren:
Harald Oehlmann wrote:
 
Am 27.05.2025 um 14:40 schrieb Michael Niehren:
Hi together,
>
i played around with Androwish to build an TCL-App for Android.
I got it running, compiled my own version with some extra modules,
everything fine.
>
In my program code i set the used text font for the Label-Widgetes with
    ttk::style configure TLabel -font Labelfont
in the same way as TEntry or TButton, but this font setting on the
ttk::labels is not applied, all other's are running as expected.
>
If found an entry in the wiki from 2014 (http://wookie.tcl.tk/39493)
which describes the same problem, but no solution.
>
Does anybody know (11 years later), what is going on here and maybe howto
solve the problem ?
>
best regards
    Michael
>
>
I don't have this issue. It just works. This may be a style issue. I use
AWDark on Androwish. My font definition is like this:
>
option add *TLabel.font LabelFont
>
I don't remember, why I use the option data base and do not use the
style configuration. Maybe, to be style agnostic.
>
Harald
 That's it Harald, many thanks to you. It works also without the AWDark
Theme. Maybe you can make an entry in the Wiki for that. It is nowhere
documented.
 I also find Androwish very interesting, but i am on my first steps with it.
 By the way, another question, maybe you can help me too.
 I want to use Csaba's scrollutil within the Android-App. I tried it with the
scrollableframe, here is a litte code from that.
    set sw [scrollutil::scrollarea $top.sw -borderwidth 0 -relief flat]
   set sf [scrollutil::scrollableframe $sw.sf -fitcontentwidth 1]
   $sw setwidget $sf
    scrollutil::createWheelEventBindings all
   scrollutil::enableScrollingByWheel $sf
 My intension was that the user can scroll with 1 finger in the
scollabeframe, as this is the normal case on Android. But it seem's that
the Bindings are not working here. I can only scroll when i touch on the
scrollbar and then go up/down.
 There should be 3 bindings in Androwith with finger gesture
     <<FingerDown>>: Triggered when a finger touches the screen.
     <<FingerUp>>: Triggered when a finger is lifted.
     <<FingerMotion>>: Triggered when a finger moves across the screen.
 Do you also have an solution for that ?
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]
}
I don't have Androwish, but if you report back that the above bindings work for you then I will incorporate them in the next Scrollutil version.
--
Csaba Nemethi  https://www.nemethi.de  mailto:csaba.nemethi@t-online.de

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