Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

An elephant is a mouse with an operating system.


devel / comp.lang.tcl / Announce: znotebook 1.0

SubjectAuthor
* Announce: znotebook 1.0aldo.w....@gmail.com
+* Announce: znotebook 1.0Alex P
|`* Announce: znotebook 1.0aldo.w....@gmail.com
| `- Announce: znotebook 1.0Alex P
+- Announce: znotebook 1.0et99
`* Announce: znotebook 1.0Alexandru
 `* Announce: znotebook 1.0et99
  `- Announce: znotebook 1.0aldo.w....@gmail.com

1
Announce: znotebook 1.0

<156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:5916:0:b0:418:1bc2:102c with SMTP id 22-20020ac85916000000b004181bc2102cmr136823qty.6.1696199357854;
Sun, 01 Oct 2023 15:29:17 -0700 (PDT)
X-Received: by 2002:a05:6870:b7b1:b0:1d6:899d:6ed9 with SMTP id
ed49-20020a056870b7b100b001d6899d6ed9mr4230891oab.9.1696199357469; Sun, 01
Oct 2023 15:29:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!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: Sun, 1 Oct 2023 15:29:16 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=93.44.166.97; posting-account=CpQfUQoAAACWuSZdT5zfmIK7a0FfbQ0B
NNTP-Posting-Host: 93.44.166.97
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
Subject: Announce: znotebook 1.0
From: aldo.w.b...@gmail.com (aldo.w....@gmail.com)
Injection-Date: Sun, 01 Oct 2023 22:29:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1917
 by: aldo.w....@gmail.com - Sun, 1 Oct 2023 22:29 UTC

znotebook is an extension of the standard [ttk::notebook] widget.

See at https://wiki.tcl.tk/znotebook
==============================

All ttk::notebook's options and commands are supported.
znotebook comes with 5 new options for controlling its new interactive features.

* All znotebooks' tabs can be interactively rearranged (Click and drag).
If a tab is dragged outside the tabs-area, it becomes a "detached tab", i.e. a new toplevel window.
Detached.tabs have a small special button (rejoin-button) to bring it back to the notebook.

* All znotebook's tabs have a small [x] button for destroying the tab.
New options (-preclosetab and -postclosetab) can be used to control which tabs can be removed
and for doing some cleanup after the tab has been (interactively) removed.

* Znotebook provides a default [+] button (wholly programmable) for adding new tabs.

* Znotebook tabs can be renamed interactively.

Re: Announce: znotebook 1.0

<512201e1-3394-4121-8501-5832a8984621n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:8891:b0:76f:27af:2785 with SMTP id qk17-20020a05620a889100b0076f27af2785mr23075qkn.14.1696418973481;
Wed, 04 Oct 2023 04:29:33 -0700 (PDT)
X-Received: by 2002:a05:6830:164a:b0:6bf:192d:31dc with SMTP id
h10-20020a056830164a00b006bf192d31dcmr507729otr.2.1696418973263; Wed, 04 Oct
2023 04:29:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: Wed, 4 Oct 2023 04:29:32 -0700 (PDT)
In-Reply-To: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.249.17.55; posting-account=VcikiQoAAAB8qn43rZQzxdhWq0g1FGMy
NNTP-Posting-Host: 85.249.17.55
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <512201e1-3394-4121-8501-5832a8984621n@googlegroups.com>
Subject: Re: Announce: znotebook 1.0
From: aplsim...@gmail.com (Alex P)
Injection-Date: Wed, 04 Oct 2023 11:29:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1880
 by: Alex P - Wed, 4 Oct 2023 11:29 UTC

Hi Aldo,

I use something similar to your znotebook, I'd like to share my experience of dealing with such widget type.

Would you consider introducing a context menu for znotebook's tabs? At that customizable by the user? This feature greatly enhances a user's possibilities to handle znotebook's tabs.

I propose including "static" menu items (provided by you, like add/delete/rename/close...) and "dynamic" items (added optionally by a user), separated by a separator.

The context menu could make "+" button of znotebook unnecessary. Another reasons: "+" button looks alike to "x" and it takes a space of the tab bar.

Also, I'd noted that your wiki page's text is rendered as Tcl code, which is probably not that you had in mind.

Thank you for your work.

Re: Announce: znotebook 1.0

<cc3f44ea-46db-4b5e-aa74-98bb28a6d500n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:4d4d:0:b0:65a:f49b:3e46 with SMTP id m13-20020ad44d4d000000b0065af49b3e46mr80379qvm.5.1696536313741;
Thu, 05 Oct 2023 13:05:13 -0700 (PDT)
X-Received: by 2002:a05:6808:1a10:b0:3a4:4b42:5ce1 with SMTP id
bk16-20020a0568081a1000b003a44b425ce1mr1568080oib.3.1696536313504; Thu, 05
Oct 2023 13:05:13 -0700 (PDT)
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: Thu, 5 Oct 2023 13:05:13 -0700 (PDT)
In-Reply-To: <512201e1-3394-4121-8501-5832a8984621n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.44.166.97; posting-account=CpQfUQoAAACWuSZdT5zfmIK7a0FfbQ0B
NNTP-Posting-Host: 93.44.166.97
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com> <512201e1-3394-4121-8501-5832a8984621n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cc3f44ea-46db-4b5e-aa74-98bb28a6d500n@googlegroups.com>
Subject: Re: Announce: znotebook 1.0
From: aldo.w.b...@gmail.com (aldo.w....@gmail.com)
Injection-Date: Thu, 05 Oct 2023 20:05:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: aldo.w....@gmail.com - Thu, 5 Oct 2023 20:05 UTC

Hi Alex,
adding a context menu is easy

bind .mynb <ButtonPress-3> {
set tabIdx [%W index @%x,%y]
... with tabIdx you can get everything about the tab (text label, or the attached window...)
.. open a popup menu at %X %Y ...
}
or
bind Z.Tnotebook <ButtonPress-3> {...}
if you want a popup for all your znotebook instances..

but honestly, I don't see a reason for a popup menu ; operations like move, rename, delete can already be activated with a simple click ...

Anyway, I'm interested: Have you a use-case for other 'general-purpose' operations on a tab ?

About the add-button [+] you can hide it if you don't want it
.mynb configure -showaddbutton false
( and then if you want to remove the unoccupied space at left you should do a little trick with ttk::style ...)
... Uhm .. this may be a small enhancement .. when the add-button is hidden the unoccupied space at left should be automatically resized..

Re: Announce: znotebook 1.0

<0e82231f-2fee-4c73-b788-e6566922fc61n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:4881:b0:76f:1b38:e73d with SMTP id ea1-20020a05620a488100b0076f1b38e73dmr130398qkb.10.1696658546983;
Fri, 06 Oct 2023 23:02:26 -0700 (PDT)
X-Received: by 2002:a05:6808:16a6:b0:3a7:b15d:b59d with SMTP id
bb38-20020a05680816a600b003a7b15db59dmr5345707oib.11.1696658546815; Fri, 06
Oct 2023 23:02:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!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: Fri, 6 Oct 2023 23:02:26 -0700 (PDT)
In-Reply-To: <cc3f44ea-46db-4b5e-aa74-98bb28a6d500n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.249.16.165; posting-account=VcikiQoAAAB8qn43rZQzxdhWq0g1FGMy
NNTP-Posting-Host: 85.249.16.165
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
<512201e1-3394-4121-8501-5832a8984621n@googlegroups.com> <cc3f44ea-46db-4b5e-aa74-98bb28a6d500n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0e82231f-2fee-4c73-b788-e6566922fc61n@googlegroups.com>
Subject: Re: Announce: znotebook 1.0
From: aplsim...@gmail.com (Alex P)
Injection-Date: Sat, 07 Oct 2023 06:02:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3043
 by: Alex P - Sat, 7 Oct 2023 06:02 UTC

Hi Aldo,

>> Anyway, I'm interested: Have you a use-case for other 'general-purpose' operations on a tab ?

These operations are directly offered by the znotebook's dynamic nature, here few to list:

- "Open tab in new window" / "Detach the tab"

- "Close all tabs" (leaving only "empty/default" one)

- "Close all detached tabs"

As for the user's operations, these may be:

- "Lock / Unlock" (means 'Not closed / Not modified' etc.)

- "Sort" (by names / dates etc. depending on the app's requirements)

- "Mark / Unmark" (these may replace "X" button with an icon when a tab not mouse hovered)

I don't know details of znotebook, but it would be nice to have a possibility to mark the tabs' labels not only with icons but also with -fg / -bg.

Also, I'd consider some other possibilities:

- to have configure/cget methods for tabs

- to have IDs for tabs (as labels cannot identify them, esp. when they are duplicate)

- to have an option "to allow duplicates or not" (it's can be rather fussy for a user to distinguish the duplicates) or an option "to supply duplicates with #count"

- to have an option "cut the long labels by a maximum length" (as the znotebook tabs are dynamic, they can generally have long labels, so to have "Label so long..." would be better than "Label so long, so long ... so long"

- to have tooltips, esp. for the previous "long length" option

Well, it seems like znotebook is at the very beginning of development, so at your creativity it will acquire a lot of new facilities. As znotebook looks pretty promising. And it's all absolutely in your hands to enhance it.

It's clear that the more Tcl/Tk high quality widgets exist the better. The last Tcl activities for documentation/manuals and package/app management are only confirming this.

Re: Announce: znotebook 1.0

<ufv6qd$3b1pe$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et9...@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: Announce: znotebook 1.0
Date: Sun, 8 Oct 2023 14:26:37 -0700
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <ufv6qd$3b1pe$1@dont-email.me>
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 8 Oct 2023 21:26:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c5fb70941c51928e5258b6a61f80f2a0";
logging-data="3508014"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fEDZd7Mb20YLiDtAGeIrA"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:IHy/1DibYrDHZyQKBsO93GbgHn4=
In-Reply-To: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
Content-Language: en-US
 by: et99 - Sun, 8 Oct 2023 21:26 UTC

On 10/1/2023 3:29 PM, aldo.w....@gmail.com wrote:
> znotebook is an extension of the standard [ttk::notebook] widget.
>
> See at https://wiki.tcl.tk/znotebook
> ==============================
>
> All ttk::notebook's options and commands are supported.
> znotebook comes with 5 new options for controlling its new interactive features.
>
> * All znotebooks' tabs can be interactively rearranged (Click and drag).
> If a tab is dragged outside the tabs-area, it becomes a "detached tab", i.e. a new toplevel window.
> Detached.tabs have a small special button (rejoin-button) to bring it back to the notebook.
>
> * All znotebook's tabs have a small [x] button for destroying the tab.
> New options (-preclosetab and -postclosetab) can be used to control which tabs can be removed
> and for doing some cleanup after the tab has been (interactively) removed.
>
> * Znotebook provides a default [+] button (wholly programmable) for adding new tabs.
>
> * Znotebook tabs can be renamed interactively.

Hi Aldo:

Nice package. znotebook provides for tcl/tk a great megawidget without all the work of building one.

I think Alex's suggestion of context menus could be included in znotebook to make it even easier than doing the binding code yourself. For example, suppose we had:

..nb add [frame .f1 -bg red] -text RED -menu \
[list {open... openproc} {save... saveproc} separator {settings... settingsproc -font xyz}]

Where znotebook could build a context popup menu using the right mouse button and having 3 menu items with a separator after the first 2. The user could still do their own binding for more complex menus, but for a quicky, a -menu option would be handy.

You mentioned in the readme that you might include scrolling. That is why I still use the BWidgets NoteBook. However, it renders tiny difficult to use arrows on either end of the tabs container (a canvas).

So I bind to the mousewheel (it's buttons 4,5 on linux) to activate tabs to the left or right and calling the "see" method which then scrolls if necessary to make the tab visible. Scrolling also has the advantage that it doesn't squeeze out characters from the tab labels as znotebook currently does when adding more tabs (at least in the demo).

If you do implement scrolling, you might consider providing mousewheel support. It works quite nicely when a mousewheel has detents with discrete steps.

I like what you've created. Please consider the above suggestions. You can see a demo of scrolling and context menus done in Bwidgets in https://wiki.tcl-lang.org/page/notebook (the last code block on that page which can be pasted into a windows console - it does require BWidget 1.9.13 or later).

Re: Announce: znotebook 1.0

<adea6539-af2a-4bc2-9c05-15d0a26f912bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a0c:f6cc:0:b0:66c:fef0:ce80 with SMTP id d12-20020a0cf6cc000000b0066cfef0ce80mr41475qvo.4.1696990648610; Tue, 10 Oct 2023 19:17:28 -0700 (PDT)
X-Received: by 2002:a05:6808:152a:b0:3ad:f860:b315 with SMTP id u42-20020a056808152a00b003adf860b315mr10419638oiw.2.1696990648386; Tue, 10 Oct 2023 19:17:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.18.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 10 Oct 2023 19:17:27 -0700 (PDT)
In-Reply-To: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.159; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.159
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <adea6539-af2a-4bc2-9c05-15d0a26f912bn@googlegroups.com>
Subject: Re: Announce: znotebook 1.0
From: alexandr...@meshparts.de (Alexandru)
Injection-Date: Wed, 11 Oct 2023 02:17:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 30
 by: Alexandru - Wed, 11 Oct 2023 02:17 UTC

aldo.w....@gmail.com schrieb am Montag, 2. Oktober 2023 um 00:29:20 UTC+2:
> znotebook is an extension of the standard [ttk::notebook] widget.
>
> See at https://wiki.tcl.tk/znotebook
> ==============================
>
> All ttk::notebook's options and commands are supported.
> znotebook comes with 5 new options for controlling its new interactive features.
>
> * All znotebooks' tabs can be interactively rearranged (Click and drag).
> If a tab is dragged outside the tabs-area, it becomes a "detached tab", i.e. a new toplevel window.
> Detached.tabs have a small special button (rejoin-button) to bring it back to the notebook.
>
> * All znotebook's tabs have a small [x] button for destroying the tab.
> New options (-preclosetab and -postclosetab) can be used to control which tabs can be removed
> and for doing some cleanup after the tab has been (interactively) removed.
>
> * Znotebook provides a default [+] button (wholly programmable) for adding new tabs.
>
> * Znotebook tabs can be renamed interactively.

Are there any restrictions to your package?
I tested it within my software and it's not working.
The tabs cannot be detached.
I do have some callbacks defined:
bind $notebook <<NotebookTabChanged>> {after idle TabChanged}
bind $notebook <<CloseTabRequested>> [list TabCloseCallback $notebook %d]
Can this cause the issue?

Regards
Alex

Re: Announce: znotebook 1.0

<ug6o8r$1vc6i$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et9...@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: Announce: znotebook 1.0
Date: Wed, 11 Oct 2023 11:07:23 -0700
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <ug6o8r$1vc6i$1@dont-email.me>
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
<adea6539-af2a-4bc2-9c05-15d0a26f912bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Oct 2023 18:07:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8f84c7709899ce3943bb0935de299fc9";
logging-data="2076882"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AnDoCTbZJJSA7NJfh5a/T"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:+1bw4cTLuB0uproJQy1eeyejqcA=
In-Reply-To: <adea6539-af2a-4bc2-9c05-15d0a26f912bn@googlegroups.com>
Content-Language: en-US
 by: et99 - Wed, 11 Oct 2023 18:07 UTC

On 10/10/2023 7:17 PM, Alexandru wrote:
> aldo.w....@gmail.com schrieb am Montag, 2. Oktober 2023 um 00:29:20 UTC+2:
>> znotebook is an extension of the standard [ttk::notebook] widget.
>>
>> See at https://wiki.tcl.tk/znotebook
>> ==============================
>>
>> All ttk::notebook's options and commands are supported.
>> znotebook comes with 5 new options for controlling its new interactive features.
>>
>> * All znotebooks' tabs can be interactively rearranged (Click and drag).
>> If a tab is dragged outside the tabs-area, it becomes a "detached tab", i.e. a new toplevel window.
>> Detached.tabs have a small special button (rejoin-button) to bring it back to the notebook.
>>
>> * All znotebook's tabs have a small [x] button for destroying the tab.
>> New options (-preclosetab and -postclosetab) can be used to control which tabs can be removed
>> and for doing some cleanup after the tab has been (interactively) removed.
>>
>> * Znotebook provides a default [+] button (wholly programmable) for adding new tabs.
>>
>> * Znotebook tabs can be renamed interactively.
>
> Are there any restrictions to your package?
> I tested it within my software and it's not working.
> The tabs cannot be detached.
> I do have some callbacks defined:
> bind $notebook <<NotebookTabChanged>> {after idle TabChanged}
> bind $notebook <<CloseTabRequested>> [list TabCloseCallback $notebook %d]
> Can this cause the issue?
>
> Regards
> Alex

Check out the readme.txt, only frame containers can be detached.

Re: Announce: znotebook 1.0

<af77723f-1a6e-46f0-ad39-8c0568f6b7c7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:18f3:b0:66d:a3e:673a with SMTP id ep19-20020a05621418f300b0066d0a3e673amr65542qvb.7.1697067594040;
Wed, 11 Oct 2023 16:39:54 -0700 (PDT)
X-Received: by 2002:a05:6870:5a86:b0:1e9:9e04:9544 with SMTP id
dt6-20020a0568705a8600b001e99e049544mr724255oab.0.1697067593773; Wed, 11 Oct
2023 16:39:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.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, 11 Oct 2023 16:39:53 -0700 (PDT)
In-Reply-To: <ug6o8r$1vc6i$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=93.44.166.97; posting-account=CpQfUQoAAACWuSZdT5zfmIK7a0FfbQ0B
NNTP-Posting-Host: 93.44.166.97
References: <156826d7-a03b-44f1-92be-0134ef06dd20n@googlegroups.com>
<adea6539-af2a-4bc2-9c05-15d0a26f912bn@googlegroups.com> <ug6o8r$1vc6i$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <af77723f-1a6e-46f0-ad39-8c0568f6b7c7n@googlegroups.com>
Subject: Re: Announce: znotebook 1.0
From: aldo.w.b...@gmail.com (aldo.w....@gmail.com)
Injection-Date: Wed, 11 Oct 2023 23:39:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3746
 by: aldo.w....@gmail.com - Wed, 11 Oct 2023 23:39 UTC

Il giorno mercoledì 11 ottobre 2023 alle 20:07:29 UTC+2 et99 ha scritto:
> On 10/10/2023 7:17 PM, Alexandru wrote:
> > aldo.w....@gmail.com schrieb am Montag, 2. Oktober 2023 um 00:29:20 UTC+2:
> >> znotebook is an extension of the standard [ttk::notebook] widget.
> >>
> >> See at https://wiki.tcl.tk/znotebook
> >> ==============================
> >>
> >> All ttk::notebook's options and commands are supported.
> >> znotebook comes with 5 new options for controlling its new interactive features.
> >>
> >> * All znotebooks' tabs can be interactively rearranged (Click and drag).
> >> If a tab is dragged outside the tabs-area, it becomes a "detached tab", i.e. a new toplevel window.
> >> Detached.tabs have a small special button (rejoin-button) to bring it back to the notebook.
> >>
> >> * All znotebook's tabs have a small [x] button for destroying the tab.
> >> New options (-preclosetab and -postclosetab) can be used to control which tabs can be removed
> >> and for doing some cleanup after the tab has been (interactively) removed.
> >>
> >> * Znotebook provides a default [+] button (wholly programmable) for adding new tabs.
> >>
> >> * Znotebook tabs can be renamed interactively.
> >
> > Are there any restrictions to your package?
> > I tested it within my software and it's not working.
> > The tabs cannot be detached.
> > I do have some callbacks defined:
> > bind $notebook <<NotebookTabChanged>> {after idle TabChanged}
> > bind $notebook <<CloseTabRequested>> [list TabCloseCallback $notebook %d]
> > Can this cause the issue?
> >
> > Regards
> > Alex
> Check out the readme.txt, only frame containers can be detached.

@Alexandru: I hope the hint of et99 could have solved your problem. If not, send me a little, minimal script.

I wish to thank everybody for all the suggestions for the next improvements.. They are a lot !
So I should decide which of these requests are useful and general-purpose and which requests are against znotebook's design principles.
Soon I will open a new page on wiki.tcl.tk collecting some tweaks and tricks, the current limitations, as well as some of your improvement proposal, I'd like to discuss together.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor