cmd.closeAll in custom bar vanished from v 9.3.361
Posted: Sat May 21, 2022 1:54 pm
Hi Support,
this will sound crazy, I know - but I must try...
i just noticed my custom bar is not displaying the "cmd.closeAll" command - even though it is added there.
I have not touched my code adding custom bars (and commands to it) - but from v361 it seems cmd.CloseAll simply refuses to get displayed.
if I change my code to include cmd.close - it does appear:
If I change my code back to use "cmd.closeAll" - no command is added at that position:
I can add any other command - but "cmd.closeAll" simply refuses to get itself displayed.
....
To test if it is there I'm using ('_cmdbar._mainbar' is my bar):
IUIX_CmdItem ci := pxvControl.Frame.View.CmdBar['_cmdbar._mainbar'].FindFirstItemByCmdName('cmd.closeAll')
And this gives me the command item.
Note: I am not applying any custom command handler to cmd.closeAll.
BUT for the above "ci" the IsVisible is false. I am not setting that. Show(true) does nothing.
So, finally: why is the cmd.closeAll not visible by default? And how can i make it visible?
-žarko
this will sound crazy, I know - but I must try...
i just noticed my custom bar is not displaying the "cmd.closeAll" command - even though it is added there.
I have not touched my code adding custom bars (and commands to it) - but from v361 it seems cmd.CloseAll simply refuses to get displayed.
if I change my code to include cmd.close - it does appear:
If I change my code back to use "cmd.closeAll" - no command is added at that position:
I can add any other command - but "cmd.closeAll" simply refuses to get itself displayed.
....
To test if it is there I'm using ('_cmdbar._mainbar' is my bar):
IUIX_CmdItem ci := pxvControl.Frame.View.CmdBar['_cmdbar._mainbar'].FindFirstItemByCmdName('cmd.closeAll')
And this gives me the command item.
Note: I am not applying any custom command handler to cmd.closeAll.
BUT for the above "ci" the IsVisible is false. I am not setting that. Show(true) does nothing.
So, finally: why is the cmd.closeAll not visible by default? And how can i make it visible?
-žarko