>>I want to make a form where I have a painting area and a couple of buttons on the left
>>if I click on a button I want to be able to drag it to the painting area and drop it
>>then I want to get the left and top and create a button on this place. then I intend to bring up a dialog (property sheet) where I can add some other properties to be saved in a table.
>>this is to lay out a custom form of action buttons.
>>
>>has anybody done something like this and is willing to help?
>>
>>drag and dragdrop seemed to be th places to hook into but they seem not to fire :-)
>>
>
>First, you're probably better off using the OLE drag-and-drop methods than the native ones. They give you finer control over the process. The key to making it work is the OLEDragMode and OLEDropMode settings.
>
>You have HackFox, don't you? Read the section on OLE drag and drop.
>
>Tamar
Yes I do (actually I have ALL Hentzen books)
I have a container control on my form onto which I want to be able to add a button
on the form itself (like a pallet) I have a button
now at runtime I want to ba able to grab the button on the left and drag it onto the container
when I let go og the mouse I want a buttoncontrol added to the container on the locatio where I dropped it.
the container.dropmode=1
but I cannot drag anythin onto it, like it's not drop enabled
weird!
Peter
Peter Cortiel