Re: ttk::notebook mouse wheel event

Liste des GroupesRevenir à cl tcl 
Sujet : Re: ttk::notebook mouse wheel event
De : et99 (at) *nospam* rocketship1.me (et99)
Groupes : comp.lang.tcl
Date : 31. Dec 2024, 03:16:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkvk6e$1tcbq$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 12/29/2024 8:25 AM, Rich wrote:
alexandru <alexandru.dadalau@meshparts.de> wrote:
I searched my code for a reason why the ttk::notebook tabs are
changed upon mose wheel events.
>
Does anywone know how to deactivate this behavior?
>
No sure if there is another module causing this.
 A basic ttk:notebook does not appear to bind to mouse wheel events in
any way:
    $ rlwrap wish
   % ttk::notebook .n
   .n
   % winfo class .n
   TNotebook
   % bind TNotebook
   <Destroy> <Control-Key-ISO_Left_Tab> <Control-Shift-Key-Tab>
   <Control-Key-Tab> <Key-Left> <Key-Right> <Button-1>
 Therefore this behavior appears to be arising from some other module
you are using.
This is ironic; I actually wanted this behavior for bwidgets notebooks, and to make it work on linux one binds to Button-4 and Button-5 to use the mousewheel. Perhaps something in your code is doing this too.
I posted an example of this in https://wiki.tcl-lang.org/page/notebook (last post at bottom) which mostly was to demonstrate a bwidget notebook with close buttons on each tab, but also included the mousewheel over the tabs for scrolling them as well.

Date Sujet#  Auteur
29 Dec 24 * ttk::notebook mouse wheel event7alexandru
29 Dec 24 `* Re: ttk::notebook mouse wheel event6Rich
30 Dec 24  +- Re: ttk::notebook mouse wheel event1alexandru
30 Dec 24  +* Re: ttk::notebook mouse wheel event3nemethi
30 Dec 24  i+- Re: ttk::notebook mouse wheel event1nemethi
1 Jan 25  i`- Re: ttk::notebook mouse wheel event1alexandru
31 Dec 24  `- Re: ttk::notebook mouse wheel event1et99

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal