The Daily Click ::. Forums ::. Klik Coding Help ::. Dragging windows
 

Post Reply  Post Oekaki 
 

Posted By Message

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
26th March, 2007 at 19:07:50 -

How would I make my own draggable faux-titlebar for an MMF2 application?

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
26th March, 2007 at 20:02:23 -

hmm... I did this a while ago, but here:

if user clicks in titlebar area then
:set some value A to MouseX
:set some value B to MouseY

if mouseX <> some Value A
:set window X to Window X + (some Value A - MouseX)

if MouseY <> some Value B
:set Window Y to Window Y + (some Value B - MouseY)


If that doesn't work, try swapping some minuses with plusses, etc. etc. It worked for me a long time ago.

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
26th March, 2007 at 20:03:43 -

Ah, fixed it! Sounds a bit like Bibins but I used the MouseX extension for some jazz.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com
   

Post Reply



 



Advertisement

Worth A Click