1BrownJ67

Layer activation MessageBox in 10.1

Discussion created by 1BrownJ67 on Oct 22, 2012
Latest reply on Oct 22, 2012 by achapkowski-esristaff
I need to create a warning message box for when users switch a layer on in the ToC. The message box is very simple with only an ???OK??? button which the user must click to confirm the warning has been read. Once accepted the layer displays as normal.

In 9.3 we were able to achieve this using VBA. What is the process to achieve this in a 10.1 map document now that VBA is not supported?

I realise the solution is likely to involve Python. Would the process be to create a Python script in a new toolbox? This script would need to run constantly to check for when the layer is switched on so would need to be called upon differently to a standard geoprocessing tool which is ordinarily only used at one time.

Any suggestions or similar experiences would be greatly appreciated.

Cheers,
James

Outcomes