I'm working on an internet browser which doesn't use the standard windows header and menu. I am designing my own whcih will be included as objects in the window. Anyways, without having the good old header to work with I want to know if it is still possible to be able to drag the window. I have tried using the following code:
+Repeat while left mouse key pressed:
+Mouse is over custom header:
----(Window Control) Set position to (XMouse, YMouse)
This results i the window moving to crazy unpredictable positions every time I click. There must be something I'm missing here.
On click:
Set flag # on
Store Mouse X - Window X in counter A
Store Mouse Y - Window Y in counter B
While flag # is on:
Set Window X to mouse X - Counter A
Set Window Y to mouse Y - Counter B
Mouse is NOT held down:
Set flag # OFF
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G