Select to view content in your preferred language

Customize Edit Attributes Page

3397
1
Jump to solution
09-15-2013 11:07 PM
HenryKo
Deactivated User
Hi,

I am upgrading a customized extension from ArcGIS 10.0 Windows Mobile to ArcGIS 10.1 Mobile for Windows.

My questions is, how do I override the default "Save" button?

I will need to change to text "Save" to "Edit My Attributes".

I will also need to override the button so I can put my customized code it in (e.g. pop up message box etc).

[ATTACH=CONFIG]27471[/ATTACH]

Thanks.
0 Kudos
1 Solution

Accepted Solutions
HenryKo
Deactivated User
OK, you can override the button text and behaviour as follows:

m_currentDefaultEditAttributePage.OkCommand.Text = "Do Something Else" AddHandler m_currentDefaultEditAttributePage.ClickOk, AddressOf editFeatureAttributesPage_DoSomethingElse


Where m_currentDefaultEditAttributePage is an instance of "EditFeatureAttributePage". Note, the default behaviour of the button would still run first, followed by the customized event handler "editFeatureAttributesPage_DoSomethingElse".

View solution in original post

0 Kudos
1 Reply
HenryKo
Deactivated User
OK, you can override the button text and behaviour as follows:

m_currentDefaultEditAttributePage.OkCommand.Text = "Do Something Else" AddHandler m_currentDefaultEditAttributePage.ClickOk, AddressOf editFeatureAttributesPage_DoSomethingElse


Where m_currentDefaultEditAttributePage is an instance of "EditFeatureAttributePage". Note, the default behaviour of the button would still run first, followed by the customized event handler "editFeatureAttributesPage_DoSomethingElse".
0 Kudos