Charlie Fleed
Member
This is a very small piece of code I've written for saving the state of map events. I mean, when you go in and out of a map, all the events are loaded from the data stored in your project...
If you want to override this mechanism and mantain for example the position reached by a moving event or its graphic, or whatever would be reset when the map is loaded again from scratch, you can go mad with local switches and their possibilities are somewhat limited... (breathes).
So I have thought to this solution.
Demo
http://sites.google.com/site/charliefleed/EventStates.zip
Here some simple state variables such as the position and the graphic can be stored, loaded from and cleared in a simple database which uses map_id and event_id as the key. When a map is created the state of all events is re-established if it has been previously stored.
I hope this can be useful to someone.
I welcome suggestions, bug reports, and ideas for its applications.
Bye.
If you want to override this mechanism and mantain for example the position reached by a moving event or its graphic, or whatever would be reset when the map is loaded again from scratch, you can go mad with local switches and their possibilities are somewhat limited... (breathes).
So I have thought to this solution.
Demo
http://sites.google.com/site/charliefleed/EventStates.zip
Here some simple state variables such as the position and the graphic can be stored, loaded from and cleared in a simple database which uses map_id and event_id as the key. When a map is created the state of all events is re-established if it has been previously stored.
I hope this can be useful to someone.
I welcome suggestions, bug reports, and ideas for its applications.
Bye.