Is it possible to create a message bar popup(present in QGIS) in ArcMap, instead of shooting users with MessageBoxes?
I am not expecting any code examples. Guide me on the approach if this is possible.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityIs it possible to create a message bar popup(present in QGIS) in ArcMap, instead of shooting users with MessageBoxes?
I am not expecting any code examples. Guide me on the approach if this is possible.
I would recommend to develop an ESRI AddIn in C# for example. There you can use an ESRI.ArcGIS.Framework.IDockableWindow
. You could pin it to the top. The corresponding System.Windows.Forms.UserControl
can be designed according to your wishes. You can show or hide the IDockableWindow and the messages in your custom code.
You can write messages to the application status bar just as any other button on any toolbar in ArcMap does. If that is what you want? Creating that popup message bar you show in your question would be a major customisation of the application and I'm not sure that is possible.
The sample VBA code below shows you how to write messages to the application statusbar, be aware as soon as you move your cursor over other buttons or some other event has triggered then the message is overwritten.
Public Sub ShowMessage()
Dim pApp As IApplication
Set pApp = Application
Dim pStatusbar As IStatusBar
Set pStatusbar = pApp.StatusBar
pStatusbar.Message(0) = "LOOK AT THE BOTTOM OF THE APPLICATION WINDOW, SEE ME!"
End Sub