![]() |
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,100Code:
Parent.Leftpanel.Location=-150,-100Any help is much appreciated, thank you ! |
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. |
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