Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    3

    How to: Drag and Drop excercise

    Hello, I am new to Autoplay. I have the following question:

    Is it possible to create drag and drop excercises, and if yes how?

    For example, let's say that i need to create the following excercise:

    Drag and drop the following words to create a proper sentence:

    excercise?, can, How, create, i, this,

    Then the user should create this sentence to proceed:
    How can i create this excercise?

    Thank you!

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Oct 2008
    Posts
    3

    Thank you

    Thank you for your answer, I have already seen this thread. This takes me halfway, I was wondering how I can test if the user "drops" the item at the right place. Should I create placeholders and work on the OnLeave by testing the X and Y values?? Any ideas??

    Great sign btw

  4. #4
    Join Date
    Apr 2007
    Location
    Suffolk, UK
    Posts
    176
    im not sure who wrote it (i think it was worm) anyway, there's an "isinRect" function somewhere on the forums that should help you with detecting if its in the right place.

  5. #5
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534

    Post Partial Solution

    Welcome to AMS. I have thrown together a sample of the type of program I think that you're looking for.

    I used an xml file for the sentence storage and retrieval system. The properties table for the paragraph objects can be altered but I would advise against changing the Width as it set up to correspond with the length of the words dynamically.

    The code is basic and mostly uncommented but it works. On the On Mouse Move event on page one you'll find some code that remembers object placement coordinates. I'll leave it to you to figure out how to compare that data and apply it.

    i did not proceed any farther because...
    1. I don't want to spend anymore time on it today.
    2. If worm has already created a function for this unfinished part then that will most likely work as worm is really good at this code thing.
    3. I didn't want to have all the fun...I'm sure you want to get your hands dirty.

    I hope this helps and again, welcome to AMS.
    Attached Files

Similar Threads

  1. Action on Drag N Drop
    By Jonas DK in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 10-19-2008, 08:55 AM
  2. Can you Drag and Drop inside a tree object
    By markstaylor in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 05-18-2008, 08:16 PM
  3. Drag and Drop Time !!!
    By AudioSam in forum AutoPlay Media Studio 6.0
    Replies: 22
    Last Post: 02-08-2008, 09:10 AM
  4. Drag an Drop with AMS
    By columbo in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 08-13-2007, 10:19 AM

Posting Permissions

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