Positioning Thread last updated on 2008-03-03 10:26:44

Posted by member 124072 on 2004-06-30 17:36:22

After a while ive decided to get back into theme creation again. I want to put more effort than I put into my last themes for my upcoming theme. Now, about positioning. I am going to have winamp controls in the lower left corner. Lets just say they are 100pixels in width (height has nothing to do with my problem.)How would I have an LSXcommand bar that goes from the 101th pixel until 50 pixels to the end of the screen? I think I have to use $resolutionX$ and some other things along with it...

Posted by member 124072 on 2004-06-30 17:39:25 link

actually, to clear things up:
1.I need it to start on the 101th pixel, would i do commandX 101?

2.For the Length of the bar, I need it to go for a certain length and stop 50 pixels from the edge ( its going to have to work for all resolutions)

Posted by member 1316 on 2004-06-30 17:54:07 link

1. yes
2. "commandwidth $resolutionx-150$" since there's 100 before, and 50 after, that should do it.

Posted by member 99 on 2004-07-01 00:57:18 link

"CommandWidth -150" should also work.

Posted by member 1316 on 2004-07-01 18:29:55 link

how would -150 with commandwidth? I understand if it was a positional command, but this for width. wouldn't that make it a negative width??

Posted by member 37809 on 2004-07-01 21:22:19 link

whew, that's a wide command box.

Posted by member 99 on 2004-07-02 00:00:46 link

How does a negative width ever make sense? And why would it be different from a negative position, considering that negative positions actually do exist?

Specifically, it will work because the setting is read with:
GetRCCoordinate(RCSETTING("Width"), 160, screen.right-screen.left);

Posted by member 48370 on 2004-07-02 01:23:02 link

interesting - does this apply to any module?

Posted by member 1316 on 2004-07-02 18:55:08 link

that is interesting. I didn't think that would work at all. like muhKuh said, does it apply to all modules, or is it specific to lsxcommand?

Posted by member 277837 on 2008-03-02 22:53:55 link

isnt it just treating resolution as a numeric variable and subtracting 150?

Posted by member 31 on 2008-03-03 10:26:44 link

It works because the module "incorrectly" uses GetRCCoordinate for a non cordinate value. So, no it will not work with any module; Only modules that use GetRCCoordinate to read their width value.