B
Bob Clegg
Hi,
I have a form (Mapmaster) that has an arbitary number of thumbnails that
represent maps on it.
When the user clicks a thumbnail it causes an instance of another form (Map)
to open displaying the map that the thumbnail represents.
My problem is that I also allow the user to add / delete thumbnails. When
deleting I can check that a map is open by keeping a list of clicked
thumbnails and advise the user to close the associated map form before
trying to delete its thumbnail.
But I am having difficulty seeing how to check that the map has been closed.
If it was a small fixed number of maps then I would declare private
withevents map variables to open the Map forms and handle a custom
'Mapclosing' event of these variables.
This approach is not practical with an arbitary number of thumbnails.
So my problem is how can the Mapmaster form detect that the user has closed
a map form and identify which map has been closed. From there I can update
the Mapmaster open list and allow deletion of the 'closed' thumbnail on
Mapmaster.
Thanks
Bob
I have a form (Mapmaster) that has an arbitary number of thumbnails that
represent maps on it.
When the user clicks a thumbnail it causes an instance of another form (Map)
to open displaying the map that the thumbnail represents.
My problem is that I also allow the user to add / delete thumbnails. When
deleting I can check that a map is open by keeping a list of clicked
thumbnails and advise the user to close the associated map form before
trying to delete its thumbnail.
But I am having difficulty seeing how to check that the map has been closed.
If it was a small fixed number of maps then I would declare private
withevents map variables to open the Map forms and handle a custom
'Mapclosing' event of these variables.
This approach is not practical with an arbitary number of thumbnails.
So my problem is how can the Mapmaster form detect that the user has closed
a map form and identify which map has been closed. From there I can update
the Mapmaster open list and allow deletion of the 'closed' thumbnail on
Mapmaster.
Thanks
Bob