Posted by member 302889 on 2006-10-05 18:07:58
Hi all,
i'm trying to set up my theme so that it will show a couple of scroll buttons when the xTaskbar module has hit its limit for how many task buttons can be shown so that users can scroll left and right through the task buttons.
i have set the following in my xTaskbar setup...
xTaskbarButtonMaxCount $xTaskbarWidth/40$
so that when the max count of tasks to be shown is reached, there is a space at the end for the 2 scroll buttons.
i need to figure out a way of making sure that when the limit is reached and there are more tasks than xTaskbar can show, the scroll buttons will be shown and when the limit is reduced below the max tasks limit the scroll buttons are hidden.
i would like to use the exported var...
$xTaskbarCurrentButtonCount$
but can't figure out how to make sure that the rest of the code should be written to make it do what i want.
I could get it to check if the $xTaskbarCurrentButtonCount$ value is larger than the xTaskbarButtonMaxCount value but how would i do that? I could use the OnAdd event in xTaskbar but again i can't figure out how to put the three of these things together.
1 OnAdd
2 check if $xTaskbarCurrentButtonCount$ > xTaskbarButtonMaxCount
3 If true show scroll buttons
4 If false, do nothing
and i would also need
1 OnRemove
2 check if $xTaskbarCurrentButtonCount$
i'm trying to set up my theme so that it will show a couple of scroll buttons when the xTaskbar module has hit its limit for how many task buttons can be shown so that users can scroll left and right through the task buttons.
i have set the following in my xTaskbar setup...
xTaskbarButtonMaxCount $xTaskbarWidth/40$
so that when the max count of tasks to be shown is reached, there is a space at the end for the 2 scroll buttons.
i need to figure out a way of making sure that when the limit is reached and there are more tasks than xTaskbar can show, the scroll buttons will be shown and when the limit is reduced below the max tasks limit the scroll buttons are hidden.
i would like to use the exported var...
$xTaskbarCurrentButtonCount$
but can't figure out how to make sure that the rest of the code should be written to make it do what i want.
I could get it to check if the $xTaskbarCurrentButtonCount$ value is larger than the xTaskbarButtonMaxCount value but how would i do that? I could use the OnAdd event in xTaskbar but again i can't figure out how to put the three of these things together.
1 OnAdd
2 check if $xTaskbarCurrentButtonCount$ > xTaskbarButtonMaxCount
3 If true show scroll buttons
4 If false, do nothing
and i would also need
1 OnRemove
2 check if $xTaskbarCurrentButtonCount$