RE: MI Labelling selection

1999-07-06 Thread Robert Crossley

Its not a great solution, but you could add your selection as a layer to your map, 
then label the layer.

-Original Message-
From:   Sidorowicz Michael J IHMD [SMTP:[EMAIL PROTECTED]]
Sent:   06 July 1999 22:35
To: '[EMAIL PROTECTED]'
Subject:    MI Labelling selection

Using MapInfo/MapBasic 5.0, I want to write a module that turns on labels
for a selection.  The old way of putting labels in the cosmetic layer is
easy: 

AUTOLABEL WINDOW mapwinID SELECTION

However, I cannot find a reasonable way to do it using the new way that MI
labels (using label attribute).  I know I could add the selection as another
layer and turn on labeling for the new layer but that is not an option in
this application.  I need to label the original layer/selection directly.

The only way that I've found is to turn on labelling for the layer and then,
one by one, turn off the labels that are not part of the selection using the
Object clause of Set Map.  This is very slow, using 2 pages of code,
especially w/ large tables.  

Is there a way to turn on labeling for a layer but keep everything invisible
except for the selection?  Is there another solution?

Also, MI's documentation of the Object clause is ridiculous: edit labels,
save a workspace and look at the workspace file to see examples. (MB Ref
Guide, p.495)  Sounds like the boys in documentation got lazy w/ that one.


Mike Sidorowicz

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Labelling selection

1999-07-06 Thread Sidorowicz Michael J IHMD

Using MapInfo/MapBasic 5.0, I want to write a module that turns on labels
for a selection.  The old way of putting labels in the cosmetic layer is
easy: 

AUTOLABEL WINDOW mapwinID SELECTION

However, I cannot find a reasonable way to do it using the new way that MI
labels (using label attribute).  I know I could add the selection as another
layer and turn on labeling for the new layer but that is not an option in
this application.  I need to label the original layer/selection directly.

The only way that I've found is to turn on labelling for the layer and then,
one by one, turn off the labels that are not part of the selection using the
Object clause of Set Map.  This is very slow, using 2 pages of code,
especially w/ large tables.  

Is there a way to turn on labeling for a layer but keep everything invisible
except for the selection?  Is there another solution?

Also, MI's documentation of the Object clause is ridiculous: edit labels,
save a workspace and look at the workspace file to see examples. (MB Ref
Guide, p.495)  Sounds like the boys in documentation got lazy w/ that one.


Mike Sidorowicz

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]