Arrange a stack to the screen.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Arrange a stack to the screen.

Post by zaxos »

Hello, any idia how i can arrange my stack to the top,left,right,bottom of the screen? all i was able to find for now was the screenLoc wich arranges it at the center of the screen.
Thank you for your time.
Knowledge is meant to be shared.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Arrange a stack to the screen.

Post by FourthWorld »

See the screenRect, or perhaps more helpfully, the windowBoundingRect.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Arrange a stack to the screen.

Post by zaxos »

Hello FourthWorld, i'v checked screenRect but i dont think it helps because i need my stack to be on the side of the screen on different resolutions, with the screenRect i can get the result i want but if the res changes everything is messed up
Knowledge is meant to be shared.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Arrange a stack to the screen.

Post by FourthWorld »

I believe the desktopChanged message may help with that.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Arrange a stack to the screen.

Post by zaxos »

I'ts never too easy with this stuff, needed to make calculations to make it work, if anyone is intrested let me know.
Thank you for your help FourthWorld :)
Knowledge is meant to be shared.
Post Reply