Yeah, unfortunately they aren't styles.  As Alex says, if you want these
global, you'll have to subclass button and set buttonMode and
useHandCursor to true.  Or, just set these properties manually on all
controls.  It would be nice if these properties could be set globally
for buttons (and all controls that extend button), scrollbars and
itemRenderers.  However, currently you can't.  Just growing pains.

-TH

--- In [email protected], "danielholmes85" <[EMAIL PROTECTED]>
wrote:
>
> Thanks for your response.
>
> I've checked the reference and it appears buttonMode and useHandCursor
> definitely aren't styles on any components:
>
> http://livedocs.adobe.com/flex/3/langref/all-index-B.html
> http://livedocs.adobe.com/flex/3/langref/all-index-U.html
>
> The example im using to test is as follows:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" width="200" height="60">
> <mx:Style>
> .myButton, Button
> {
> color: #ff0000;
> useHandCursor: true;
> buttonMode: true;
> mouseChildren: true;
> mouseEnabled: true;
> }
> </mx:Style>
> <mx:HBox top="0" bottom="0" left="0" right="0">
> <mx:Button label="My Button" />
> <mx:Button styleName="myButton" label="My Button 2" />
> </mx:HBox>
> </mx:Application>
>
>
> I know i can subclass Button, or apply buttonMode/useHandCursor to
> individual instances, but I'm after a better way to do this (if
> available).
>
>
> --- In [email protected], "Josh McDonald" dznuts@ wrote:
> >
> > useHandCursor="true" buttonMode="true" mouseChildren="false"
> >
> > useHandCursor and buttonMode are CSS I believe and will work for
most
> > components, mouseChildren is an attribute on Container (I think),
> and will
> > need to be set by subclasses or instance definitions. Use
> mouseChildren if
> > the first two don't work for your case.
> >
> > -Josh
> >
> > On Tue, Aug 12, 2008 at 9:57 AM, danielholmes85
> [EMAIL PROTECTED]:
> >
> > > Hi All,
> > >
> > > Have been trying to find a way to have a the hand cursor visible
for
> > > every Flex Button component in an application. I personally think
it
> > > should behave like this by default, and a colleague suggested it
> > > should be a CSS property, which I agree with. Has anybody found
any
> > > good way to do this? (besides extending Button or something?).
> > >
> > > Thanks,
> > >
> > > Daniel
> > >
> > >
> > > ------------------------------------
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> >
>



Reply via email to