I have a code as in the following. My problem is that I have
set that if the slider exists, then allow the user to drag and
change the size of the image he or she clicks on. If the slider is
not there, create one if the "image" is clicked.
The application works if I start it up and click on an
image, but if I mousewheel over the slider and made it disappear,
even if I click on the image, the slider does not come back on.
Could anyone provide me some insights on what I have done
The reason it's not reappearing is that you're removing it
container and not adding it back again. You need to do
even when the slider exists, because when you use
it's not a child anymore.