Posted by member 99 on 2003-11-15 00:51:44 link
Er, there's still a lot of reasons to use lsbox. It's much easier to use, it's actually designed to be used that way, and it can load older modules.
And really the only tricky bit with systray here is getting a notice when it hooks into lsbox. You can actually do that by understanding the syntax of box hooks and writing a mzscript bang to emulate it:
Then you just need to keep an absolute value for the desired size/position that you update in OnAdd/Del, I suppose you can probably figure that one out. ;)
And really the only tricky bit with systray here is getting a notice when it hooks into lsbox. You can actually do that by understanding the syntax of box hooks and writing a mzscript bang to emulate it:
*script bang !MySystrayHook
*script exec !SystrayHook %{\1} %{\2}
*script exec !SetBoxSizeFromStoredValue
*script ~bang
*ModuleHook !MySystrayHook
(will need adjusting if you use userdata)*script exec !SystrayHook %{\1} %{\2}
*script exec !SetBoxSizeFromStoredValue
*script ~bang
*ModuleHook !MySystrayHook
Then you just need to keep an absolute value for the desired size/position that you update in OnAdd/Del, I suppose you can probably figure that one out. ;)