<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic workaround in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-a-text-symbol-to-the-graphictracker/m-p/323996#M8437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There seems to be no other way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The next best (but undesirable) alternative is to create a dummy(placeholder) symbol, and then associate the desired text symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also creates significantly more administrative work, because since we are now working with multiples trackers, we have to maintain symbols and geometries for both.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 08:10:44 GMT</pubDate>
    <dc:creator>ManfredLauterbach</dc:creator>
    <dc:date>2012-07-13T08:10:44Z</dc:date>
    <item>
      <title>Adding a text symbol to the GraphicTracker</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-a-text-symbol-to-the-graphictracker/m-p/323995#M8436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code successfully associates a label (textsymbol) with another existing symbol - and correctly displays both symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// Create and define some other symbol simpleMarkerSymbol = GenerateMarkerSymbol(); simpleTextSymbol = GenerateSimpleTextSymbol(); PointClass offset = new PointClass() { X = 0, Y = 0 };&amp;nbsp; // Add the symbol to the tracker IGraphicTrackerSymbol gts = graphicTracker.CreateSymbol(simpleMarkerSymbol); int gID = graphicTracker.Add(offset, gts);&amp;nbsp; // Associate the text symbol, and set the text graphicTracker.SetTextSymbol(gID, simpleTextSymbol); graphicTracker.SetLabel(gID, "Testing");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, now I want all text to be displayed on top of other symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI recommends using a separate tracker for prioritizing display order - and this works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that when I add ONLY a text symbol to the tracker, then it is not displayed...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the graphicTracker not display the generated text symbol below? (textFont is defined and was used for the textSymbol in the code which displayed correctly above) : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// Define text symbol ITextSymbol textSymbol = new TextSymbolClass() as ITextSymbol; textSymbol.Font = textFont; textSymbol.Size = 20.0; textSymbol.Color = new RgbColorClass() { RGB = 0xFF0000 }; textSymbol.Text = "12345";&amp;nbsp; // Add it to the tracker PointClass offset = new PointClass() { X = 0, Y = 0 }; IGraphicTrackerSymbol gt = graphicTracker.CreateSymbol(textSymbol as ISymbol, null); int gID = graphicTracker.Add(offset, gt);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 11:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-a-text-symbol-to-the-graphictracker/m-p/323995#M8436</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-07-12T11:02:25Z</dc:date>
    </item>
    <item>
      <title>workaround</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-a-text-symbol-to-the-graphictracker/m-p/323996#M8437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There seems to be no other way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The next best (but undesirable) alternative is to create a dummy(placeholder) symbol, and then associate the desired text symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also creates significantly more administrative work, because since we are now working with multiples trackers, we have to maintain symbols and geometries for both.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 08:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-a-text-symbol-to-the-graphictracker/m-p/323996#M8437</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-07-13T08:10:44Z</dc:date>
    </item>
  </channel>
</rss>

