Anyway, I'm interested: Have you a use-case for other 'general-purpose' operations on a tab ?
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.
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.
[email protected] 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
On 10/10/2023 7:17 PM, Alexandru wrote:
[email protected] 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?
RegardsCheck out the readme.txt, only frame containers can be detached.
Alex
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 38:05:14 |
| Calls: | 12,109 |
| Files: | 15,006 |
| Messages: | 6,518,380 |