I was wondering if anyone could impart any insight regarding altering the skin of the built-in pop-up utility. In particular, I'm trying to figure out how to remove the 'Zoom To' button that automatically appears at the bottom of each generated pop-up. I'm going through the compiled source code now but unfortunately I can't seem to find a particular MXML that governs the popup's skin, and was hoping someone could point me in the right direction.
The popup that is used in the Viewer is actually part of the Flex API, so the source for it is not in the Viewers project structure. That being said it is easy to add the API's PopUpRendererSkin.mxml to your Flex Viewer project so that you can modify it and have it used by your viewer app. All you need to do is get the Flex API download from here:
When you unzip it you will have a arcgis_api_for_flex_2_4 folder drill down and find arcgis_api_for_flex_2_4\ArcGIS_Flex\skins\src\com\esri\ags\skins\PopUpRendererSkin.mxml and copy it to the clipboard.
In the Flex Viewer project right click on src folder in the Package Explorer and choose New > Package and for the name field put com.esri.ags.skins and then paste the PopUpRendererSkin.mxml into that Package/folder.
then look for vGroup.addElement(zoomToButton) and comment that line out.
Then the next time you compile run your viewer the zoom to button should be gone.
I followed the steps provided by Robert, but instead of using the skin from the Flex API download, I used the one from the above link. The thing is, I make the changes to the PopUpRenderSkin, I save it, then re-run the project, but the changes do not appear.
Any suggestions? I would really appreciate some help with this. My manager is on my case.
Hi Robert I'm back again. I was wondering how do I widen the first column in the popup window? I have successfully widened the entire window, but the column doesn't automatically adjust. As you can see in the attached screenshot, the labels for my fields are getting cut off, as they are too long. Any ideas?