Posted by member 1783 on 2003-05-17 09:40:23 link

but the systrayCurrentWidth still stays 0 :(
i initialized it right after loading the module but it doesn't change. i want the systray to be in a box and i want the box to resize when the systray resizes.
STEP.RC

LoadModule "$LiteStepDir$systray2.dll"
SystrayCurrentWidth 0
LoadModule "$ModulesDir$lsbox.dll"

*LsBoxCreate "$ConfigDir$systray.box"

SystrayX 1
SystrayY 1
SystrayBGColor 000000
SystrayAutoSize true
SystrayOnAdd !LsBoxResize Systray $SystrayCurrentWidth+2$ 20
SystrayOnDel !LsBoxResize Systray $SystrayCurrentWidth+2$ 20

SYSTRAY.BOX

LsBoxName Systray
LsBoxX -120
LsBoxY -21
LsBoxWidth 20
LsBoxHeight 20
LsBoxBackGround box_bg.png
LsBoxBackgroundOffs 1 1 1 1

*ModuleHook !systrayHook