Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: [gislist] Programmatically invoke button
Date:  08/09/2004 12:45:01 PM
From:  Van Vliet, Tim




I have a question or scenario to pose to the group.
=20
I am making a two button toolbar extension for ArcMap in VB compiled to
a DLL.(clsExtension , clsToolbar)
Presently, Button 1 starts a form that allows users to transfer GPS
jobs and create/store Shapefiles on the computer system.(clsCmd2
invokes frmDataHandler.Show)
The Second button, Adds the created Shapefiles to the current ArcMAP
session.(clsAddShapefiles).
=20
After transferring and creating shapefiles (Button 1) I would like to
prompt the user to Add the newly created data to the map, if the user
clicks yes I want to invoke Button2 without them clicking it giving the
appearance of smooth flow of processing (I know that the number of
clicks is the same, msgbox vs button, but this is what the client
wants). I still want to leave Button 2 as it will remember the last job
processed.
=20
So I moved my Sub AddShapefiles from clsAddShapefiles to modProject
becuase I thought it would be the best place to share the code.
Now I can access the sub from both buttons but now bombs on the=20
Set m_pDoc =3D m_pApp.Document statement as I try to get a hook back to
the Application.
What am I missing? I need to know how to get this aligned=20
OR
Is there a way to invoke Button 2 (has hook to ArcMap ) directly from
the Msgbox in Button 1(does not have hook into ArcMap.)
=20
TX
TvV
_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Get Access to the latest GIS & Geospatial Industry RFPs and bids
http://www.geobids.com

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group