Last post Apr 21, 2012 07:44 PM by jkirkerx
Apr 05, 2012 05:44 AM|pvsenan|LINK
I have created a composite control containing an Image control for displaying image. What I need is to place four anchors on the image and that should be movable(Top,bottom,right and left). I am planning to use image control for that.How can I put those
anchors on top of the loaded Image ?
Apr 06, 2012 09:37 PM|Decker Dong - MSFT|LINK
Would you mind showing us your current work of codes？
What do you mean by"movable"？Do you mean when I click each of these anchors，the whole image can move？
Apr 09, 2012 01:00 AM|pvsenan|LINK
No the image should not move. The user can re-position the four anchor on the image by dragging the anchors and I need to find the distance between left-right and top-bottom anchors.
Apr 10, 2012 05:07 AM|Anik Sh - MSTF|LINK
is it ok to set image as background image in the control and then you can add anchors.
also, you may use the
AddAt method to place anchors control at a specific location — for example, in front of other controls
Apr 21, 2012 07:44 PM|jkirkerx|LINK
You can try using <div> or panels, and zindex them in the proper sequence. Make 2 panels and give them the same coordinates, but the 2nd one has a higher z-index value. The use png images with transparency to overlay the div below.
Or load the image as a background image, and create your control so it overlapps the background image, but is on the primary layer.
I don't see this as being a server control question, but more of a css or html question in general.