xTaskbar: A button to change the ordering at runtime. Thread last updated on 2007-03-15 10:25:40

Posted by member 256241 on 2007-03-14 22:22:15

Hello, I wish to have a button which can change the xTaskbar order between name and zorder. However, I couldn't find any bang to change the order.

Off hand the other way I could think of would be to toggle between 2 different taskbars but that would be a bit clumsy, and I don't know if having an extra taskbar would add unnecessary resource usage.

Can anyone give me any pointers?

Thanks for reading.

Posted by member 5575 on 2007-03-14 23:45:11 link

I have two taskbars in my current theme; the "usual" one for a normal number of tasks, and a "tiny" one for those occasions when I'm running software that opens lots of windows. I swap between them like so (triggered by exceeding the wrapcount):

tskBar1OnLineAdd !execute [!xTaskbarHide tskBar1][!xTaskbarShow tskBar2]
tskBar1OnLineRemove !execute [!xTaskbarHide tskBar2][!xTaskbarShow tskBar1]

You could also modify the taskbar sorting method on the fly (xtextedit?) and then reloading the taskbar.

Posted by member 212670 on 2007-03-14 23:58:13 link

Instead of reloading, couldn't you just use !xTaskbarRefresh?

Posted by member 5575 on 2007-03-15 10:25:40 link

I suppose - I haven't actually "tried" it, ya know? ;)