Walk the parent chain and see if a parent is disabled.  Disabled containers put 
a dull filter on their children.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of stevepruitt97
Sent: Wednesday, May 06, 2009 11:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR components appear to be disabled.





I have HBox containing some buttons that appear to be disabled when
the application starts up. I say appear because if I inspect them
their enabled property is true. Yet, they are "greyed" out and
unclickable. The HBox is defined as a child under WindowedApplication.
I can't find way to make them usable. I must be missing something
obvious.

<mx:WindowedApplication ....
<mx:menu>
<mx:FlexNativeMenu id="appMenu" dataProvider="{tMenu}" labelField="@label" 
showRoot="false"/>
</mx:menu>
<mx:HBox width="100%">
<mx:Button id="upload" label="Upload" click="onSelect(event);"/>
<mx:Button id="edit" label="Edit" click="onSelect(event);"/>
<mx:Spacer width="100%"/>
<mx:Label id="connection" text="No Connection"/>
</mx:HBox>
<mx:ViewStack id="main" selectedIndex="0" creationPolicy="all" width="100%" 
height="100%">
<console:Upload id="uploader" width="100%" height="100%"/>
<console:TemplateEditor id="editor" width="100%" height="100%"/>
</mx:ViewStack>
</mx:WindowedApplication>

Reply via email to