Latest Forum Posts
Niza on 07 Nov : 10:15
Don't you need to load the xDe[more]

Wolzly on 07 Nov : 06:09
Here's my theme.rc to see if[more]

Backslash on 07 Nov : 03:25
bump?

and i[more]

photofx on 06 Nov : 19:56
no, none of the labels are a[more]

dac on 06 Nov : 14:05
I seem to have the same proble[more]

Backend
Our headlines can be syndicated by using either our rss or text feeds.
news.xml - news.txt





 
The Litestep Site for News, Modules, Sources, and all the other stuff around Litestep.

 
 
   
LS-Universe.info -> Forums -> Modules -> !xTaskbarRefresh bug? Or am I abusing the module?
!xTaskbarRefresh bug? Or am I abusing the module?
<< Previous thread | Next thread >>  
Author Post
Wolzly
Thread: !xTaskbarRefresh bug? Or am I abusing the module?
             Wed Oct 13 2004, 09:09AM

Registered Member #22
Joined Thu May 06 2004, 08:32AM
posts 63

*script bang !SwitchTaskMode

*script gotoif ("%{TaskMode}" = "min") MaxMode

*script gotoif ("%{TaskMode}" = "max") MinMode

*script label MaxMode
*script exec !xTaskbarRepositionBy xTaskbar 0 0 %{TaskSizeDif} 0
*script exec !xTaskbarRefresh xTaskbar ShowText True
; *script exec !xTaskbarRefresh xTaskbar MaxButtonWidth 80
; *script exec !xTaskbarRefresh xTaskbar OnAdd !xTaskbarRepositionBy 0 0 83 0
; *script exec !xTaskbarRefresh xTaskbar OnRemove !xTaskbarRepositionBy 0 0 -83 0
*script exec !varMul TaskSizeDif -1
*script exec !varSet TaskMode "max"
*script exit

*script label MinMode
*script exec !xTaskbarRepositionBy xTaskbar 0 0 %{TaskSizeDif} 0
*script exec !xTaskbarRefresh xTaskbar ShowText False
; *script exec !xTaskbarRefresh xTaskbar MaxButtonWidth 23
; *script exec !xTaskbarRefresh xTaskbar OnAdd !xTaskbarRepositionBy 0 0 26 0
; *script exec !xTaskbarRefresh xTaskbar OnRemove !xTaskbarRepositionBy 0 0 -26 0
*script exec !varMul TaskSizeDif -1
*script exec !varSet TaskMode "min"
*script exit


This is my bang for switching between an icon-only taskbar, and an icon-with-text taskbar.

The !xTaskbarReposition works great, but all of the !xTaskbarRefresh lines don't do diddly-squat.

Actually it's worse than not doing anything. When grouping is enabled, it creates another item for every group in my taskbar, so that when you click on a tile, it suddenly has a context-menu. And if you execute the bang again, there's another item in the menu.

I hope I'm speaking (er, typing) coherantly.
Back to top
Wolzly
Thread: !xTaskbarRefresh bug? Or am I abusing the module?
             Wed Oct 13 2004, 01:32PM

Registered Member #22
Joined: Thu May 06 2004, 08:32AM
posts 63
Wow... you know what, I'm getting really tired of posting bugs that don't exist.

My mistake.

*script exec !xTaskbarRefresh xTaskbar ShowText True

should have been

*script exec !xTaskbarRefresh xTaskbarShowText True

or even

*script exec !xTaskbarRefresh xTaskbar xTaskbarShowText True

...

for some reason I assumed you only needed to put the option being changed, and not the xTaskbar prefix. I really need to read the docs better... or go to bed earlier
Back to top
Andymon
Thread: !xTaskbarRefresh bug? Or am I abusing the module?
             Wed Oct 13 2004, 02:00PM

Joined: Thu Apr 29 2004, 08:25PM
posts 179
Good you found the main problem yourself

Ok, some basics about !refresh:
This always does a complete Refresh of the module, so if you want to change MANY settings at once you should do the following (assumed that you use xLabel).
Use
!setevar xTaskbarShowText True
instead of
!xTaskbarRefresh xTaskbarShowText True
and so on
till the last !xTaskbarrefresh line ("!xTaskbarRefresh xTaskbarOnRemove !xTaskbarRepositionBy 0 0 -83 0"), this one leave unchanged.
This would update all settings, but only refreshing the Taskbar with the last setting.
Another method would be to use a complete different taskbar (Multiple Taskbars) and simply do a Show/Hide.
Back to top
Wolzly
Thread: !xTaskbarRefresh bug? Or am I abusing the module?
             Wed Oct 13 2004, 03:44PM

Registered Member #22
Joined: Thu May 06 2004, 08:32AM
posts 63
Ah very nifty, thanks a bunch

Can I assume that !xTaskbarRepositionBy does not do a complete refresh of the modules?
[ Edited Wed Oct 13 2004, 03:47PM ]
Back to top

Quick Reply:

 

Jump:     Back to top



Chatbox



GothsSecret
   on 02 Nov : 19:54
hehe doin my best


Wolzly
   on 01 Nov : 18:54
ROFL!

You guys never fail to entertain


GothsSecret
   on 01 Nov : 15:47
oh.. sorry to those 2 online ppl, Just fucked up the site for a short mement


Backslash
   on 01 Nov : 06:00
xPopup 1.0.8 ROCKS!


Juan Guillermo
   on 31 Oct : 23:46
Thanks a lot for your GREAT work guis , xmodules are transforming the Litestep shell in a much more fancy/varsatile thing.


AngelKnight
   on 30 Oct : 16:44
^_^


Backslash
   on 29 Oct : 00:54
>Andymon - woot!
>GothsSecret - If necessary, you could probably reduce the gaps between the center and the sides, for those with lower resolutions (not me, I'm at 1280x1024!).


Andymon
   on 28 Oct : 13:02
Just wanna tell:
HighColor(16bit) is coming for all xModules in the near future, finally.


GothsSecret
   on 28 Oct : 11:47
hehe, now I like it too, I wassn't sure if it'll look good if we put a second menu right handed but now it's ok, so no need for a complete change anymore


BobixLeSage
   on 28 Oct : 11:34
Hello everyone!
This layout is just fine, don't get why you want to change it?!









© by LS-Universe.info