Home » U++ Library support » TabCtrl » TabCtrl CancelClose No longer work (as intended) (Some recent changes (could be as old as a few years) has broken its intention)
Re: TabCtrl CancelClose No longer work (as intended) [message #58190 is a reply to message #58090] |
Fri, 18 March 2022 11:54   |
 |
mirek
Messages: 14258 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Sat, 12 February 2022 17:13Hi Mirek,
I stumbled over the changes in TabBar (I'm using it in my UppCad) and I've seen that the bug exists also in CancelCloseSome Gate, which doesn't work anymore as intended, and it's useless like it is now.
I guess it should be possible to add a "ConfirmCloseSome" gate, as for ConfirmClose, and remove the CancelCloseSome one.
The usage should be like ConfirmClose, but taking a number of tabs and not a single one.
Ciao
Massimo
EDIT: I wanted to fix it by myself, but I see that there's a complete mixing of old and new behaviour, with mistakes in many places.
Fixing it will be difficult... by now I'll take the old TabBar code from around 2016, which worked well.
Well, frankly, maintaining TabBar is a punishment for me... That said, I believe current behaviout is that
"CancelClose*" basically enables/disables cancel action and therefore should not contain any Prompts or anything. It is e.g. used for enabling/disabling close button.
"ConfirmClose" is called immediately before actually removing the tab and therefore can do Prompt.
Is this inline with your expectations?
Then the purpose of "ConfirmCloseAll" should be to e.g. prompt the operation for the whole group, right?
|
|
|
 |
|
TabCtrl CancelClose No longer work (as intended)
By: Lance on Sun, 10 January 2021 19:54
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: Lance on Sun, 10 January 2021 19:56
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: Klugier on Sun, 10 January 2021 21:51
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: Lance on Mon, 11 January 2021 00:43
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mirek on Fri, 22 January 2021 13:09
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: Lance on Fri, 22 January 2021 22:53
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mdelfede on Sat, 12 February 2022 17:13
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mirek on Fri, 18 March 2022 11:54
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mirek on Fri, 18 March 2022 11:59
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mirek on Sun, 16 June 2024 14:10
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: mirek on Sat, 14 December 2024 17:23
|
 |
|
Re: TabCtrl CancelClose No longer work (as intended)
By: Lance on Sat, 14 December 2024 21:24
|
Goto Forum:
Current Time: Wed May 14 14:46:58 CEST 2025
Total time taken to generate the page: 0.01189 seconds
|