You could try this:
In your code:
'**Here you must make sure that your Front Window is a layout
'**Get the name of the table in the Layout window
szLayoutTab = WindowInfo(FrontWindow(), WIN_INFO_TABLE)
'**Select all text objects from the Layout Table
Select * From szLayoutTab
Where ObjectInfo(OBJ, OBJ_INFO_TYPE) = OBJ_TYPE_TEXT
'**Call the menu for bringing the selected objects to front
Run Menu Command M_LAYOUT_BRING2FRONT
'**Close selection and unselect
Close Table SelectionInfo(SEL_INFO_SELNAME)
Run Menu Command M_QUERY_UNSELECT
HTH,
Peter Horsb�ll M�ller
GIS Developer
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk
-----Original Message-----
From: Chris Macy [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 5:54 AM
To: [EMAIL PROTECTED]
Subject: MI-L Bring Text To Front inside Layout Window
I'm trying to write some code that goes through each record of the layouts table and
if the obj is TEXT then I want to bring it to the front. I have been working on this
all weekend with no success, can you please help?
Chris Macy
CB Richard Ellis
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11777