|
Purpose |
References earlier map copies | ||
|
Old name |
#define activate map_activate | ||
|
Syntax |
int map_activate(mapnr, fieldnr) | ||
|
Parameters |
int mapnr |
Number of underlying map containing attached maps | |
|
|
int fieldnr |
Number of field on map with attached map to activate | |
|
Description |
The map_activate() function allows you to reference earlier copies of an attached map, still present on the screen. Normally, it is only the most recently attached copy of the map which is referenced by the askf_x(), scrnx_map(), inpm_x() and show_x() functions. map_activate() causes any maps attached to the specified map and field to become the active copy of the map. The function map_activate() does not affect the map referenced by the function map_change(), which always refers to the most recent 'non-dead' copy of a map. This function is not commonly used and is likely to be withdrawn in the future. | ||
|
Return values |
The number of the map which was activated | ||
|
Example |
| ||