One of the problems Easy CAD dimentions has is that I loose all points database when user try to zoom.
As zoom is not posible once user try to pinch the panel on release I have problems repositioning all points database.
This is main bug that I have and make this unreliable until I will figure out how to do it best.
I need to figure out when to move the parent and when to lock it in place .
I would try to find a solution without the listener library in order to keep code with basic actions.
Any help will be apreciated.
Sub pnl_main_Touch (action As Int, X As Float, Y As Float)
Select action ' Selects the Action parameter
Case Activity.ACTION_UP ' Checks if ACTION_UP
'reposition all point when mouving parent
If (img.Left<>lastimgx Or img.Top<>lastimgy) Then
'img has moved
'code to reposition points database
end if
Case Activity.ACTION_MOVE ' Checks if ACTION_MOVE
If imgmove Then '********************** Move action
'move parent
img.Left=X-x0
img.Top=Y-y0
end if
Case Activity.ACTION_DOWN
lastimgx=img.Left
lastimgy=img.Top
if imgmove then
'relative img coordonate
x0=X-img.left
y0=Y-img.Top
end if
end select