You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Oleg Konovalov <ol...@gmail.com> on 2014/01/31 20:57:22 UTC

Adjusting layout on Button made invisible

Hi,



I am using ApplicationControlBar with a bunch of buttons.

Depending on some external conditions (app state), it should make some
buttons invisible,

change their labels, etc.



When these buttons become invisible look like someone with missing teeth.
:-(

Is there a way to adjust other buttons positions so that it looks like one
flow without any gaps ?



HBox or HGroup doesn't seem to solve that problem,

at least I didn't find how.





Please advise.





Sorry for a silly question.





TIA,

Oleg.

(using Flex 4.5.1)

Re: Adjusting layout on Button made invisible

Posted by Oleg Konovalov <ol...@gmail.com>.
Lee,

That worked.

Thanks a lot!
Oleg.


On Fri, Jan 31, 2014 at 3:05 PM, Lee Burrows
<su...@leeburrows.com>wrote:

> in addition to setting visible=false, set includeInLayout=false
>
>
> On 31/01/2014 19:57, Oleg Konovalov wrote:
>
>> Hi,
>>
>>
>>
>> I am using ApplicationControlBar with a bunch of buttons.
>>
>> Depending on some external conditions (app state), it should make some
>> buttons invisible,
>>
>> change their labels, etc.
>>
>>
>>
>> When these buttons become invisible look like someone with missing teeth.
>> :-(
>>
>> Is there a way to adjust other buttons positions so that it looks like one
>> flow without any gaps ?
>>
>>
>>
>> HBox or HGroup doesn't seem to solve that problem,
>>
>> at least I didn't find how.
>>
>>
>>
>>
>>
>> Please advise.
>>
>>
>>
>>
>>
>> Sorry for a silly question.
>>
>>
>>
>>
>>
>> TIA,
>>
>> Oleg.
>>
>> (using Flex 4.5.1)
>>
>>
>
> --
> Lee Burrows
> ActionScripter
>
>


-- 
Thank you,
Oleg.

Re: Adjusting layout on Button made invisible

Posted by Lee Burrows <su...@leeburrows.com>.
in addition to setting visible=false, set includeInLayout=false

On 31/01/2014 19:57, Oleg Konovalov wrote:
> Hi,
>
>
>
> I am using ApplicationControlBar with a bunch of buttons.
>
> Depending on some external conditions (app state), it should make some
> buttons invisible,
>
> change their labels, etc.
>
>
>
> When these buttons become invisible look like someone with missing teeth.
> :-(
>
> Is there a way to adjust other buttons positions so that it looks like one
> flow without any gaps ?
>
>
>
> HBox or HGroup doesn't seem to solve that problem,
>
> at least I didn't find how.
>
>
>
>
>
> Please advise.
>
>
>
>
>
> Sorry for a silly question.
>
>
>
>
>
> TIA,
>
> Oleg.
>
> (using Flex 4.5.1)
>


-- 
Lee Burrows
ActionScripter