OKay, I have a Tree List object. YOu know in mmf where you're building your frame and you have a tree list selector on the side that stores your objects? Then, when you click on an item and then drag, it goes with the mouse. And when you release it, the object is dropped into the playfield. How would you be able to do something like that at run-time? Drag n Drop from a Tree list, that is. Thanks in advance.
All platforming problems can be mostly solved here:
Here is how to make click & drag widnows really easy in MMF.
Make 1 frame, the main frame where you want the windows you drag, to appear in.
Make another frame, this frame will be the window you want to drag, make it any size you want.
Then go into the main frame & create the Subapplication object (it comes with MMF, but only works in MMF) Set the frame sizes in this object, & make it either appear at the start of the frame, or you can shut that off & make it appear at runtime. Once the window is made, you are able to use it like both frames are playing at the same time, & both are fully drag able, & if you set it too, you can also resize the windows while its running, & such.
Hope this helps, I'll make an article on the subapplication object & such. Its not extremly hard, but takes a few minutes to get used too. Good Luck.
Well for those who dont have TGF & think it might be in TGF too, I figured I would just post that it is in MMF only. Think about that? Might help if ya did, but I wouldnt want to put to much pressure, steam might start flowing out of your ears.
Umm, I know about sub-apps. Here's what I'm trying to do (the simpler version) again. The person selects the item from the tree list object and then they can drag and drop it on to the play field. Sort of like a red alert2 construction menu only with text. Its something like an item box. OKay. thanks though.
All platforming problems can be mostly solved here:
I don't think you can drag out of the box like you would drag a file... (Not in the same way, anyway.) It isn't too hard to do this, though - use a flag to detect if the mouse clicked on an item, and if the mouse is held, is outside your treelist object and that flag is on you can create an object that moves with the mouse (to be placed when the mouse is let go). How you take care of that object is up to you, though.