Jump to content
Sign in to follow this  
lyledg

Create a Static GUI

Recommended Posts

lyledg

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
Paulie

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.