Script ?: Object_OnDragFinish

Doesn't seem to work as I understand it ...

I'm trying to save an object's position, and was trying to use this subroutine (Object_OnDragFinish), thinking I could call my "savesettings" function from there, but it doesn't seem to work. My exact statement is as follows:

Sub Object_OnDragFinish
   savesettings
End Sub

Can anyone enlighten me as to why this isn't actually calling the savesettings sub?

tia,
Dan

5,137 views 3 replies
Reply #1 Top
not sure why that wouldn't work but you can try this instead:

Function Object_OnLButtonUp(x, y, Dragged)
If dragged Then
savesettings
End If
End Function
Reply #2 Top
Shoot, that one doesn't work either. Maybe it's another issue with the latest DX alpha build, phooey.

Thanks though Tiggz
Reply #3 Top
- I figured out my problem, I was putting the script on the wrong objectID. Glad we've got your widgets around to learn scripting Tiggz, you do some masterful stuff.