lyledg Posted May 31, 2006 Posted May 31, 2006 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
Paulie Posted May 31, 2006 Posted May 31, 2006 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
Thatsgreat2345 Posted May 31, 2006 Posted May 31, 2006 #include <GUIConstants.au3> ; == GUI generated with Koda == $Form1 = GUICreate("AForm1", 622, 441, 192, 125,$WS_POPUP) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now