TCL/TK : use of the command *setactivepage with HW2024.1

Dear All,
One some of my macro I was using the command
*setactivepage
In particular with exit button as:
button $f6.bexit -text " EXIT " \ -anchor w -borderwidth 5 -highlightcolor green -font [AppFont 8] \ -command {*setactivepage 8; destroy $base} -bg blue - foreground white -width 15 -height 1
But I notice that, if I apply it with 2024.1, I got error.
Can someone help me in a re-definition of the command, please?
Thanks a lot,
Fabio
Answers
-
Hello Fabio,
Tell me if I'm wrong, but your request is related to the Utility browser right?
If so, indeed the legacy Process Manager and the Utility Menu have been removed together with the corresponding API in v2024. Instead, you can use custom ribbon and extension.
Please take a look at these useful ressources:Regards,
Fred.0 -
Dear Fred,
it's not my case.
I already have the dropdown and the Robbon button but, in this case, when I run the macro I have a specific panel opend, see the attached Panle1.
and the code I need to update is to activate the button "Exit" that, at the moment, use the following command:
button $f4.bexit -text " EXIT " \
-anchor w -borderwidth 5 -highlightcolor green -font [AppFont 9] \
-command {*setactivepage 9; destroy $base} -bg blue -foreground white -width 15 -height 1
Here you can see the usage of *setactivepage that I would like to modify.
Best regards,
Fabio
0 -
Hello Fabio,
That's great that you're already using custom ribbon. But the problem is the command used when you hit the 'Exit' button. What is the usually expected result?
According to your command line, *setactivepage() command sets the current displayed page number of the Utility menu. And this command and the Utility browser is deprecated.
If you just need to close the custom dialog, you can try to remove this *setactivepage 9 and keep only the destroy $base ⇒ -command {destroy $base}Regards,
Fred.0