Xlabel Docking Thread last updated on 2008-01-06 09:13:35

Posted by member 134680 on 2008-01-06 01:42:44

is there a way to dock an xlabel to an xtaskbar? so if the xtaskbar lengthens, the label docked to it moves with it?
-Ash

Posted by member 32550 on 2008-01-06 03:59:52 link

That's only posssible, if you hook xTaskbar in another Label (Docked with xLabels internal docking feature).
Otherwise simply use the xTaskbarOnResize and xTaskbarOnMove events to move the label.

Posted by member 134680 on 2008-01-06 06:17:21 link

Yeah, if i hook the xtaskbar into another label, that means that I lose alpha transparency for both. I am using xtaskbaronadd to move the label by $xtaskbarbuttonmaxwidth$ but to do this i need to have the same maxwidth/minwidth... which I dont like. I want to be able to have variable sized taskbuttons and have a label move with the size of the taskbar.
Any ideas?

Posted by member 134680 on 2008-01-06 08:35:21 link

Ok, so I am trying something else in the mean time, but I cant even get this to work:
xTaskbarOnResize !execute [!parseevars !labelReposition taskspacer_ $xtaskbarcurrentwidth$ $taskspacer_y$ $taskspacer_width$ $taskspacer_height$]

someone tell me why?
-Ash

Posted by member 32550 on 2008-01-06 09:13:35 link

You need the special escape sequences for $ (at least for the exported changing values), because evars with $ are replaced by litestep during the initialization. :P
xTaskbarOnResize !parseevars !labelReposition taskspacer_ %#xtaskbarcurrentwidth%# $taskspacer_y$ $taskspacer_width$ $taskspacer_height$