flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kessler <kesslerconsult...@gmail.com>
Subject Re: how to force redraw of custom spark buttonbar?
Date Mon, 14 Oct 2013 19:33:44 GMT
Well you could use the fallback of.

myButtonBar.dataProvider = null;
myButtonBar.dataProvider = acButtonList;


But if your using our 4.10 sdk or greator you can use
myButtonBar.setButtonEnabled [1] / setButtonsEnabled

[1]
http://flex.apache.org/asdoc/spark/components/supportClasses/ButtonBarBase.html#setButtonEnabled%28%29


-Mark


On Mon, Oct 14, 2013 at 3:20 PM, <modjklist@comcast.net> wrote:

> Actually, what I tried was using an ArrayCollection instead of an
> ArrayList for the dataProvider, then refreshing that ArrayCollection. But,
> it didn't force a redraw.
>
> ----- Original Message -----
>
> From: modjklist@comcast.net
> To: users@flex.apache.org
> Sent: Monday, October 14, 2013 12:11:45 PM
> Subject: Re: how to force redraw of custom spark buttonbar?
>
> Yes, I tried that as well (forgot to mention it below).
>
> ----- Original Message -----
>
> From: "mark goldin" <markzolotoy@gmail.com>
> To: "users" <users@flex.apache.org>
> Sent: Monday, October 14, 2013 12:05:46 PM
> Subject: Re: how to force redraw of custom spark buttonbar?
>
> Did you try ArrayCollection(myBar.dataProvider).refresh() ?
>
>
> On Mon, Oct 14, 2013 at 1:58 PM, <modjklist@comcast.net> wrote:
>
> > (using SDK 4.10)
> >
> > I've tried each of the following (independently):
> >
> > myBar.invalidateDisplayList();
> > myBar.invalidateProperties();
> > myBar.invalidateSize();
> > myBar.dataProvider=myDataProvider (e.g. changing the dataProvider, an
> > ArrayList)
> > myBar.includeInLayout=false; then later, myBar.includeInLayout=true;
> >
> > I have some custom logic in the first/middle/last button-skin that I want
> > to execute to disable some buttons. I currently have it inside
> >
> > override protected function measure():void { ... }
> >
> > Any ideas I can try? Thanks in advance for any comments.
> >
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message