|
Purpose |
Sets the position of maps used by the functions map_remark(), map_datamap() and map_menu() | |
|
Old name |
#define map_position map_new_position | |
|
Syntax |
void map_new_position(int mapnr, int fieldnr) | |
|
Parameters |
int mapnr |
Number of map and field to which maps drawn with map_remark(), map_datamap(), or map_menu() will be attached. If map number 0 is specified the maps will be drawn with map_draw() and not map_attach() |
|
|
int fieldnr |
Number of field in map in which to attach the maps |
|
Description |
The map_new_position() function allows a map to be used to determine the position of maps used in future calls to the functions map_datamap(), map_remark() and map_menu(). They are all attached to the field specified by the parameter fieldnr in the map specified by the parameter mapnr. The map specified must be on the screen when these functions are called. Calls to map_new_position() can be stacked up to a level of 10. Stacking beyond this causes the program to terminate. The function map_old_position() can then be called to remove the latest position values and restore the previous position. For example: a program could use map_position() to force popup windows displayed with pick_record() to appear attached to the relevant input field. You could include a hook field with field number 100+field number for each input field with prompt. At the top of data_inner() you would include this call : | |
|
See also |
||