This content has been marked as final. Show 4 replies
You can make the tool item enabled based on:
application.toolbars(1).item("btn3").enabled = false. You might need to set this on the Map onLoad event.
When you click your btn1, set you "stop editing" enabled = true
I hope this helps.
Thanks for this. With your syntax I've made the click event of button 1 change the enabled status of button 3.
But, could you please point me to where I can get at the map's onLoad event?
I've tried editing the .apm file in ArcPad Studio but when I right-click and look at the Help for the Map element, I fall under the category of "when parent element is ArcPad" so it seems the options are limited there and I can't just add an onLoad attribute to it.
You can either access the Map events in the APX. When you are in studio, open your apx and on the toolbar click on the "two cogs" button. This will open the system objects dialog box. In there you will find all the Map events you need.
Just to let you know you could also put these custom buttons and scripts in an Applet (.apa). This way you can keep your configuration default and you can switch out different applets as your needs change.
Let me know how you go.
thanks that works great, I hadn't thought of looking at that dialog box.
In the future I will look at using Applets, thanks for the tip, but for now our use of handhelds and ArcPad is strictly focused on this one application so this modification of the defaults shouldn't cause any problems.
I will be posting a new thread in this forum about custom toolbar buttons (the next hurdle) and if you have any insight on that I'd really appreciate it.