|
POST
|
Richard, Did you see this thread that discovered the bug NIM087476 �??Memory leakage ESRI.ArcGIS.Geodatabase.IDataStatistics using UniqueValues property with ArcGIS 10.1 with SP1�?�
... View more
01-25-2013
04:13 AM
|
0
|
0
|
982
|
|
POST
|
There's also this topic specifically about the Addin combobox. That topic also contains C# and VB.Net code on implementation
Public Class Combo1
Inherits ESRI.ArcGIS.Desktop.AddIns.ComboBox
Public Sub New()
'Add two items to the combo box.
Dim o1 As New Point()
o1.PutCoords(0, 0)
Dim c1 As Integer = Me.Add("Item1", o1)
Dim o2 As New Point()
o2.PutCoords(1, 1)
Dim c2 As Integer = Me.Add("Item2", o2)
'Add the application's caption.
Dim app As ESRI.ArcGIS.Framework.IApplication = TryCast(Me.Hook, ESRI.ArcGIS.Framework.IApplication)
Me.Add(app.Caption)
'Add one item then remove
Dim c3 AsInteger = Me.Add("Item3")
Me.Remove(c3)
'Select the second item.
Me.[Select](c2)
End Sub
Protected Overloads Overrides Sub OnSelChange(ByVal cookie AsInteger)
If cookie = -1 Then
Exit Sub
End If
'Get the associated object.
Dim tag As Point = TryCast(Me.GetItem(cookie).Tag, Point)
If tag IsNot Nothing Then
System.Windows.Forms.MessageBox.Show((tag.X & ", ") + tag.Y)
End If
End Sub
Protected Overloads Overrides Sub OnEnter()
'Loop through the item collection.
Fo rEach item As ESRI.ArcGIS.Desktop.AddIns.ComboBox.Item In Me.items
If Me.Value = item.Caption Then
Exit Sub
End If
Next
Me.Add(Me.Value)
End Sub
Protected Overloads Overrides Sub OnEditChange(ByVal editString AsString)
If String.Compare(editString, "ABC", True) = 0 Then
System.Windows.Forms.MessageBox.Show("editString is " & Me.Value)
End If
End Sub
Protected Overloads Overrides Sub OnFocus(ByVal [set] AsBoolean)
If [set] Then
System.Diagnostics.Debug.WriteLine("Get focus.")
End If
If Not [set] Then
System.Diagnostics.Debug.WriteLine("Lose focus.")
End If
End Sub
Protected Overloads Overrides Sub OnUpdate()
Me.Enabled = ArcMap.Application Is Not Nothing
End Sub
End Class
... View more
01-24-2013
08:46 AM
|
0
|
0
|
2115
|
|
POST
|
Could you post code that replicates this? I have an infoWindow on my map, but when I click on the text in it or the close button, the mapClick handler doesn't fire.
... View more
01-22-2013
06:32 AM
|
0
|
0
|
605
|
|
POST
|
Thanks Ivan, It turns out that wasn't quite the issue in my original project. Working with other extents and additional services still gave me problems where the extent didn't quite cover the expected territory. It turns out that I was using the wrong event in my project. I was application's initialize event to check the extent. When I changed that to the creationComplete event, it worked as expected.
... View more
01-15-2013
06:12 AM
|
0
|
0
|
1166
|
|
POST
|
My application uses a tiled map service as the base and I want to zoom to a particular extent that would contain all of the graphics on it. I set the extent and zoom to it, but depending on the browser size, not all of the graphics are shown as expected. I'm using the line if (!mapMain.extent.contains(newExtent)) mapMain.level--; to zoom out one level, but that doesn't always seem to work. The attached graphics shows the results of two different browser sizes. Here's the test code to create this (using Flex 4.6 and the 3.0 API) <?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags" creationComplete="application1_creationCompleteHandler(event)"> <fx:Script> <=!=[=C=D=A=T=A=[ import com.esri.ags.Graphic; import com.esri.ags.geometry.Extent; import com.esri.ags.geometry.WebMercatorExtent; import com.esri.ags.geometry.WebMercatorMapPoint; import mx.events.FlexEvent; protected function application1_creationCompleteHandler(event:FlexEvent):void { var newExtent:Extent = new WebMercatorExtent(-179, -14, -64, 25); var graphic:Graphic; graphic = new Graphic(new WebMercatorMapPoint(-179, -14)); layerGraphics.add(graphic); graphic = new Graphic(new WebMercatorMapPoint(-64, 25)); layerGraphics.add(graphic); mapMain.extent = newExtent; if (!mapMain.extent.contains(newExtent)) mapMain.level--; } ]=]=> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <esri:Map id="mapMain" wrapAround180="true"> <esri:ArcGISTiledMapServiceLayer id="layerOceans" alpha="1.0" url="http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" visible="true"/> <esri:GraphicsLayer id="layerGraphics" buttonMode="true"/> </esri:Map> </s:Application>
... View more
01-14-2013
09:15 AM
|
0
|
2
|
3668
|
|
POST
|
That becomes an issue if code in another module ever needs to refer to that subroutine. A Private sub would be inaccessible by code in that other module, while a Public sub could be referenced by code in that other module.
... View more
01-09-2013
08:17 AM
|
0
|
0
|
525
|
|
POST
|
Take a look at the code in Monsour's blog about constraining the map extent. You can see it here in action.
... View more
01-09-2013
06:50 AM
|
0
|
0
|
1444
|
|
POST
|
If you're working with an Addin and you want to close ArcMap, then use the line My.ArcMap.Application.Shutdown()
... View more
01-07-2013
09:44 AM
|
0
|
0
|
2075
|
|
POST
|
This thread went into some discussion about the datum transformation between BNG and WGS84 with a link to a blog about going from BNG to Web Mercator.
... View more
01-04-2013
05:15 AM
|
0
|
0
|
1822
|
|
POST
|
Glad to help. Please remember to click the check on the post to signify the question was answered.
... View more
01-03-2013
07:12 AM
|
0
|
0
|
5772
|
|
POST
|
Not a dumb question at all, especially since I gave you an incorrect answer the first time. In the Config.esriaddinx file, if you add a space to the Combobox line, you should get Intellisense to pop up, showing the possible tags you can add. Use hintText. The sample Custom Selection Extension shows this and other tags that you can use.
... View more
01-03-2013
06:28 AM
|
1
|
0
|
5772
|
|
POST
|
You can set the combobox's text property to "Select storm". Once something is selected, that text will not show up again.
... View more
01-03-2013
05:43 AM
|
0
|
0
|
5772
|
|
POST
|
It should be the same issue. You will see those options when you use the Project|Add New Item menu selection after you've created your project.
... View more
01-03-2013
03:22 AM
|
0
|
0
|
3210
|
|
POST
|
Remove them and add them back again using "Add ArcGIS Reference"
... View more
12-28-2012
10:04 AM
|
0
|
0
|
2292
|
|
POST
|
In a test project, I have ESRI.ArcGIS.System as a reference and can add the line Dim test As New ESRI.ArcGIS.esriSystem.AoInitialize 10.1 has made changes with the enumerators. See What's New in the Help [TABLE="class: dtTable"] Prior to 10.1 10.1 esriLicenseProductCodeArcView esriLicenseProductCodeBasic esriLicenseProductCodeArcEditor esriLicenseProductCodeStandard esriLicenseProductCodeArcInfo esriLicenseProductCodeAdvanced [/TABLE]
... View more
12-28-2012
09:44 AM
|
0
|
0
|
2292
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|