<s:HGroup id="mapLayersContainer" gap="9" rollOver="{rollOverFade.play()}" rollOut="{rollOutFade.play()}"> <s:Button id="opLayerListButton" styleName="HeaderStyle" label="{opLayerListButtonLabel}" rollOut="startHideTimer()" rollOver="opLayerListButton_rollOverHandler(event)" visible="false"/> <s:ButtonBar id="basemapButtonBar" styleName="HeaderStyle" change="basemapButtonBar_changeHandler(event)" dataProvider="{basemapList}" excludeFrom="noBasemaps" labelField="label" requireSelection="true"/> </s:HGroup> <s:BorderContainer id="opLayersContainer" styleName="HeaderStyle" width="265" height="180" click="opLayersContainer_clickHandler(event)" creationComplete="opLayersContainer_creationCompleteHandler(event)" includeInLayout="false" rollOut="startHideTimer()" rollOver="hideTimer.reset()" visible="false"> <toc:TOC id="toc" left="2" right="2" top="3" bottom="3"/> </s:BorderContainer>
protected function opLayersContainer_creationCompleteHandler(event:FlexEvent):void { //opLayersContainer.setStyle("backgroundColor", getStyle("contentBackgroundColor")); //opLayersContainer.setStyle("skinClass", FlexGlobals.topLevelApplication.getStyle("skinClass")); }
//My Code Start var cssStyleDeclarationHeaderStyle:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration(".HeaderStyle"); if (numberOfStyleColors > 4) { cssStyleDeclarationHeaderStyle.setStyle("backgroundColor", headerBackGroundColor); cssStyleDeclarationHeaderStyle.setStyle("chromeColor", headerBackGroundColor); } topLevelStyleManager.setStyleDeclaration(".HeaderStyle", cssStyleDeclarationHeaderStyle, false); // My Code End
opLayersContainer.setStyle("backgroundColor", getStyle("contentBackgroundColor"));
<s:HGroup id="mapLayersContainer" gap="9"> <s:Button id="opLayerListButton" label="{opLayerListButtonLabel}" rollOut="startHideTimer()" rollOver="opLayerListButton_rollOverHandler(event)" visible="false"/> <s:ButtonBar id="basemapButtonBar" change="basemapButtonBar_changeHandler(event)" dataProvider="{basemapList}" excludeFrom="noBasemaps" labelField="label" requireSelection="true"/> </s:HGroup> <s:BorderContainer id="opLayersContainer" width="265" height="180" click="opLayersContainer_clickHandler(event)" creationComplete="opLayersContainer_creationCompleteHandler(event)" includeInLayout="false" rollOut="startHideTimer()" rollOver="hideTimer.reset()" visible="false" backgroundColor="{getStyle('headerBackgroundColor')}" > <toc:TOC id="toc" left="2" right="2" top="3" bottom="3"/> </s:BorderContainer>
<s:BorderContainer id="opLayersContainer" width="265" height="180" click="opLayersContainer_clickHandler(event)" creationComplete="opLayersContainer_creationCompleteHandler(event)" includeInLayout="false" rollOut="startHideTimer()" rollOver="hideTimer.reset()" visible="false"> <toc:TOC id="toc" left="2" right="2" top="3" bottom="3"/> </s:BorderContainer>
<s:BorderContainer id="basemapsContainer" backgroundColor="{getStyle('contentBackgroundColor')}"
<!-- the widget template wireframe --> <s:Group id="widgetFrame" left="0" right="0" top="0" bottom="0" alpha.closed="0"> <s:Rect width="100%" height="100%" radiusX="5" radiusY="5"> <s:fill> <s:SolidColor id="contentBackground" alpha="{getStyle('contentBackgroundAlpha')}" alpha.minimized="0.5" color="{getStyle('contentBackgroundColor')}"/> </s:fill> <s:stroke> <s:SolidColorStroke id="border" alpha.minimized="0.5" color="{getStyle('borderColor')}"/> </s:stroke> </s:Rect>
<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.