Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Never make anything simple and efficient when a way can be found to make it complex and wonderful.


devel / comp.lang.tcl / tkdnd: Drop events not delivered to widgets below toplevel

SubjectAuthor
* tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
+* tkdnd: Drop events not delivered to widgets below toplevelRalf Fassel
|`- tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
`* tkdnd: Drop events not delivered to widgets below toplevelMike Griffiths
 `* tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
  +* tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
  |`- tkdnd: Drop events not delivered to widgets below toplevelGeorgios Petasis
  `* tkdnd: Drop events not delivered to widgets below toplevelGeorgios Petasis
   `* tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
    `* tkdnd: Drop events not delivered to widgets below toplevelGeorgios Petasis
     +* tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
     |`- tkdnd: Drop events not delivered to widgets below toplevelSam Bromley
     `* tkdnd: Drop events not delivered to widgets below toplevelPaul Obermeier
      `- tkdnd: Drop events not delivered to widgets below toplevelGeorgios Petasis

1
tkdnd: Drop events not delivered to widgets below toplevel

<abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10282&group=comp.lang.tcl#10282

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:2297:b0:3a5:7679:2fa1 with SMTP id ay23-20020a05622a229700b003a576792fa1mr53919772qtb.258.1670197927347;
Sun, 04 Dec 2022 15:52:07 -0800 (PST)
X-Received: by 2002:ae9:e507:0:b0:6fa:5778:8e with SMTP id w7-20020ae9e507000000b006fa5778008emr72599241qkf.71.1670197927154;
Sun, 04 Dec 2022 15:52:07 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 4 Dec 2022 15:52:06 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
Subject: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Sun, 04 Dec 2022 23:52:07 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1771
 by: Sam Bromley - Sun, 4 Dec 2022 23:52 UTC

Hi everyone.
I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
(Tcl 8.6.10 on Ubuntu.)
Thanks!
Sam

#!/usr/bin/env wish
package require tkdnd
button .b1 -text b1
frame .f
button .f.b2 -text b2
pack .b1 -side top
pack .f.b2 -side top
pack .f -side top
tkdnd::drop_target register .b1 *
tkdnd::drop_target register .f.b2 *
bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}

Re: tkdnd: Drop events not delivered to widgets below toplevel

<ygaa642ywud.fsf@akutech.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10283&group=comp.lang.tcl#10283

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralf...@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Mon, 05 Dec 2022 11:21:46 +0100
Lines: 21
Message-ID: <ygaa642ywud.fsf@akutech.de>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net 5J73e3QljTmz4M1I+ZvuJwf+BDd4qjhjpQLen1tzHK5vuJ0ks=
Cancel-Lock: sha1:7Y7j1cGNzBBWz8ryjn7N3ulTrwo= sha1:YzZ9VgGENTyFcFlqQAgLrd3fQ8s=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Mon, 5 Dec 2022 10:21 UTC

* Sam Bromley <sbromle@sambromley.com>
| (Tcl 8.6.10 on Ubuntu.)
--<snip-snip>--
| #!/usr/bin/env wish
| package require tkdnd
| button .b1 -text b1
| frame .f
| button .f.b2 -text b2
| pack .b1 -side top
| pack .f.b2 -side top
| pack .f -side top
| tkdnd::drop_target register .b1 *
| tkdnd::drop_target register .f.b2 *
| bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
| bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}

How are the Drop Events initiated/generated?
Inside the same application (how)?
External source (which)?

R'

Re: tkdnd: Drop events not delivered to widgets below toplevel

<427faf4d-e684-4f72-a3fd-30a69b127e9fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10284&group=comp.lang.tcl#10284

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:1116:b0:6f9:fea2:833a with SMTP id o22-20020a05620a111600b006f9fea2833amr76874413qkk.659.1670277369510;
Mon, 05 Dec 2022 13:56:09 -0800 (PST)
X-Received: by 2002:ad4:4f85:0:b0:4c7:2ab:b0f3 with SMTP id
em5-20020ad44f85000000b004c702abb0f3mr34639287qvb.69.1670277369397; Mon, 05
Dec 2022 13:56:09 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 5 Dec 2022 13:56:09 -0800 (PST)
In-Reply-To: <ygaa642ywud.fsf@akutech.de>
Injection-Info: google-groups.googlegroups.com; posting-host=216.208.243.138; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 216.208.243.138
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com> <ygaa642ywud.fsf@akutech.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <427faf4d-e684-4f72-a3fd-30a69b127e9fn@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Mon, 05 Dec 2022 21:56:09 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Sam Bromley - Mon, 5 Dec 2022 21:56 UTC

On Monday, December 5, 2022 at 6:51:52 AM UTC-3:30, Ralf Fassel wrote:
> * Sam Bromley <s.@sb.com>
> | (Tcl 8.6.10 on Ubuntu.)
> --<snip-snip>--
> | #!/usr/bin/env wish
> | package require tkdnd
> | button .b1 -text b1
> | frame .f
> | button .f.b2 -text b2
> | pack .b1 -side top
> | pack .f.b2 -side top
> | pack .f -side top
> | tkdnd::drop_target register .b1 *
> | tkdnd::drop_target register .f.b2 *
> | bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> | bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
> How are the Drop Events initiated/generated?
> Inside the same application (how)?
> External source (which)?
>
> R'

Sorry for leaving that out. The events are coming
from an external source, a graphical file manager under Gnome.
The external source delivers the other events (Drop:DND_Files for example) successfully to the widgets directly below the top-level.
Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10285&group=comp.lang.tcl#10285

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1b25:b0:3a5:7dd1:31e0 with SMTP id bb37-20020a05622a1b2500b003a57dd131e0mr50627477qtb.57.1670282277017;
Mon, 05 Dec 2022 15:17:57 -0800 (PST)
X-Received: by 2002:a05:6214:3c87:b0:4c6:5bac:4456 with SMTP id
ok7-20020a0562143c8700b004c65bac4456mr67511533qvb.128.1670282276881; Mon, 05
Dec 2022 15:17:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 5 Dec 2022 15:17:56 -0800 (PST)
In-Reply-To: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.99.101.178; posting-account=hbOuAgoAAACCTxHaAgRboJbA2XUYvKy2
NNTP-Posting-Host: 81.99.101.178
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: mik...@keyboardzombie.com (Mike Griffiths)
Injection-Date: Mon, 05 Dec 2022 23:17:57 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2236
 by: Mike Griffiths - Mon, 5 Dec 2022 23:17 UTC

On Sunday, 4 December 2022 at 23:52:09 UTC, sbr...@sambromley.com wrote:
> Hi everyone.
> I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
> Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
> (Tcl 8.6.10 on Ubuntu.)
> Thanks!
> Sam
>
> #!/usr/bin/env wish
> package require tkdnd
> button .b1 -text b1
> frame .f
> button .f.b2 -text b2
> pack .b1 -side top
> pack .f.b2 -side top
> pack .f -side top
> tkdnd::drop_target register .b1 *
> tkdnd::drop_target register .f.b2 *
> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
I wonder if this is a stacking order issue because you're packing .f.b2 before you pack .f? Have you tried reversing these, or [raise]ing .f.b2, to see if this makes a difference?

Re: tkdnd: Drop events not delivered to widgets below toplevel

<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10286&group=comp.lang.tcl#10286

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:43d6:0:b0:3a6:a563:36ae with SMTP id w22-20020ac843d6000000b003a6a56336aemr10887441qtn.462.1670289605797;
Mon, 05 Dec 2022 17:20:05 -0800 (PST)
X-Received: by 2002:ad4:5441:0:b0:4af:9759:6f4b with SMTP id
h1-20020ad45441000000b004af97596f4bmr58162147qvt.31.1670289605648; Mon, 05
Dec 2022 17:20:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 5 Dec 2022 17:20:05 -0800 (PST)
In-Reply-To: <ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com> <ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Tue, 06 Dec 2022 01:20:05 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3768
 by: Sam Bromley - Tue, 6 Dec 2022 01:20 UTC

On Monday, December 5, 2022 at 7:47:59 PM UTC-3:30, Mike Griffiths wrote:
> On Sunday, 4 December 2022 at 23:52:09 UTC, sbr...@sb.com wrote:
> > Hi everyone.
> > I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
> > Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
> > (Tcl 8.6.10 on Ubuntu.)
> > Thanks!
> > Sam
> >
> > #!/usr/bin/env wish
> > package require tkdnd
> > button .b1 -text b1
> > frame .f
> > button .f.b2 -text b2
> > pack .b1 -side top
> > pack .f.b2 -side top
> > pack .f -side top
> > tkdnd::drop_target register .b1 *
> > tkdnd::drop_target register .f.b2 *
> > bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> > bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
> I wonder if this is a stacking order issue because you're packing .f.b2 before you pack .f? Have you tried reversing these, or [raise]ing .f.b2, to see if this makes a difference?

Hi Mike,
I've tested the permutations of the packing order. The same behaviour persists, independent of packing order, that is, only the immediate children of the toplevel "." receive <<Drop>>-related events.

Georgios Petasis, if you are monitoring this list, would you happen to know whether there is a work-around to ensure that external <<Drop>> events can propagate to nested widgets?
I suspect it might have something to do with these events not propagating to or through the frame widget?

Note, that if I create another button .b3, directly parented in ".", but pack it into .f, then this button WILL receive events. So it has something do to with the widget path name, rather than the packing.
The following example, including the original pattern and extended with .b3, is shown for completeness:
#!/usr/bin/env wish
package require tkdnd
button .b1 -text b1;
frame .f;
button .f.b2 -text b2;
button .b3 -text b3;
pack .b1 -side top;
pack .f -side top
pack .f.b2 -side top;
pack .b3 -in .f -side top;
tkdnd::drop_target register .b1 *
tkdnd::drop_target register .f.b2 *
tkdnd::drop_target register .b3 *
bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
bind .b3 <<DropEnter>> {puts stderr "%W receives DropEnter"}

Kindest regards,
Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<d54a1314-46c3-442d-b8d1-fa0eca2463a8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10287&group=comp.lang.tcl#10287

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:995:b0:3a6:8f15:54ff with SMTP id bw21-20020a05622a099500b003a68f1554ffmr22287472qtb.612.1670294218414;
Mon, 05 Dec 2022 18:36:58 -0800 (PST)
X-Received: by 2002:ad4:44b4:0:b0:4c6:d91c:441f with SMTP id
n20-20020ad444b4000000b004c6d91c441fmr49687501qvt.118.1670294218281; Mon, 05
Dec 2022 18:36:58 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 5 Dec 2022 18:36:58 -0800 (PST)
In-Reply-To: <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com> <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d54a1314-46c3-442d-b8d1-fa0eca2463a8n@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Tue, 06 Dec 2022 02:36:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4923
 by: Sam Bromley - Tue, 6 Dec 2022 02:36 UTC

On Monday, December 5, 2022 at 9:50:08 PM UTC-3:30, Sam Bromley wrote:
> On Monday, December 5, 2022 at 7:47:59 PM UTC-3:30, Mike Griffiths wrote:
> > On Sunday, 4 December 2022 at 23:52:09 UTC, sbr...@sb.com wrote:
> > > Hi everyone.
> > > I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
> > > Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
> > > (Tcl 8.6.10 on Ubuntu.)
> > > Thanks!
> > > Sam
> > >
> > > #!/usr/bin/env wish
> > > package require tkdnd
> > > button .b1 -text b1
> > > frame .f
> > > button .f.b2 -text b2
> > > pack .b1 -side top
> > > pack .f.b2 -side top
> > > pack .f -side top
> > > tkdnd::drop_target register .b1 *
> > > tkdnd::drop_target register .f.b2 *
> > > bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> > > bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
> > I wonder if this is a stacking order issue because you're packing .f.b2 before you pack .f? Have you tried reversing these, or [raise]ing .f.b2, to see if this makes a difference?
> Hi Mike,
> I've tested the permutations of the packing order. The same behaviour persists, independent of packing order, that is, only the immediate children of the toplevel "." receive <<Drop>>-related events.
>
> Georgios Petasis, if you are monitoring this list, would you happen to know whether there is a work-around to ensure that external <<Drop>> events can propagate to nested widgets?
> I suspect it might have something to do with these events not propagating to or through the frame widget?
>
> Note, that if I create another button .b3, directly parented in ".", but pack it into .f, then this button WILL receive events. So it has something do to with the widget path name, rather than the packing.
> The following example, including the original pattern and extended with .b3, is shown for completeness:
> #!/usr/bin/env wish
> package require tkdnd
> button .b1 -text b1;
> frame .f;
> button .f.b2 -text b2;
> button .b3 -text b3;
> pack .b1 -side top;
> pack .f -side top
> pack .f.b2 -side top;
> pack .b3 -in .f -side top;
> tkdnd::drop_target register .b1 *
> tkdnd::drop_target register .f.b2 *
> tkdnd::drop_target register .b3 *
> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
> bind .b3 <<DropEnter>> {puts stderr "%W receives DropEnter"}
>
> Kindest regards,
> Sam

Hi folks,
I've been looking into the TkDND source code on github. In the "unix/TkDND_XDND.c" file, I see that "TKDND_SET_XDND_PROPERTY_ON_TOPLEVEL" is defined, but "TKDND_SET_XDND_PROPERTY_ON_TARGET" is not. This causes the "XdndAware" property to be set solely on the toplevel further down, in a cal to XChangeProperty. Perhaps this is the reason why only direct children of the window receive the Xdnd events? I'm not very familiar with Xlib programming. Does anyone here know whether it is ok to call XChangeProperty on the target (a "sub-window") under X and have Xdnd work on it? Should/can the Xdnd property be set on both the toplevel and the subwindow (button)?
Thanks in advance for any insight you can share.
Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<tmnjf8$ddt$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10296&group=comp.lang.tcl#10296

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!hnmQ5zxSjzy9tzPd5dsGwQ.user.46.165.242.75.POSTED!not-for-mail
From: petas...@yahoo.gr (Georgios Petasis)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Tue, 6 Dec 2022 16:26:48 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tmnjf8$ddt$1@gioia.aioe.org>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<d54a1314-46c3-442d-b8d1-fa0eca2463a8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="13757"; posting-host="hnmQ5zxSjzy9tzPd5dsGwQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: Avast (VPS 221206-0, 6/12/2022), Outbound message
Content-Language: el-en
X-Antivirus-Status: Clean
 by: Georgios Petasis - Tue, 6 Dec 2022 14:26 UTC

Dear Sam,

Yes, these options are there, but I think that according to the specs,
only the toplevel window must have the property.

Best regards,

George

Στις 6/12/2022 04:36, ο/η Sam Bromley έγραψε:
> On Monday, December 5, 2022 at 9:50:08 PM UTC-3:30, Sam Bromley wrote:
>> On Monday, December 5, 2022 at 7:47:59 PM UTC-3:30, Mike Griffiths wrote:
>>> On Sunday, 4 December 2022 at 23:52:09 UTC, sbr...@sb.com wrote:
>>>> Hi everyone.
>>>> I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
>>>> Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
>>>> (Tcl 8.6.10 on Ubuntu.)
>>>> Thanks!
>>>> Sam
>>>>
>>>> #!/usr/bin/env wish
>>>> package require tkdnd
>>>> button .b1 -text b1
>>>> frame .f
>>>> button .f.b2 -text b2
>>>> pack .b1 -side top
>>>> pack .f.b2 -side top
>>>> pack .f -side top
>>>> tkdnd::drop_target register .b1 *
>>>> tkdnd::drop_target register .f.b2 *
>>>> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
>>>> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
>>> I wonder if this is a stacking order issue because you're packing .f.b2 before you pack .f? Have you tried reversing these, or [raise]ing .f.b2, to see if this makes a difference?
>> Hi Mike,
>> I've tested the permutations of the packing order. The same behaviour persists, independent of packing order, that is, only the immediate children of the toplevel "." receive <<Drop>>-related events.
>>
>> Georgios Petasis, if you are monitoring this list, would you happen to know whether there is a work-around to ensure that external <<Drop>> events can propagate to nested widgets?
>> I suspect it might have something to do with these events not propagating to or through the frame widget?
>>
>> Note, that if I create another button .b3, directly parented in ".", but pack it into .f, then this button WILL receive events. So it has something do to with the widget path name, rather than the packing.
>> The following example, including the original pattern and extended with .b3, is shown for completeness:
>> #!/usr/bin/env wish
>> package require tkdnd
>> button .b1 -text b1;
>> frame .f;
>> button .f.b2 -text b2;
>> button .b3 -text b3;
>> pack .b1 -side top;
>> pack .f -side top
>> pack .f.b2 -side top;
>> pack .b3 -in .f -side top;
>> tkdnd::drop_target register .b1 *
>> tkdnd::drop_target register .f.b2 *
>> tkdnd::drop_target register .b3 *
>> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
>> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
>> bind .b3 <<DropEnter>> {puts stderr "%W receives DropEnter"}
>>
>> Kindest regards,
>> Sam
>
> Hi folks,
> I've been looking into the TkDND source code on github. In the "unix/TkDND_XDND.c" file, I see that "TKDND_SET_XDND_PROPERTY_ON_TOPLEVEL" is defined, but "TKDND_SET_XDND_PROPERTY_ON_TARGET" is not. This causes the "XdndAware" property to be set solely on the toplevel further down, in a cal to XChangeProperty. Perhaps this is the reason why only direct children of the window receive the Xdnd events? I'm not very familiar with Xlib programming. Does anyone here know whether it is ok to call XChangeProperty on the target (a "sub-window") under X and have Xdnd work on it? Should/can the Xdnd property be set on both the toplevel and the subwindow (button)?
> Thanks in advance for any insight you can share.
> Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<tmnjgq$ddt$2@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10297&group=comp.lang.tcl#10297

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!hnmQ5zxSjzy9tzPd5dsGwQ.user.46.165.242.75.POSTED!not-for-mail
From: petas...@yahoo.gr (Georgios Petasis)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Tue, 6 Dec 2022 16:27:37 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tmnjgq$ddt$2@gioia.aioe.org>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="13757"; posting-host="hnmQ5zxSjzy9tzPd5dsGwQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Content-Language: el-en
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: Avast (VPS 221206-0, 6/12/2022), Outbound message
 by: Georgios Petasis - Tue, 6 Dec 2022 14:27 UTC

Dear Sam,

If you use as a source a Tk app, is it working?

Regards,

George

Στις 6/12/2022 03:20, ο/η Sam Bromley έγραψε:
> On Monday, December 5, 2022 at 7:47:59 PM UTC-3:30, Mike Griffiths wrote:
>> On Sunday, 4 December 2022 at 23:52:09 UTC, sbr...@sb.com wrote:
>>> Hi everyone.
>>> I'm having difficulty using tkdnd with nested widgets, and I'm wondering if someone would have some kind insight to share.
>>> Below is a minimal example where button .b1 will receive Drop events, but button .f.b2 will not. I'm wondering (1) why not? and (2) can I change the bindtags, or something else, to get nested widgets to work with tkdnd?
>>> (Tcl 8.6.10 on Ubuntu.)
>>> Thanks!
>>> Sam
>>>
>>> #!/usr/bin/env wish
>>> package require tkdnd
>>> button .b1 -text b1
>>> frame .f
>>> button .f.b2 -text b2
>>> pack .b1 -side top
>>> pack .f.b2 -side top
>>> pack .f -side top
>>> tkdnd::drop_target register .b1 *
>>> tkdnd::drop_target register .f.b2 *
>>> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
>>> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
>> I wonder if this is a stacking order issue because you're packing .f.b2 before you pack .f? Have you tried reversing these, or [raise]ing .f.b2, to see if this makes a difference?
>
> Hi Mike,
> I've tested the permutations of the packing order. The same behaviour persists, independent of packing order, that is, only the immediate children of the toplevel "." receive <<Drop>>-related events.
>
> Georgios Petasis, if you are monitoring this list, would you happen to know whether there is a work-around to ensure that external <<Drop>> events can propagate to nested widgets?
> I suspect it might have something to do with these events not propagating to or through the frame widget?
>
> Note, that if I create another button .b3, directly parented in ".", but pack it into .f, then this button WILL receive events. So it has something do to with the widget path name, rather than the packing.
> The following example, including the original pattern and extended with .b3, is shown for completeness:
> #!/usr/bin/env wish
> package require tkdnd
> button .b1 -text b1;
> frame .f;
> button .f.b2 -text b2;
> button .b3 -text b3;
> pack .b1 -side top;
> pack .f -side top
> pack .f.b2 -side top;
> pack .b3 -in .f -side top;
> tkdnd::drop_target register .b1 *
> tkdnd::drop_target register .f.b2 *
> tkdnd::drop_target register .b3 *
> bind .b1 <<DropEnter>> {puts stderr "%W received DropEnter"}
> bind .f.b2 <<DropEnter>> {puts stderr "%W never receives DropEnter"}
> bind .b3 <<DropEnter>> {puts stderr "%W receives DropEnter"}
>
> Kindest regards,
> Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10309&group=comp.lang.tcl#10309

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a0c:cb0a:0:b0:4c7:a44:483a with SMTP id o10-20020a0ccb0a000000b004c70a44483amr32885004qvk.130.1670361894254;
Tue, 06 Dec 2022 13:24:54 -0800 (PST)
X-Received: by 2002:ad4:5441:0:b0:4af:9759:6f4b with SMTP id
h1-20020ad45441000000b004af97596f4bmr61202154qvt.31.1670361894030; Tue, 06
Dec 2022 13:24:54 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 6 Dec 2022 13:24:53 -0800 (PST)
In-Reply-To: <tmnjgq$ddt$2@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com> <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Tue, 06 Dec 2022 21:24:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2796
 by: Sam Bromley - Tue, 6 Dec 2022 21:24 UTC

On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios Petasis wrote:
> Dear Sam,
>
> If you use as a source a Tk app, is it working?
>
> Regards,
> Georgios

Hi Georgios,
Thanks so much for reaching out. To answer your question, I made use of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
and modified the "Destination/Target" example to pack the "target button" into a frame, rather than have it packed directly into the toplevel. I then used the "Source" example to initiate a drag event to that target button.

The behaviour was identical to that of when I drag from the external (file manager) source. That is, the Drop events no longer appear to be received by the target button, nor reported. I do note, however, that when I release the button here, the single <<Drop>> event is observed by the Source process, but not by the Target process. This happens whenever I release the mouse button, wherever the pointer is located, as expected I suppose.

For completeness, if I use the original "Target" example, and leave the "target button" packed directly into ".", and then drag from, say, the "Drop_Source_Files" button of the "Source" wish process, the <<Drop::DND_Files>> event does get recognized/triggered. Not so once the target button is packed one layer down through an intermediate frame widget.

I hope this helps!
Thanks so much for your time thinking on this.
Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10321&group=comp.lang.tcl#10321

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!hnmQ5zxSjzy9tzPd5dsGwQ.user.46.165.242.75.POSTED!not-for-mail
From: petas...@yahoo.gr (Georgios Petasis)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Sat, 10 Dec 2022 20:26:11 +0200
Organization: Aioe.org NNTP Server
Message-ID: <f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org>
<9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="23061"; posting-host="hnmQ5zxSjzy9tzPd5dsGwQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
X-Antivirus: Avast (VPS 221210-6, 10/12/2022), Outbound message
Content-Language: el-en
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
 by: Georgios Petasis - Sat, 10 Dec 2022 18:26 UTC

Dear Sam,

I am afraid I cannot reproduce the issue. If you look at the image, I
have added a frame around the drop target, and I am able to drop things
from both the tkdnd source and the gnome file explorer.

https://www.dropbox.com/s/lpomeu5pb0y5pz3/vncviewer_2022-12-10_20-12-48.png?dl=0

Can you please check your tkdnd version?
If you compile from the latest sources, does it work?
I have committed the changes to demos/simple_target.tcl.

I think it is better to open a ticket at github:
https://github.com/petasis/tkdnd

Best regards,

George

Στις 6/12/2022 23:24, ο/η Sam Bromley έγραψε:
> On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios Petasis wrote:
>> Dear Sam,
>>
>> If you use as a source a Tk app, is it working?
>>
>> Regards,
>> Georgios
>
> Hi Georgios,
> Thanks so much for reaching out. To answer your question, I made use of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
> and modified the "Destination/Target" example to pack the "target button" into a frame, rather than have it packed directly into the toplevel. I then used the "Source" example to initiate a drag event to that target button.
>
> The behaviour was identical to that of when I drag from the external (file manager) source. That is, the Drop events no longer appear to be received by the target button, nor reported. I do note, however, that when I release the button here, the single <<Drop>> event is observed by the Source process, but not by the Target process. This happens whenever I release the mouse button, wherever the pointer is located, as expected I suppose.
>
> For completeness, if I use the original "Target" example, and leave the "target button" packed directly into ".", and then drag from, say, the "Drop_Source_Files" button of the "Source" wish process, the <<Drop::DND_Files>> event does get recognized/triggered. Not so once the target button is packed one layer down through an intermediate frame widget.
>
> I hope this helps!
> Thanks so much for your time thinking on this.
> Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<3929deda-655a-4a75-8aa2-80daf8af1efan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10322&group=comp.lang.tcl#10322

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a37:c442:0:b0:6ff:1118:341f with SMTP id h2-20020a37c442000000b006ff1118341fmr195024qkm.351.1670703876226;
Sat, 10 Dec 2022 12:24:36 -0800 (PST)
X-Received: by 2002:a05:622a:5a0f:b0:3a5:2862:c5d1 with SMTP id
fy15-20020a05622a5a0f00b003a52862c5d1mr57283860qtb.73.1670703875996; Sat, 10
Dec 2022 12:24:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sat, 10 Dec 2022 12:24:35 -0800 (PST)
In-Reply-To: <f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com> <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org> <9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
<f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3929deda-655a-4a75-8aa2-80daf8af1efan@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Sat, 10 Dec 2022 20:24:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4388
 by: Sam Bromley - Sat, 10 Dec 2022 20:24 UTC

Hi George,

Thank you for looking further into this.
As per your suggestion, I downloaded and built the latest version of tkdnd from github (tkdnd2.9.3).

This version works perfectly. Thank you. And I do apologize for not having pulled the most recent version sooner.
I was using the version that ships with Ubuntu 20.04.3, which is tkdnd 2.6.1.

I'd like to extend a huge thank you again to you and to the wonderful kindness of the Tcl Community.

Kindest regards,
Sam

On Saturday, December 10, 2022 at 2:56:16 PM UTC-3:30, Georgios Petasis wrote:
> Dear Sam,
>
> I am afraid I cannot reproduce the issue. If you look at the image, I
> have added a frame around the drop target, and I am able to drop things
> from both the tkdnd source and the gnome file explorer.
>
> https://www.dropbox.com/s/lpomeu5pb0y5pz3/vncviewer_2022-12-10_20-12-48.png?dl=0
>
> Can you please check your tkdnd version?
> If you compile from the latest sources, does it work?
> I have committed the changes to demos/simple_target.tcl.
>
> I think it is better to open a ticket at github:
> https://github.com/petasis/tkdnd
>
> Best regards,
>
> George
> Στις 6/12/2022 23:24, ο/η Sam Bromley έγραψε:
> > On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios Petasis wrote:
> >> Dear Sam,
> >>
> >> If you use as a source a Tk app, is it working?
> >>
> >> Regards,
> >> Georgios
> >
> > Hi Georgios,
> > Thanks so much for reaching out. To answer your question, I made use of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
> > and modified the "Destination/Target" example to pack the "target button" into a frame, rather than have it packed directly into the toplevel. I then used the "Source" example to initiate a drag event to that target button.
> >
> > The behaviour was identical to that of when I drag from the external (file manager) source. That is, the Drop events no longer appear to be received by the target button, nor reported. I do note, however, that when I release the button here, the single <<Drop>> event is observed by the Source process, but not by the Target process. This happens whenever I release the mouse button, wherever the pointer is located, as expected I suppose.
> >
> > For completeness, if I use the original "Target" example, and leave the "target button" packed directly into ".", and then drag from, say, the "Drop_Source_Files" button of the "Source" wish process, the <<Drop::DND_Files>> event does get recognized/triggered. Not so once the target button is packed one layer down through an intermediate frame widget.
> >
> > I hope this helps!
> > Thanks so much for your time thinking on this.
> > Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<d56745a5-4b5c-469f-a2f3-67359bc3f12dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10323&group=comp.lang.tcl#10323

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:1e9:b0:4c7:1ae3:4e24 with SMTP id c9-20020a05621401e900b004c71ae34e24mr34165548qvu.62.1670704008145;
Sat, 10 Dec 2022 12:26:48 -0800 (PST)
X-Received: by 2002:a05:6214:3688:b0:4bb:9180:638f with SMTP id
nl8-20020a056214368800b004bb9180638fmr68560740qvb.98.1670704007988; Sat, 10
Dec 2022 12:26:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sat, 10 Dec 2022 12:26:47 -0800 (PST)
In-Reply-To: <3929deda-655a-4a75-8aa2-80daf8af1efan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=142.177.56.238; posting-account=CO1apgoAAABHqa2ckNzZAeEsiszZrOf0
NNTP-Posting-Host: 142.177.56.238
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com> <dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org> <9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
<f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr> <3929deda-655a-4a75-8aa2-80daf8af1efan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d56745a5-4b5c-469f-a2f3-67359bc3f12dn@googlegroups.com>
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
From: sbro...@sambromley.com (Sam Bromley)
Injection-Date: Sat, 10 Dec 2022 20:26:48 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4751
 by: Sam Bromley - Sat, 10 Dec 2022 20:26 UTC

George -> Georgios. So sorry for having missed that, right at the end. Doh.
Sam

On Saturday, December 10, 2022 at 4:54:38 PM UTC-3:30, Sam Bromley wrote:
> Hi George,
>
> Thank you for looking further into this.
> As per your suggestion, I downloaded and built the latest version of tkdnd from github (tkdnd2.9.3).
>
> This version works perfectly. Thank you. And I do apologize for not having pulled the most recent version sooner.
> I was using the version that ships with Ubuntu 20.04.3, which is tkdnd 2.6.1.
>
> I'd like to extend a huge thank you again to you and to the wonderful kindness of the Tcl Community.
>
> Kindest regards,
> Sam
> On Saturday, December 10, 2022 at 2:56:16 PM UTC-3:30, Georgios Petasis wrote:
> > Dear Sam,
> >
> > I am afraid I cannot reproduce the issue. If you look at the image, I
> > have added a frame around the drop target, and I am able to drop things
> > from both the tkdnd source and the gnome file explorer.
> >
> > https://www.dropbox.com/s/lpomeu5pb0y5pz3/vncviewer_2022-12-10_20-12-48..png?dl=0
> >
> > Can you please check your tkdnd version?
> > If you compile from the latest sources, does it work?
> > I have committed the changes to demos/simple_target.tcl.
> >
> > I think it is better to open a ticket at github:
> > https://github.com/petasis/tkdnd
> >
> > Best regards,
> >
> > George
> > Στις 6/12/2022 23:24, ο/η Sam Bromley έγραψε:
> > > On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios Petasis wrote:
> > >> Dear Sam,
> > >>
> > >> If you use as a source a Tk app, is it working?
> > >>
> > >> Regards,
> > >> Georgios
> > >
> > > Hi Georgios,
> > > Thanks so much for reaching out. To answer your question, I made use of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
> > > and modified the "Destination/Target" example to pack the "target button" into a frame, rather than have it packed directly into the toplevel. I then used the "Source" example to initiate a drag event to that target button.
> > >
> > > The behaviour was identical to that of when I drag from the external (file manager) source. That is, the Drop events no longer appear to be received by the target button, nor reported. I do note, however, that when I release the button here, the single <<Drop>> event is observed by the Source process, but not by the Target process. This happens whenever I release the mouse button, wherever the pointer is located, as expected I suppose.
> > >
> > > For completeness, if I use the original "Target" example, and leave the "target button" packed directly into ".", and then drag from, say, the "Drop_Source_Files" button of the "Source" wish process, the <<Drop::DND_Files>> event does get recognized/triggered. Not so once the target button is packed one layer down through an intermediate frame widget.
> > >
> > > I hope this helps!
> > > Thanks so much for your time thinking on this.
> > > Sam

Re: tkdnd: Drop events not delivered to widgets below toplevel

<tn30pa$1o0km$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10324&group=comp.lang.tcl#10324

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: oberme...@poSoft.de (Paul Obermeier)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Sat, 10 Dec 2022 23:21:30 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <tn30pa$1o0km$1@dont-email.me>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org>
<9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
<f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 10 Dec 2022 22:21:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b687e30613bb36222aa5ddcbd9ed4fc7";
logging-data="1835670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19plrg+uygP07gQHQJtsCIWX2uv1nMQ5SY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Cancel-Lock: sha1:PRexyKKess/eXYD2W/LasU0IS00=
In-Reply-To: <f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
 by: Paul Obermeier - Sat, 10 Dec 2022 22:21 UTC

Hi Georgios,

are you planning to release or tag an "official" 2.7.3 version in the near future?
I'm currently preparing a new BAWT release with Tcl/Tk 8.6.13 and up-to-date packages.

Regards,
Paul

> Dear Sam,
>
> I am afraid I cannot reproduce the issue. If you look at the image, I have added a frame around the drop target, and I am able to drop things from both the tkdnd source and the gnome file explorer.
>
> https://www.dropbox.com/s/lpomeu5pb0y5pz3/vncviewer_2022-12-10_20-12-48.png?dl=0
>
> Can you please check your tkdnd version?
> If you compile from the latest sources, does it work?
> I have committed the changes to demos/simple_target.tcl.
>
> I think it is better to open a ticket at github:
> https://github.com/petasis/tkdnd
>
> Best regards,
>
> George
>
>
> Στις 6/12/2022 23:24, ο/η Sam Bromley έγραψε:
>> On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios Petasis wrote:
>>> Dear Sam,
>>>
>>> If you use as a source a Tk app, is it working?
>>>
>>> Regards,
>>> Georgios
>>
>> Hi Georgios,
>> Thanks so much for reaching out. To answer your question, I made use of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
>> and modified the "Destination/Target" example to pack the "target button" into a frame, rather than have it packed directly into the toplevel. I then used the "Source" example to initiate a drag event to that target button.
>>
>> The behaviour was identical to that of when I drag from the external (file manager) source. That is, the Drop events no longer appear to be received by the target button, nor reported. I do note, however, that when I release the button here, the single <<Drop>> event is observed by the Source process, but not by the Target process. This happens whenever I release the mouse button, wherever the pointer is located, as expected I suppose.
>>
>> For completeness, if I use the original "Target" example, and leave the "target button" packed directly into ".", and then drag from, say, the "Drop_Source_Files" button of the "Source" wish process, the <<Drop::DND_Files>> event does get recognized/triggered. Not so once the target button is packed one layer down through an intermediate frame widget.
>>
>> I hope this helps!
>> Thanks so much for your time thinking on this.
>> Sam
>

Re: tkdnd: Drop events not delivered to widgets below toplevel

<61f7951e-74a8-986e-7009-3ea7e5b029d7@yahoo.gr>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10340&group=comp.lang.tcl#10340

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!hnmQ5zxSjzy9tzPd5dsGwQ.user.46.165.242.75.POSTED!not-for-mail
From: petas...@yahoo.gr (Georgios Petasis)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd: Drop events not delivered to widgets below toplevel
Date: Mon, 12 Dec 2022 16:36:43 +0200
Organization: Aioe.org NNTP Server
Message-ID: <61f7951e-74a8-986e-7009-3ea7e5b029d7@yahoo.gr>
References: <abd3d1d8-9cb2-4411-902d-9bad241f5a0en@googlegroups.com>
<ab1e1da7-2ef7-43a9-9d59-551a696647c5n@googlegroups.com>
<dae587ee-1157-467f-9400-b77217a1ca45n@googlegroups.com>
<tmnjgq$ddt$2@gioia.aioe.org>
<9c08d55f-9fb9-42d3-b63f-586c58758f03n@googlegroups.com>
<f07258ab-85ac-e91c-ea90-0a2407376a9c@yahoo.gr>
<tn30pa$1o0km$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="31494"; posting-host="hnmQ5zxSjzy9tzPd5dsGwQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Content-Language: el-en
X-Antivirus: Avast (VPS 221212-0, 12/12/2022), Outbound message
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus-Status: Clean
 by: Georgios Petasis - Mon, 12 Dec 2022 14:36 UTC

Dear Paul,

I have added the tag tkdnd-release-test-v2.9.3 to the repository.

Regards,

George

Στις 11/12/2022 00:21, ο/η Paul Obermeier έγραψε:
> Hi Georgios,
>
> are you planning to release or tag an "official" 2.7.3 version in the
> near future?
> I'm currently preparing a new BAWT release with Tcl/Tk 8.6.13 and
> up-to-date packages.
>
> Regards,
> Paul
>
>> Dear Sam,
>>
>> I am afraid I cannot reproduce the issue. If you look at the image, I
>> have added a frame around the drop target, and I am able to drop
>> things from both the tkdnd source and the gnome file explorer.
>>
>> https://www.dropbox.com/s/lpomeu5pb0y5pz3/vncviewer_2022-12-10_20-12-48.png?dl=0
>>
>> Can you please check your tkdnd version?
>> If you compile from the latest sources, does it work?
>> I have committed the changes to demos/simple_target.tcl.
>>
>> I think it is better to open a ticket at github:
>> https://github.com/petasis/tkdnd
>>
>> Best regards,
>>
>> George
>>
>>
>> Στις 6/12/2022 23:24, ο/η Sam Bromley έγραψε:
>>> On Tuesday, December 6, 2022 at 10:57:41 AM UTC-3:30, Georgios
>>> Petasis wrote:
>>>> Dear Sam,
>>>>
>>>> If you use as a source a Tk app, is it working?
>>>>
>>>> Regards,
>>>> Georgios
>>>
>>> Hi Georgios,
>>> Thanks so much for reaching out. To answer your question, I made use
>>> of the examples at https://wiki.tcl-lang.org/page/TkDND+Tutorial
>>> and modified the "Destination/Target" example to pack the "target
>>> button" into a frame, rather than have it packed directly into the
>>> toplevel. I then used the "Source" example to initiate a drag event
>>> to that target button.
>>>
>>> The behaviour was identical to that of when I drag from the external
>>> (file manager) source. That is, the Drop events no longer appear to
>>> be received by the target button, nor reported. I do note, however,
>>> that when I release the button here, the single <<Drop>> event is
>>> observed by the Source process, but not by the Target process. This
>>> happens whenever I release the mouse button, wherever the pointer is
>>> located, as expected I suppose.
>>>
>>> For completeness, if I use the original "Target" example, and leave
>>> the "target button" packed directly into ".", and then drag from,
>>> say, the "Drop_Source_Files" button of the "Source" wish process, the
>>> <<Drop::DND_Files>> event does get recognized/triggered. Not so once
>>> the target button is packed one layer down through an intermediate
>>> frame widget.
>>>
>>> I hope this helps!
>>> Thanks so much for your time thinking on this.
>>> Sam
>>
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor