lsbox - negative coordinates Thread last updated on 2003-05-11 05:34:48

Posted by member 23979 on 2003-05-10 18:14:17

I have a problem with negative coordinates in lsbox (2.95).
If I use the buildin shorcuts they work fine, but for other modules (eg. RabidVWM 1.01, label 1.99) it won't work.
My label has a width of 103 and if I use -103 for the X-coordinate it won't show up.
After some testing I saw that if I change the width or height of the box the label/vwm won't move, which means that the coordinates are interpreted as positve values.

Posted by member 23979 on 2003-05-10 19:00:37 link

After some more testing I discovered that lsbox calculates negative coordinates with the screen resolution and not with its actual size.

That's the reason, why I didn't note it at first, my box had the size $ResolutionX$.

Posted by member 7 on 2003-05-11 01:19:35 link

lsbox has a special ~ sign for "real" negative coordinates... you might want to try that. Also make lsbox NOT remember its position.

Posted by member 99 on 2003-05-11 02:06:09 link

?

lsbox does not calculate the position for boxed modules, if they use the screen size for negative coordinates, that's a bug in the boxed module, not lsbox.

and they won't move automatically when you change the box size, lsbox doesn't notify the boxed module. If that's what you want to do, you'll have to reset their position at the same time.

Posted by member 23979 on 2003-05-11 05:34:48 link

I tried it with an other box (with RabidVWM 1.01, label 1.99).
Say I use vwmX -300 and MyLabelX -200 and the width of the box is $ResolutionX$ everything looks fine, but if I use $ResolutionX-100$ these elements are still at the same position on the screen (not relativly to the box), despite the fact that they should be 100 pixels more to the left. If I drag the box they move as a one.

I don't want real negative number, I want a resolution independend lsbox.