Sign in to follow this  
Followers 0
lyledg

Create a Static GUI

3 posts in this topic

Hi..

I am trying to create a GUI that cannot be moved by the user once created, Can someone point me in the right direction please...I have read the help file and am thinking I have to use a GUICtrlSendmsg to the GUI with a parameter..

Am I on the right track?

Cheers

L

Share this post


Link to post
Share on other sites



Hi..

I am trying to create a GUI that cannot be moved by the user once created, Can someone point me in the right direction please...I have read the help file and am thinking I have to use a GUICtrlSendmsg to the GUI with a parameter..

Am I on the right track?

Cheers

L

I bet you could do something like

While 1
$windowpos = WinGetPos("YourGui")

If $windowpos[0] <> *Your Origanal XCoords* then winmove("YourGui", "", *XCoord*, *YCoord*)

If $windowpos[1] <> *Your Origanal YCoords* then winmove("YourGui", "", *XCoord*, *YCoord*)
Wend

that will make it stay in one spot if it tries to be moved

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0