insert a text label to a graph layer
bool page_insert_label( Layer & gl, const string & strLabel, LPCSTR lpcszName = NULL, int x = 10, int y = 5 )
EX1
void page_insert_label_ex1() { GraphLayer gl = Project.ActiveLayer(); string str = "Test"; page_insert_label(gl, str); page_insert_label(gl, str, NULL, 10, 50); // call without name will create new one str = "Only One"; page_insert_label(gl, str, "MyLabel", 20, 30); page_insert_label(gl, str, "MyLabel", 80, 30); // this sholuld be the final location }
origin.h