Re: selected omGraphic

From: Adrian Lumsden <Adrian.Lumsden@sss.co.nz>
Date: Wed Feb 13 2002 - 15:19:32 EST

Are you selecting an OMGraphic using something like selectClosest()?

I don't know if this helps or not but I use setAppObject() when I create the graphics. I associate an object with each graphic which
holds additional information. You could have your own selected flag in that and then scan the OMGraphicList to find the selected
one.

Or (and I haven't tried this) given that OMGraphicList is extended from OMGraphic you could use setAppObject() on the OMGraphicList
and create an object holding private status about the list, one item of which could be the selected item in the list.

all the best,

Adrian

- -------------------------------------------
Adrian Lumsden Product Specialist
Scientific Software and Systems Limited

DDI: +64 4 917-6680
Tel: +64 4 917-6670
Fax: +64 4 917-6671
E-mail: Adrian.Lumsden@sss.co.nz

Visit us on the Web at: http://www.sss.co.nz
_____________________________________________

This e-mail passed SSS's content security scan.
It is covered by the confidentiality clauses at
http://www.sss.co.nz/content_and_confidentiality

-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]On
Behalf Of Marklund David
Sent: Thursday, 14 February 2002 02:35
To: openmap-users@bbn.com
Subject: selected omGraphic

Hi all,
How can I find out if a omGraphic is selected ?
The attribute selected is protected and there does not seem
to be any method to get it.

Cheers

David

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Feb 13 15:18:18 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT