Page 1 of 1

cmd.closeAll in custom bar vanished from v 9.3.361

Posted: Sat May 21, 2022 1:54 pm
by zarkogajic
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:

image.png

If I change my code back to use "cmd.closeAll" - no command is added at that position:

image1.png

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

Re: cmd.closeAll in custom bar vanished from v 9.3.361  SOLVED

Posted: Sat May 21, 2022 2:46 pm
by zarkogajic
Hi support.

Ah :( I was hiding that command using cmd.Hidden = true...

set topic to ignore and consider solved.

-žarko

cmd.closeAll in custom bar vanished from v 9.3.361

Posted: Mon May 23, 2022 8:03 pm
by Paul - Tracker Supp
:)