The Daily Click ::. Forums ::. Klik Coding Help ::. Dragging Windows Without Headers
 

Post Reply  Post Oekaki 
 

Posted By Message

Activ8games



Registered
  02/07/2003
Points
  463
5th September, 2003 at 20:22:48 -

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.

 
Vote Quimby!!!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
6th September, 2003 at 02:16:33 -

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


Image 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

Activ8games



Registered
  02/07/2003
Points
  463
6th September, 2003 at 08:28:01 -

It works now thanks.

 
Vote Quimby!!!

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
6th September, 2003 at 10:23:23 -

Hey Kris, I thought you didn't klik anymore ¬_¬

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
6th September, 2003 at 16:41:19 -

you've still got to know this sort of stuff...!

 
"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
   

Post Reply



 



Advertisement

Worth A Click