I can add formatted text at a specific coordinate using the code below at the time of making the Graph box.
New Window( "Example",
Graph Box(
Text Size( 20 );
Text( {50, 20}, "label" );
)
);
However, I can't seem to figure out how to add text later, after the Graph Box has been created. For example I am actually trying to add multiple formatted text items to the graph box in a for loop.
I tried by identifying the 'inner frame box' for the 'graph box' and adding the text to it, but the frame box does not recognize the 'Text' message. Ultimately, I want to be able to add multiple formatted text items at specific coordinates.
Names Default To Here( 1 );
New Window( "Example", a = Graph Box() );
frame = a[FrameBox( 1 )];
frame << Text Color( "red" );
frame << Text( Center Justified, {50, 20}, "centered" );
How do I achieve this?
Cheers, Troy