Generate <Shift-Button> event on a canvas (on Windows)

Liste des GroupesRevenir à cl tcl 
Sujet : Generate <Shift-Button> event on a canvas (on Windows)
De : hgiese (at) *nospam* ratiosoft.com (Helmut Giese)
Groupes : comp.lang.tcl
Date : 05. Aug 2024, 16:27:31
Autres entêtes
Organisation : ratiosoft
Message-ID : <qfq1bj95rbgdrlnth8qp03c22cbqrhkn4h@4ax.com>
User-Agent : Forte Free Agent 1.93/32.576 English (American)
Hello out there,
I am writing tests (using tcltest) to avoid any regression during
development but I hit something like a brick wall: 'event generate'
appears not to work on items of a canvas. On regular widgets no
problem:  It can produce events like <Button-1>, <Shift-Button-1> ,
etc.
With twapi on the other hand I can produce <Button-1> events
everywhere: canvas, widgets - but no <Shift-Button-1>, so I'm stuck.
So the question is: How to make 'event generate' work on canvas items
or how to tweak twapi to also produce <Shift-Button> events.
Any help will be greatly apppreciated
Helmut
PS: I am running Tcl 8.6.10 under Windows 10, 64 bit

Date Sujet#  Auteur
5 Aug 24 * Generate <Shift-Button> event on a canvas (on Windows)4Helmut Giese
6 Aug 24 +- Re: Generate <Shift-Button> event on a canvas (on Windows)1Helmut Giese
6 Aug 24 `* Re: Generate <Shift-Button> event on a canvas (on Windows)2Helmut Giese
6 Aug 24  `- Re: Generate <Shift-Button> event on a canvas (on Windows)1Helmut Giese

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal