User Tag List

Results 1 to 2 of 2

Thread: Clicking and Draging

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clicking and Draging

    I'm trying to click and drag my app with window control object. I have when flag 0 is on set winxpos to (WinXPos( "Window Control" )+FrameWinXPos( "Window Control" )+XMouse)-XMouse which mathematically works but apparently mmf doesn't like it because when I drag nothing happens.

    Any help?

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking and Draging

    Well, if you don't want to be be bothered with that math, you could just go to the Widgets subforum and download the Drag Window Widget: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=65844#Post65844

    If you do want to do the math, you would set two alterable values (which I'm calling AltA and AltB) to the X and Y position before each move of the window.

    So, here's what I have:

    • User clicks with left button
    - Set AltA to XMouse
    - Set AltB to YMouse
    - Set Internal Flag 0 on

    • Internal Flag 0 is on
    - Set horizontal position to WinXPos("Window Control")+(XMouse-AltA("Window Control"))
    - Set vertical position to WinYPos("Window Control")+(YMouse-AltB("Window Control"))

    •( Repeat while left mouse-key is pressed
    - Set internal flag 0 off

Similar Threads

  1. Draging "elevator" object with mouse?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th April 2012, 11:41 AM
  2. Zone Clicking
    By JasonDarby in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 31st January 2011, 10:25 PM
  3. Draging Object
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2007, 04:58 AM
  4. [Bug] Right Clicking
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd October 2006, 05:23 PM
  5. "Upon clicking"
    By KevinM in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th August 2006, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •