Show a dialog in a separate taskbar group

Hi. I used to know this one, mostly by trial and error. But apparently I have forgotten it. :slightly_frowning_face:

In which cases, when creating a dialog, does it show up in its own taskbar group? And in which cases does it not?
I cannot find any info about this in the documentation.

And in one specific case, I cannot figure out why one dialog shows separately and another one does not. As far as I can tell, both dialogs are created using the same parameters.

Does your script call SetTaskbarGroup on any of the dialogs?

No...
Adding that to the one that does not show in its own group does not seem to have any effect.

(I tried that before posting)

Also, I noticed that this particular dialog does not show up in Alt + Tab or in the taskbar preview.

I found the cause. When a dialog has no Minimize/Maximize buttons enabled in its config, this happens.

Is that intended? Maybe that should be added to the docs for future users. (or even for myself, since I will most likely forget it again :melting_face:)

I can’t think why that would put windows into a different group.

Are you using the standard taskbar or a replacement?

Yes.

To clarify, when a dialog does not have a minimize and maximize button, and has a parent window, it does not appear in any taskbar group.

The question was about what could influence this situation, and how to make it appear listed in a separate group, and I've already provided the workaround. Whether this happens to others or if it's normal, is something I don't know.

Oh, I think that is normal Windows taskbar behavior. Activating the parent window should also show the child dialog.

I thought you were saying that some dialogs appeared in a separate taskbar group to others, but I think I misunderstood.

It should depend on the type of dialog/window.
A modal window :

creates a mode that disables user interaction with the main window.

In that case a separate taskbar instance is not needed.
Example: File Open dialog.

If interaction with the main window is still allowed when the dialog is opened, the dialog window should have an icon on the taskbar.

(if that is what you meant; not entirely sure)

Yes, but disabling the parent window does not make the window get its own space in the taskbar. Maybe there are other parameters that can affect this, but at least the min/max buttons are one of them (and disabling the parent is not). But it is better to leave it that way IMHO, now we know :slightly_smiling_face:.