CoordObjectToImage
Posted: Tue Jan 19, 2010 8:55 am
Hi..
I'm using Powerbuilder 10.5.2 build 7826. Currently i'm evaluating GdPicturePro5 to be used in our application to manipulate image.
I try to insert text into my image object. Before I do that, I need to get coordinate of x & y of the displayed image.
In mousedowncontrol event I put this code
Here ole_1.Object is the GdPicturePro5.GdViewerCnt OCX object.
But ll_StartPosX & ll_StartPosY always return 0 when I clicked on the viewer object during runtime.
Need your feedback before we can decide to buy the product.
Regards
MUL
I'm using Powerbuilder 10.5.2 build 7826. Currently i'm evaluating GdPicturePro5 to be used in our application to manipulate image.
I try to insert text into my image object. Before I do that, I need to get coordinate of x & y of the displayed image.
In mousedowncontrol event I put this code
Code: Select all
long ll_startposx, ll_startposy
sle_obj_x.text = String(Long(ocx_x))
sle_obj_y.text = String(Long(ocx_y))
ole_1.Object.CoordObjectToImage(Long(sle_obj_x.text), Long(sle_obj_y.text), ll_StartPosX, ll_StartPosY)
But ll_StartPosX & ll_StartPosY always return 0 when I clicked on the viewer object during runtime.
Need your feedback before we can decide to buy the product.
Regards
MUL