Forum Discussion
Hi,
Try the below code it should work,
-
LoadersAndTrucks.Drag(LoadersAndTrucks.x, LoadersAndTrucks.y,((greyPanel.ScreenLeft + (greyPanel.Width / 2)) - LoadersAndTrucks.x), ((greyPanel.ScreenTop + (greyPanel.Height / 3)) - LoadersAndTrucks.y))
Let me know your results.
- kandy19849 years agoContributor
Hi,
Thank you very much for you reply Shankar. However, the code that you had provided dragged the LoadersAndTruck to the far bottom right panel, actually beyond the panel. The grey panel is really big 12000. Is there any other way that i can drag the LoadersAndTruck the way that i intent? Also the LoadersAndTrucks do not have a x or y but it has Bottom, Height, Left, Right, Top and Width as seen in the previous image.
Thank you very much for helping me.
Sudha.
- kandy19849 years agoContributor
Hi,
Thank you very much for you reply Shankar. However, the code that you had provided dragged the LoadersAndTruck to the far bottom right panel, actually beyond the panel. The grey panel is really big 12000. Is there any other way that i can drag the LoadersAndTruck the way that i intent? Also the LoadersAndTrucks do not have a x or y but it has Bottom, Height, Left, Right, Top and Width as seen in the previous image.
Thank you very much for helping me.
Sudha.