Hi James,

All objects in a layout are accessable programmatically.

The layout "layer" is the cosmetic layer of the layout window, and the table name can be retrieved by issuing WindowInfo(LayoutWindowID,WIN_INFO_TABLE)

Then traverse and update it as you would a normal table.

Note that cosmetic layers only have a single column, OBJ (and ROWID).

Best regards / Med venlig hilsen
Lars I. Nielsen
GisPro


James Stott wrote:
All,
 
Is there a way that you can set text objects on a layout as variables, then change the values of these variables so the text object on the layout changes?
 
I have a layout that is opened by clicking a tool button, which loads a workspace that contains the layout. 
 
The layout has fields that need completing on in it (drawing number and other things). I have a tool that displays a dialog box, which contains edittext controls for entering the text that needs displaying in these fields (it creates text objects on the layout in the correct location). I want to extend the functionality of the tool so it can read the values that are in the fields, display them in the edittext controls on the dialog, and allow the user to edit them. Once the user has edited them, i want the tool to update the text objects on the layout with the new values.
 
Does anyone know of the best way to do this? I have attempted several approaches, all of which have failed. I am using mapinfo and mapbasic 7.8
 
Thanks in advance,
 
James 
  
   
This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies.  
Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses.  
    
 
Nicholas Pearson Associates 
Environmental Planners - Landscape Architects - Ecologists 
30 Brock Street, Bath,BA1 2LN 
Tel: +44 (0) 1225 445548 Fax: +44 (0) 1225 312387  
www.npaconsult.co.uk 
                                                                                          
 
 

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

  
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to