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] Avenue checkbox solution
Date:  01/26/2004 05:00:00 AM
From:  Cathy Coldrey



I wanted to post some of the responses I had to the original Avenue
question I had below. Thank you especially to Alex rodrigues,
Mohammad Ishfaq and Jeff Jenness who provided me with the responses:


Hi Cathy,
I recommend using the "DocActive" dialog parameter. This will get
triggered everytime a
document gets activated in ArcView (i.e. when you click on a table
instead of your view, or when
you close your view). I'd try the following logic:
1) In the dialog "Open" script, set the view as an object tag to
your dialog
("self.SetObjectTag(av.GetActiveDoc)").
2) In the dialog "DocActivate" script, tell the dialog to disable
itself whenever the active
document is not your view
("yourDialog.GetControlPanel.SetEnabled(av.GetActiveDoc =
yourDialog.GetObjectTag)"
3) In the dialog "Close" script, remember to unload the view from
the dialog object tag to
save memory ("self.SetObjectTag(nil)")
Hope this helps! Take care -
Jeff
--


Here's one way to handle it...
Rather than worrying about how to disable the closing of the
view...disable
the checking of the checkboxes if the current active document
(av.GetActiveDoc) is not a view.

Sample code:
-----------------------
theActiveDoc = av.GetActiveDoc
isView = theActiveDoc.Is(View)
If (isView) Then
MsgBox.Info("The active doc is a VIEW." + nl +
"You can check a box now","")
Else
MsgBox.Info("This is where you set the checkboxes to INACTIVE","")
End 'If...
-----------------------

Hope that helps....


Alex

Hello Cathy Coldrey,
Here is the solution to your problem. Attached to this email is a full
functional ArcView 3.x project with all the functionality you
required.
There is a view titled 'View1' in the project with six shapefiles. I
have
designed a dialog for you with checkboxes regarding respective
shapefiles. The click action has been added just to first of the
checkboxes i.e., for 'states.shp' theme. This dialog has following
features.

Checks for the layers in the view and dynamically select or un-select
the
respective checkbox.
Removes the layer from view if the states.shp layer is in the view
whether view is loaded or not.
Adds the layer to view if the states.shp layer in not in the view.

You would have to copy the attached file to 'D: emp' to avoid any
inconvenience regarding the file paths for respective shapefiles. Or
you
might re-establish the file paths when you open the project file.

Note: The attached file is compressed with WinZip application. So, you
would need to unzip it to a folder structure exactly as
'D:TempTest'.
Hope it would work without any problems. Incase, of any help you can
ask
me.

Regards.



@*************************************************************
Original question
~***************************************************************
Dear List,

I am in the process of custamising ArcView 3.2a and have hit a brick
wall as they say. I have a dialog box that contains check boxes.
These
check boxes when checked and unchecked add and remove layers to a view
respectfully. My problem if and when the user closes the view and
then
checks a box obviously the layer can not be added to the view as it is
closed. What I thought I could do is disable the close "x" on the
view
window whilst the dialog box is open, but I have not been able to find
out how to do that as of yet. Does anyone out there have any
suggestions? Any help what so ever would be of the utmost
appreciation.

Thanking you in advance,

Sincerely

Cathy Coldrey

Geomatics Specialist
Komex Europe
Phone - 0117 925 1304
Fax - 0117 929 3404

Registered Office
129 Cumberland Road
Bristol, BS1 6UY
Registered No. 2718875

IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone not the intended recipient is prohibited
and may be a criminal offence. Please delete if obtained in error and
email
confirmation to the sender.

_______________________________________________
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