I thought I got it all working...not quite (LsBox and left-click) Thread last updated on 2003-11-01 23:37:22

Posted by member 12025 on 2003-11-01 21:10:23

the RC file for the theme has all the settings and loads both boxes.
vwmleft.box
LsBoxName vwmleft
LsBoxX 285
LsBoxY 142
LsBoxWidth $vwmboxw$
LsBoxHeight $vwmboxh$
LsBoxDragRect 0 0 7 1000
LsBoxBackground left\gripper$color$.png
LsBoxBackgroundOffs 8 4 8 4
LsBoxZOrder STAYONTOP
LSBoxRememberPosition
LsBoxEnableDocking
LsBoxAlphaTransparency $vwmta$ $vwmti$

LsBoxOnLeftClick "!vwmToggleBox"
LsBoxOnRightClick "!popup_vwm"

*ModuleHook !VWMLoadBoxHook

vwmleftc.box
LsBoxName vwmleftc
LsBoxX 285
LsBoxY 142
LsBoxWidth 8
LsBoxHeight $vwmboxh$
LsBoxBackground left\gripper$color$.png
LsBoxBackgroundOffs 8 4 0 4
LsBoxZOrder STAYONTOP
LSBoxRememberPosition
LsBoxEnableDocking
LsBoxAlphaTransparency $vwmta$ $vwmti$
LsBoxDockTo vwmleft vwmleftc
LsBoxStartHidden

LsBoxOnLeftClick "!vwmToggleBox"
LsBoxOnRightClick "!popup_vwm"

in script.rc
*script bang !vwmToggleBox
*script exec !LsBoxToggle vwm%{vwmgpos}
*script exec !LsBoxToggle vwm%{vwmgpos}c
*script ~bang


OK, so here's what happens:
the full VWM box (vwmleft) shows up. If I left-click in it, it hides and displays vwmleftc (visually I'm going for collpasing toolbars). Left-clicking vwmleftc then hides it and shows vwmleft. However, then left-clicking it does nothing. The !bang (!vwmToggleBox) works fine from lsxcommand.
...is there some little thing wrong, or does LsBox just not work quite right (if the latter, I could go with a label or shortcut if absolutely necessary)?