Keep Mouse inside the Window Page

This english section.
Hello to all i am in the process of making a small program using AMS..
But i cannot figure out how to make it possible with AMS,

I want to keep or limit the mouse cursor inside the window page if the user trying to move it outside the page/window..

anyone could help me? thanks...
Any help from the expert please? :pc:
Sorry for the delay answer
Yes you can do this easily
I will put an example of this process after a little time
Thanks for the reply.. i am a newbie on AMS8,

as per as on the example provide is different,, i wan the mouse pointer to movable only inside the window page without any dialog just the pointer stuck on every edge of page..
Thanks so much for the help...