Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

%DCL-MEM-BAD, bad memory VMS-F-PDGERS, pudding between the ears


devel / comp.lang.tcl / Tablelist dragsource

SubjectAuthor
* Tablelist dragsourceMartyn Smith
`* Re: Tablelist dragsourcenemethi
 `- Re: Tablelist dragsourceMartyn Smith

1
Tablelist dragsource

<86a94513-87e9-4713-b36d-80ddb6b74449n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1a11:b0:3f6:a807:c9a1 with SMTP id f17-20020a05622a1a1100b003f6a807c9a1mr5522642qtb.8.1687264854775;
Tue, 20 Jun 2023 05:40:54 -0700 (PDT)
X-Received: by 2002:ad4:4f0f:0:b0:62f:f1b0:9455 with SMTP id
fb15-20020ad44f0f000000b0062ff1b09455mr2320382qvb.2.1687264854551; Tue, 20
Jun 2023 05:40:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.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, 20 Jun 2023 05:40:54 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=185.77.183.78; posting-account=mLIBBgoAAAB4JewF9c77L9_3jmlBPOq9
NNTP-Posting-Host: 185.77.183.78
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <86a94513-87e9-4713-b36d-80ddb6b74449n@googlegroups.com>
Subject: Tablelist dragsource
From: martyn.a.smith@gmail.com (Martyn Smith)
Injection-Date: Tue, 20 Jun 2023 12:40:54 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1796
 by: Martyn Smith - Tue, 20 Jun 2023 12:40 UTC

I have added a dragsource to my tablelist (6.16 and 6.21) to be able to drag the selection elsewhere in my application.
But now I can no longer drag out a selection of multiple rows.
The documentation says that setting dragsource to true should reset the selection on mouse up (DRAG SOURCE SUPPORT FOR GLOBAL DRAG & DROP)
The following code shows the problem
tablelist::tablelist .t -width 40 -stretch all -columns {0 Name left 0 Description left} -selectmode extended -customdragsource true -activestyle none
pack .t -fill both -expand y
.t insert end [list Part1 "This is part 1"]
.t insert end [list Part2 "This is part 2"]
.t insert end [list Part3 "This is part 3"]
.t insert end [list Part4 "This is part 4"]
Any mouse press (left) just moves the selection.
Is there a missing option ?
Martyn

Re: Tablelist dragsource

<u6smh2$1gv19$1@tota-refugium.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: csaba.nemethi@t-online.de (nemethi)
Newsgroups: comp.lang.tcl
Subject: Re: Tablelist dragsource
Date: Tue, 20 Jun 2023 19:09:54 +0200
Message-ID: <u6smh2$1gv19$1@tota-refugium.de>
References: <86a94513-87e9-4713-b36d-80ddb6b74449n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Jun 2023 17:09:54 -0000 (UTC)
Injection-Info: tota-refugium.de;
logging-data="1604649"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:022QRPZ9Cfkalzyyk/5wJYwTLmc=
Content-Language: en-US
X-User-ID: eJwNyMERwDAIA7CVoLXhGIdAvP8IrZ7iGx6TCAYoqm7XYzD4ApNNO3+m7hDFhctarqObWav9ABgTEZ8=
In-Reply-To: <86a94513-87e9-4713-b36d-80ddb6b74449n@googlegroups.com>
 by: nemethi - Tue, 20 Jun 2023 17:09 UTC

Am 20.06.23 um 14:40 schrieb Martyn Smith:
> I have added a dragsource to my tablelist (6.16 and 6.21) to be able to drag the selection elsewhere in my application.
> But now I can no longer drag out a selection of multiple rows.
> The documentation says that setting dragsource to true should reset the selection on mouse up (DRAG SOURCE SUPPORT FOR GLOBAL DRAG & DROP)
> The following code shows the problem
> tablelist::tablelist .t -width 40 -stretch all -columns {0 Name left 0 Description left} -selectmode extended -customdragsource true -activestyle none
> pack .t -fill both -expand y
> .t insert end [list Part1 "This is part 1"]
> .t insert end [list Part2 "This is part 2"]
> .t insert end [list Part3 "This is part 3"]
> .t insert end [list Part4 "This is part 4"]
> Any mouse press (left) just moves the selection.
> Is there a missing option ?
> Martyn

This is the expected and documented behavior, similar to what you can
see, e.g, in a file manager. To extend the selection, you will have to
press Shift or Control before clicking.

--
Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

Re: Tablelist dragsource

<69ead815-f357-47d2-855b-53dfb360db00n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:1762:b0:62d:e0c5:633a with SMTP id et2-20020a056214176200b0062de0c5633amr2580776qvb.4.1687349933681;
Wed, 21 Jun 2023 05:18:53 -0700 (PDT)
X-Received: by 2002:a05:622a:1981:b0:3ff:2292:1fd5 with SMTP id
u1-20020a05622a198100b003ff22921fd5mr3255746qtc.7.1687349933373; Wed, 21 Jun
2023 05:18:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: Wed, 21 Jun 2023 05:18:53 -0700 (PDT)
In-Reply-To: <u6smh2$1gv19$1@tota-refugium.de>
Injection-Info: google-groups.googlegroups.com; posting-host=185.77.183.78; posting-account=mLIBBgoAAAB4JewF9c77L9_3jmlBPOq9
NNTP-Posting-Host: 185.77.183.78
References: <86a94513-87e9-4713-b36d-80ddb6b74449n@googlegroups.com> <u6smh2$1gv19$1@tota-refugium.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <69ead815-f357-47d2-855b-53dfb360db00n@googlegroups.com>
Subject: Re: Tablelist dragsource
From: martyn.a.smith@gmail.com (Martyn Smith)
Injection-Date: Wed, 21 Jun 2023 12:18:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2692
 by: Martyn Smith - Wed, 21 Jun 2023 12:18 UTC

Le mardi 20 juin 2023 à 19:09:59 UTC+2, nemethi a écrit :
> Am 20.06.23 um 14:40 schrieb Martyn Smith:
> > I have added a dragsource to my tablelist (6.16 and 6.21) to be able to drag the selection elsewhere in my application.
> > But now I can no longer drag out a selection of multiple rows.
> > The documentation says that setting dragsource to true should reset the selection on mouse up (DRAG SOURCE SUPPORT FOR GLOBAL DRAG & DROP)
> > The following code shows the problem
> > tablelist::tablelist .t -width 40 -stretch all -columns {0 Name left 0 Description left} -selectmode extended -customdragsource true -activestyle none
> > pack .t -fill both -expand y
> > .t insert end [list Part1 "This is part 1"]
> > .t insert end [list Part2 "This is part 2"]
> > .t insert end [list Part3 "This is part 3"]
> > .t insert end [list Part4 "This is part 4"]
> > Any mouse press (left) just moves the selection.
> > Is there a missing option ?
> > Martyn
> This is the expected and documented behavior, similar to what you can
> see, e.g, in a file manager. To extend the selection, you will have to
> press Shift or Control before clicking.
>
> --
> Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de
OK, I reread (again) the section and understand better . I was mixing in with the drag select in explorer which superposes a drag rectangle over the entries.
Thanks for the quick reply

Martyn


devel / comp.lang.tcl / Tablelist dragsource

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor