EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Moving a window to negative value (https://www.eq2interface.com/forums/showthread.php?t=6274)

Sl4d3 06-12-2006 02:06 PM

Moving a window to negative value
 
Hi,

For my ui, i was making a small button to quickly switch from small to big display.

I was testing out and everything is ok if i use positive value. The windows just move as it should. But if i try to use negative value (0,-100) nothing happen, window won't move to where it's supposed to.

this far i was using something like this ->
This works
Code:

Parent.Leftpanel.Location=150,100
OnPress=PanBig

This don't
Code:

Parent.Leftpanel.Location=-150,-100
OnPress=PanBig

i also tried to "quote" each value, and to use (). Neither seem to work.

Any help is much appreciated, thank you !

mother9987 06-12-2006 03:02 PM

I know I've done it successfully.

Have you tried something like adding a value to the control called

DestPos with a value of -100,-150

And then making you control do a "Parent.MovePiece.Location=DestPos" or something like that? I know on the window I was moving to a negative location, I was reading it out of a table, so that might be how it worked.

Alternately, if you're trying to make the window disappear by moving off the screen, why not go way right and way down? "4096,4096" is my usual favorite.

Sl4d3 06-12-2006 03:52 PM

Not i don't want it to disappear but to toogle between small and big mode.

Small = a bar at the top of the screen wich about 40pix height, and big = 150pix .

But trying what you told me solved my problem lol ! I miswrite the loc value.

I was writing location="xxxx","xxxx"
But i should have use location="xxx,xxx"

That's all +_+

Thank you now it works and looks so great =)


All times are GMT -5. The time now is 11:42 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI